Update parent value if all children are a specific value, leave alone otherwise
I'd like to update the main parent row cell to "Complete" if all the children are also set to "Complete". Otherwise, I'd like the parent row cell to just be left alone (it will be blank until everything else is "Complete)".
I can make this happen based on the other statuses the children show by using a bunch of COUNTIFS expressions, but I'm trying to see if I can simplify this with something like this: "IF(AllChildren = "Complete", "Complete").
This is an example formula that does what I want but goes through all combinations of the childrens' statuses and is long and clumsy (I think): =IF(Status@row = "Complete", "Blue", IF(COUNTIFS(Health2:Health74, "Red") > 0, "Red", IF(COUNTIFS(Health2:Health74, "Yellow") > 0, "Yellow", IF(COUNTIFS(Health2:Health74, "Green") > 0, "Green"))))
Thank you!
Answers
-
Try this:
=IF(COUNTIFS(CHILDREN(), @cell <> "Complete") = 0, "Complete")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 352 Global Discussions
- 198 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 135 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 443 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!