Combining ISBLANK and TODAY formula for RYG Symbol Column
Hi all,
I'd like to automate the Health column in my Project Plan but am not sure how to go about doing this. The Health column is a symbol column (red, yellow, green). Ideally, I'd like for it to show the red symbol if the end date is 3 days late, yellow if the end date is 2 days late, green if we're on track, and blank if there is no end date in the end date column. The formula also needs to consider if the task has been completed (there is a status column which indicates if the associated task has not been started, is not applicable, is in progress, is complete, on hold, or cancelled). Could anybody help?
Screenshots below for reference:
Best Answer
-
Here you go @rmc0030 :
=IF(Status@row = "Complete", "", IF(ISBLANK([End Date]@row), "", IF(TODAY() - [End Date]@row >= 3, "Red", IF(TODAY() - [End Date]@row >= 1, "Yellow", IF(TODAY() - [End Date]@row <= 1, "Green", "")))))
-MCS
Answers
-
Hi @rmc0030
You'll want to do this with nested IF( ) statements. Try using this formula:
=IF(Status@row = "Complete", "", IF(TODAY() - [End Date]@row >= 3, "Red", IF(TODAY() - [End Date]@row >= 1, "Yellow", IF(TODAY() - [End Date]@row <= 1, "Green", ""))))
This assumes the following:
- If the Status is 'Complete', Health is blank.
- If Status is anything else, and the End Date is 3 or more days in the past, Health is Red
- If Status is anything else, and the End Date is 1 or 2 days in the past, Health is Yellow
- If Status is anything else, and the End Date is today or in the future, Health is Green
If you can elaborate on how you want each of the other status values to be handled we can edit this further. But nested IF( ) statements is the way to go here.
-MCS
-
Thanks so much, Mark! This is super helpful. With the nested functions, how would I also add a statement to say that if the End Date column does not contain a date/is blank, also leave the Health column blank?
-
Here you go @rmc0030 :
=IF(Status@row = "Complete", "", IF(ISBLANK([End Date]@row), "", IF(TODAY() - [End Date]@row >= 3, "Red", IF(TODAY() - [End Date]@row >= 1, "Yellow", IF(TODAY() - [End Date]@row <= 1, "Green", "")))))
-MCS
-
Thank you so much, @Mark Safran !
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!