Hierarchy Formula Help
I am trying to write a COUNTIF formula such that the value of each of the lowest level of a hierarchy will be counted. I tried using a CountAncestor helper column but not all groups have the same structure. IE. In some groups, the lowest level child is level 3, and in other groups, it is level 4 (or 5). How can I count the value of cells from the "most child" level of a grouping, no matter how many children there are? (note, I realize in the screenshot it appears as those the CountAncestor idea would work as all of the lowest levels here are a "3" but if you scroll down, some of 4 or 5.
Thanks for your help!
Jeff
Best Answer
-
I would suggest a helper column (checkbox) that will check the box on all child rows (rows that do not have any children of their own/lowest level regardless of number of ancestors).
=IF(COUNT(CHILDREN(Task@row)) = 0, 1)
Answers
-
I would suggest a helper column (checkbox) that will check the box on all child rows (rows that do not have any children of their own/lowest level regardless of number of ancestors).
=IF(COUNT(CHILDREN(Task@row)) = 0, 1)
-
Thank you, Paul! Great suggestion
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!