IF AND NOT
Need help with some formulas
Important Columns : Schedule Health, Status, Target Start Date, Target End Date
Schedule Health will hold the formula - changing to RED GREEN and YELLOW Depending on formula
Green : IF Today is < than Target Start Date, AND/OR Status = "Complete"
Yellow = IF Today is >= Target Start Date, AND Today <= Target End Date AND Status is NOT "Complete" (Not sure if the Green status of "Complete" would override the need for the last AND/NOT)
RED = IF Today is < Target End date AND Status is not = "Complete"
I've tried a multitude of things and just cant seem to get it, please any help would be great!
Heres what I tried that I thought would work:
=IF(TODAY()>[Target Start Date]@row, AND(TODAY()<[Target End Date]@row, AND(NOT([Status]@row = "Complete"), "Yellow”, IF(TODAY()<[Target Start Date]@row OR([Status]@row = "Complete"), "Green", IF(TODAY()>[Target End Date]@row, “RED"
Answers
-
@carly try this formula:
=IF(OR(TODAY()<[Target Start Date]@row, [Status]@row = "Complete"), "Green", IF(and(TODAY()>=[Target Start Date]@row, TODAY()<=[Target End Date]@row), "Yellow", “Red"))
Also please review this help article on the today formula, it could impact you and you may want to rework your formula.
Automatically update the TODAY function in formulas | Smartsheet Learning Center
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 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!