Nested "IF" RYG
Answers
-
=if(And([percentage complete]@row < 0.6, [due date]@row-today()=3),"red", if([due date]@row-today()<0,"red", if(And([percentage complete]@row < 0.75, [due date]@row-today()=2), "yellow", "green")))
I'd check the brackets on this formula before using it, but this should work. The key here is to use an AND() function to get multiple conditions. You also get the 'time to due date' function by finding the difference between that date and today().
I am curious about your conditions though. why stop at 2 days out? shouldn't there also be one for 1 day out and the day of? Are 100% complete items that are past due also flagged as red? just curious and trying to potentially be helpful. If you have your reasons feel free to ignore.
-
Nick, Those are really good points. I assumed (wrong) that 2 days would include 1 day as well. If they are 100% I would want them green.
I appreciate your comments and thoughts
-
I plugged in the formula and it did not work... I am not sure what to do. It is making me crazy. At this point, I am not sure what to do..
-
Nevermind... Got it
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 201 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!