Status Updates for Parent rows of Children
I would like the parent of fields in a Status row to reflect Complete when all children are marked Complete or Cancelled. If all children are marked "Not started", then the parent should be marked "Not started". Otherwise, if there is a combination in status for children other than above, the parent should be marked "In progress". I used the formula below but it seems not to follow what I want it to do. Can anyone guide me to my error(s)?
=IF(COUNTIF(CHILDREN(), "Not started") = COUNT(CHILDREN()), "Not started", IF(COUNTIF(CHILDREN(), "In Progress") = COUNT(CHILDREN()), "In progress", IF(COUNTIF(CHILDREN(), "Complete") = COUNT(CHILDREN()), "Complete", IF(COUNTIF(CHILDREN(), "Cancelled") = COUNT(CHILDREN()), "Cancelled", IF(COUNTIF(CHILDREN(), "Complete") + COUNTIF(CHILDREN(), "Cancelled") = COUNT(CHILDREN()), "Complete", IF(COUNTIF(CHILDREN(), "In progress") > 0, "In progress", "Complete"))))))
Best Answer
-
Try something like this:
=IF(COUNTIFS(CHILDREN(), OR(@cell = "Complete", @cell = "Cancelled")) = COUNT(CHILDREN()), "Complete", IF(COUNTIFS(CHILDREN(), @cell = "Not Started") = COUNT(CHILDREN()), "Not Started", "In Progress"))
Answers
-
Try something like this:
=IF(COUNTIFS(CHILDREN(), OR(@cell = "Complete", @cell = "Cancelled")) = COUNT(CHILDREN()), "Complete", IF(COUNTIFS(CHILDREN(), @cell = "Not Started") = COUNT(CHILDREN()), "Not Started", "In Progress"))
-
Thank you - that worked!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!