Update parent row status based on the children status
I am using the formula below to update the status of a parent row based on the children's status, but when all statuses are blank, it is showing the parent as "Complete". I need it to show as "Not Started" if all children are blank.
=IF(COUNTIF(CHILDREN(Status@row), "In Progress") > 0, "In Progress", IF(COUNTIF(CHILDREN(Status@row), "Complete") = COUNT(CHILDREN()), "Complete", IF(OR(COUNTIF(CHILDREN(Status@row), "Not Started") = COUNT(CHILDREN()), COUNTIF(CHILDREN(Status@row), "Not Started") + COUNTIF(CHILDREN(Status@row), "") = COUNT(CHILDREN())), "Not Started", IF(COUNT(CHILDREN(Status@row)) = 0, "", "In Progress"))))
Best Answer
-
I would create a helper column and do something like if(isblank((Status@row)),0,1) for each record
then sum those children at the parent level. And if that total is 0, then Not Started.
Answers
-
I would create a helper column and do something like if(isblank((Status@row)),0,1) for each record
then sum those children at the parent level. And if that total is 0, then Not Started.
-
Thank you!
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!