Issue with Nested IF Formula
I am having trouble getting my nested if formula to work. I have the following formula:
=IF([DCO Status]@row = "Implemented", "Blue", IF(AND([Days Open]@row > 46, [Days Open]@row < 100), "Yellow", IF([Days Open]@row >= 100, "Red", IF([Days Open]@row <= 45, "Green", ""))))
It is working for all the cells except the blank ones are showing “Green” instead of a blank. Can somebody please help me?
Comments
-
Hey Heather!
I added an AND statement to specify that the [Days Open] cell should be below 45 and not blank to show green. This eliminates Smartsheet counting those blank cells in your criteria.
See if this works like you're expecting:
=IF([DCO Status]@row = "Implemented", "Blue", IF(AND([Days Open]@row >= 46, [Days Open]@row < 100), "Yellow", IF([Days Open]@row >= 100, "Red", IF(AND([Days Open]@row <= 45, [Days Open]@row <> ""), "Green", ""))))
Hope this helps!!
-
Thank you. I stared at the formula forever before I found my mistake!
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!