Compare a Date column with a static date value and accordingly pass a Yes or No into a dropdown list
Hi,
I am new to Smartsheets and trying to set up a formula in Smartsheet that compares the Hire Date (a column with Date type) with a static date of 29 September 2019 and accordingly passes 'No' when the date is older than 29 September 2019 and passes a 'Yes' when Hire Date is later than 29 sept 2019 into a column of dropdown list type. I am using the formula as given below but I receive the #INVALID OPERATION error. I am using this to check the eligibility for a benefit based on the hire date of an employee.
=IF([Hire Date]:[Hire Date] > DATE(2019, 9, 29), "NO", "YES")
Best Answer
-
Hi @Sonal Dubey ,
You're close! Try this:
=IF([Hire Date]@row < DATE(2019, 9, 29), "NO", "YES")
This translates to - if the hire date on this row is less than (earlier than) 29 September 2019, display No. Otherwise, display yes.
Let me know if it works!
Best,
Heather
Answers
-
Hi @Sonal Dubey ,
You're close! Try this:
=IF([Hire Date]@row < DATE(2019, 9, 29), "NO", "YES")
This translates to - if the hire date on this row is less than (earlier than) 29 September 2019, display No. Otherwise, display yes.
Let me know if it works!
Best,
Heather
-
Thank you so much Heather! It worked instantly! Thanks again.
-
Glad it worked - happy to help!
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives