Returning a status if one cell within a range meets criteria
Hi,
I am tracking some metrics using RYG balls. I have several parent metrics and child metrics under those all with RYG balls for a status. I would like the parent RYG ball to show red if at least one of its child metrics is red, yellow if at least one metric is yellow, and green if all are green. Does Smartsheet have this capability?
Thanks
Best Answer
-
Try this in the parent cell of the column with the status balls:
=IF(CONTAINS("Red", CHILDREN()), "Red", IF(CONTAINS("Yellow", CHILDREN()), "Yellow", IF(CONTAINS("Green", CHILDREN()), "Green", "-")))
The last part of the formula "-" is just a value I put in situations like this since if you only have Red, Yellow, Green you should never see the final false value. If you see it you know you have a child cell that is either blank or some other value. Really you could make that whatever you want.
Answers
-
Try this in the parent cell of the column with the status balls:
=IF(CONTAINS("Red", CHILDREN()), "Red", IF(CONTAINS("Yellow", CHILDREN()), "Yellow", IF(CONTAINS("Green", CHILDREN()), "Green", "-")))
The last part of the formula "-" is just a value I put in situations like this since if you only have Red, Yellow, Green you should never see the final false value. If you see it you know you have a child cell that is either blank or some other value. Really you could make that whatever you want.
-
I received an #INVALID COLUMN VALUE error
-
Oh I see what happened. It looks like this works now. Brilliant!
Thank you
-
Excellent! You're very welcome!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!