Automatic Parent by Child Status
Hi everyone,
I'm working on a formula in my status column so that the parent line will automatically update based on what the child/children are. Here's the current formula I have that's not quite working:
=IF(COUNTIFS(CHILDREN(), "Not Started") = COUNT(CHILDREN()), "Not Started", IF(COUNTIFS(CHILDREN(), "Achieved") = COUNT(CHILDREN()), "Achieved", IF(COUNTIFS(CHILDREN(), OR(@cell = "Passing", @cell = "Passing")) = COUNT(CHILDREN()), "In Progress", "In Progress")))
Here are the scenarios and outputs I need:
If all children are "not started", parent = "not started"
If any child is "in progress", parent = "in progress"
If all children are "passing" or "achieved", parent = "passing"
If all children are "achieved", parent = "achieved"
Best Answer
-
If the issue is with the part that evaluates if all children are "passing" or "achieved", parent = "passing"
How about this:
=IF(COUNTIFS(CHILDREN(), "Not Started") = COUNT(CHILDREN()), "Not Started", IF(COUNTIFS(CHILDREN(), "Achieved") = COUNT(CHILDREN()), "Achieved", IF(COUNTIFS(CHILDREN(), OR(@cell = "Passing", @cell = "Achieved")) = COUNT(CHILDREN()), "Passing", "In Progress")))
I have highlighted the changes in bold
Answers
-
Is it just this part that is not working for you?
If all children are "passing" or "achieved", parent = "passing"
-
If the issue is with the part that evaluates if all children are "passing" or "achieved", parent = "passing"
How about this:
=IF(COUNTIFS(CHILDREN(), "Not Started") = COUNT(CHILDREN()), "Not Started", IF(COUNTIFS(CHILDREN(), "Achieved") = COUNT(CHILDREN()), "Achieved", IF(COUNTIFS(CHILDREN(), OR(@cell = "Passing", @cell = "Achieved")) = COUNT(CHILDREN()), "Passing", "In Progress")))
I have highlighted the changes in bold
-
That seemed to work @KPH Thank you!
-
Glad to help! The formula was good. I think you just lost the will to change the values 😀
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!