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
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 59 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives