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
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!