Smartsheet Formula (AND)
I am looking to have a status column show either
-Overdue
-Complete
-In Future
-Not Required
I have everything working except the Not Required.
=IF(AND([Skills Assessment | Due Date (Y2)]@row < TODAY(), [Skills Assessment | Date Completed (Y2)]@row = ""), "Overdue", IF(AND([Skills Assessment | Due Date (Y2)]@row > TODAY(), [Skills Assessment | Date Completed (Y2)]@row = ""), "In Future", IF([Skills Assessment | Due Date (Y2)]@row > [Skills Assessment | Date Completed (Y2)]@row, "Complete", "Not Required")))
Answers
-
I believe it's because your formula is set up to test for dates and so those rows are failing on the date check criteria before it gets to the final if false step. Try reversing some of your nested IF statements so that you evaluate the items that don't rely on comparing dates first. You also will have an issue with your formula if the completed date is after the due date because your evaluation is expecting it to be earlier - I suggest simply evaluating if there's a completed date filled in.
=IF([Skills Assessment | Due Date (Y2)]@row = "Not Enrolled Yet", "Not Required", IF(ISDATE([Skills Assessment | Date Completed (Y2)]@row), "Complete", IF(AND([Skills Assessment | Due Date (Y2)]@row < TODAY(), [Skills Assessment | Date Completed (Y2)]@row = ""), "Overdue", IF(AND([Skills Assessment | Due Date (Y2)]@row > TODAY(), [Skills Assessment | Date Completed (Y2)]@row = ""), "In Future"))))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!