How to combine these?
Need the formula to say:
- If Completed - Green
- If Canceled - Gray
- If In Progress - Yellow
- If Not Started - Red
- If On Hold - Yellow
- If In Progress, Not Started, or On Hold and and today is greater than End@row - Red
Here is what I have.... Works fine. Now need to add in the last bullet and I'm stumped.
=IF(Status@row = "Completed", "Green", IF(Status@row = "Canceled", "Gray", IF(Status@row = "In Progress", "Yellow", IF(Status@row = "Not Started", "Red", IF(Status@row = "On Hold", "Yellow"
Answers
-
Hi bobloblaw,
I suggest to add End@row checking into your formula with AND function as below:
=IF(Status@row = "Completed", "Green", IF(Status@row = "Canceled", "Gray", IF(AND(Status@row = "In Progress", End@row>=TODAY()), "Yellow", IF(AND(Status@row = "Not Started", End@row>=TODAY()), "Red", IF(AND(Status@row = "On Hold", End@row>=TODAY()), "Yellow", IF(AND(OR(Status@row = "In Progress", Status@row = "Not Started", Status@row = "On Hold" ), End@row<TODAY()),"Red")))
Try it!
Gia Thinh Technology - Smartsheet Solution Partner.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 405 Global Discussions
- 216 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!