Formula using TODAY when the date field is blank
I am trying to write a formula to assign colors to project tasks. It appears to be including rows where End Date is blank when the criteria is [End Date]@row < TODAY. (Same for [Start Date]@row < TODAY).
=IF(Status@row = "{Link to Project Meeting Minutes}", "Green", (IF(AND([End Date]@row < TODAY(), Status@row <> "Complete"), "Red", IF(AND([Start Date]@row < TODAY(), Status@row = "Not Started"), "Yellow", IF(Status@row = "Deferred", "Gray", "Green")))))
I played with IF(ISDATE([End Date]@row) and even [End Date]@row <> "".
Thanks in advance for the help!
Bethany
Best Answer
-
I prefer to verify with ISDATE(). Give this a try:
=IF(Status@row = "{Link to Project Meeting Minutes}", "Green", IF(AND(ISDATE([End Date]@row), [End Date]@row < TODAY(), Status@row <> "Complete"), "Red", IF(AND(ISDATE([Start Date]@row), [Start Date]@row < TODAY(), Status@row = "Not Started"), "Yellow", IF(Status@row = "Deferred", "Gray", "Green"))))
Answers
-
I prefer to verify with ISDATE(). Give this a try:
=IF(Status@row = "{Link to Project Meeting Minutes}", "Green", IF(AND(ISDATE([End Date]@row), [End Date]@row < TODAY(), Status@row <> "Complete"), "Red", IF(AND(ISDATE([Start Date]@row), [Start Date]@row < TODAY(), Status@row = "Not Started"), "Yellow", IF(Status@row = "Deferred", "Gray", "Green"))))
-
Thank you, @Carson Penticuff ! That did the trick!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!