Logic Needed for Turning on the Gray Stoplight
I am trying to add logic in the following string that will turn on the "Gray" stop light ball if the % Complete cell is left blank.
=IF([% Complete]18 < 0.5, "Red", IF(AND([% Complete]18 >= 0.5, [% Complete]18 < 1), "Yellow", IF([% Complete]19= 1, "Green", IF([% Complete]19= blank, "Gray")))
I have tried "blank" and "null" and neither one works. Any of you super users out there figured this out yet? Thanks.
Comments
-
All of those should say [% Complete]18. I know that is not the issue. Thanks.
-
Try using isblank in the IF statement.
https://help.smartsheet.com/function/isblank
=IF([% Complete]18 < 0.5, "Red", IF(AND([% Complete]18 >= 0.5, [% Complete]18 < 1), "Yellow", IF([% Complete]19= 1, "Green", IF(ISBLANK([% Complete]18), "Gray")))
-
Thanks, Mike. That worked but only after I moved the Gray logic to the front of the logic string. You rock!
-
That is probably because one of your other flags are true and firing first.
-
Glad I could help you out.
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives