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
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives