Formula Assistance
I am attempting to do the following:
- If status is Complete or N/A = Green
- If start date is within 5 days or past due and status is not Complete or N/A = Red
- If start date is more than 5 days and status is not Complete or N/A = Yellow
I have the following formula, but no luck. Any help is greatly appreciated.
=IF(OR(Status@row = "Complete", Status@row = "N/A"), "Green", IF([Start Date]@row <= TODAY(5), "Red", IF(Status@row <> "Complete", Status@row <> "N/A", "Yellow", "Green")))
Answers
-
If I am understanding this correctly, you can simplify the formula quite a bit.
=IF(OR(Status@row = "Complete", Status@row = "N/A"), "Green", IF([Start Date]@row <= TODAY(5), "Red", "Yellow"))
-
Thanks Carson, this almost gets me where I want to be. For the Yellow, I want it to indicate even on rows without a start date and status is not Complete or N/A. This is where I'm struggling. Any tips on this? @Carson Penticuff
-
Hi @CSmall1122,
This should work for you:
=IF(OR(Status@row = "Complete", Status@row = "N/A"), "Green", IF(AND(OR([Start Date]@row > TODAY(5), ISBLANK([Start Date]@row)), OR(Status@row <> "Complete", Status@row <> "N/A")), "Yellow", "Red"))
Hope this helps; if you've any questions or problems with it then just post! 😊
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 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!