Is there a formula to specify the status of parent row based on status of the children?
I have a project with several milestones that I've designated as children of my main project. These milestones in turn have their own children (tasks). I would like to use a formula that would specify the parent's status based on the status of it's descendants. In particular, I would like the status to be:
- "Not Applicable" if ALL of the descendants are designated as "Not Applicable"
- "Completed" if ALL of the descendants are designated as "Completed" OR "Not Applicable"
- "Past Due" if ANY of the descendants are designated as "Past Due"
- "In Progress" if ANY of the descendants are designated "In Progress" AND none designated as "Past Due"
- "Not Started" if ALL of the descendants are "Not Started" or "Not Applicable"
Any advice is greatly appreciated!
Answers
-
Hi @Sara Ross
Just to confirm, "descendants" in Smartsheet means parent and grandparent rows of that row, and "children" means rows indented below the row. Do you actually want the formula to reflect the status of the descendants, or the children?
If it's actually children (which it sounds like what you want), I think this will work for you:
=if(countif(children(),"Not Applicable")=count(children()),"Not Applicable", if((countif(children(),"Completed")+countif(children(),"Not Applicable"))=count(children()),"Completed", if((countif(children(),"Not Started")+countif(children(),"Not Applicable"))=count(children()),"Not Started", if(countif(children(),"Past Due")>0,"Past Due", if(countif(children(),"In Progress")>0,"In Progress","")))))
Hope this helps. Let me know if it works!
Best,
Heather
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!