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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!