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