IF statement only half works
Can someone take a look at this statement and tell me where I went wrong? The Blue works (both), the Green works and the Yellow works. The Red, not so much. The things that should be Red stay Yellow. Any help would be appreciated! / Days Left till Due is a formula of =[Anticipated Completion Date]@row - TODAY()
=IF([Current Status]@row = "Completed", "Blue", IF([Request Type]@row = "Daily / Weekly Task", "Blue", IF([Days Left till Due]@row > 2, "Green", IF([Days Left till Due]@row <= 2, "Yellow", IF([Days Left till Due]@row < 0, "Red")))))
Answers
-
The issue you are having is your yellow formula will never be false to reach the red formula because it is looking for any number equal to or less than 2. If you look for Red first and then yellow, then anything 0 or less would result in Red.
=IF([Current Status]@row = "Completed", "Blue", IF([Request Type]@row = "Daily / Weekly Task", "Blue", IF([Days Left till Due]@row > 2, "Green", IF([Days Left till Due]@row <= 0, "Red", IF([Days Left till Due]@row <= 2, "Yellow")))))
-
Thank you!!! Totally worked!!
-
Your Welcome.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!