Looking for a formula that uses status and finish to calculate health.
Hello Smartsheet experts,
I am trying to write a formula that accomplishes the following in a health column with the Red, Yellow, Green, and Blue options...
Status "Complete" = Green
Status "On Hold" = Blue
Finish "Blank"(or "") = "Blank"(or "")
Status "In Progress" AND Finish is greater than Today, Green
Status "In Progress" AND Finish is within 2 days of Today = Yellow
Status "In Progress" AND Today is 3 or more days past Finish = Red
I must be getting caught up in the correct order of how to enter these Nested Ifs. Any help is appreciated!
Answers
-
Hey @nlehmann
Try this
=IF(Status@row = "Complete", "Green", IF(Status@row = "On Hold", "Blue", IF(Finish@row = "", "", IF(AND(Finish@row >= TODAY(), Finish@row <= TODAY(2), Status@row = "In Progress"), "Yellow", IF(AND(Status@row = "In Progress", Finish@row <= TODAY(3)), "Red", IF(AND(Status@row = "In Progress", Finish@row > TODAY()), "Green"))))))
Does it work for you?
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!