Counting Parent rows AND rows without children
So I'm working on collecting metrics from a projects page. Most projects exist on their own row with no indented children lines. However a few of the projects have sub-projects associated with them, but I don't want to count the metrics associated with the sub-projects. I can't seem to find how to count both the parent rows and the rows without children. Anyone have any ideas?
Thanks in advance!
Best Answer
-
Dan,
I have the same in my sheet, I only count Parent rows. The most straightforward way is to have a checkbox column named "Parent" or similar and then if the row is a Parent, have it checked, if not, leave it unchecked. Then you can use this column as a condition to only count metrics if the "Parent" column is checked.
The Parent checkbox can be checked manually or formulaically depending on your preference and application.
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
Answers
-
Dan,
I have the same in my sheet, I only count Parent rows. The most straightforward way is to have a checkbox column named "Parent" or similar and then if the row is a Parent, have it checked, if not, leave it unchecked. Then you can use this column as a condition to only count metrics if the "Parent" column is checked.
The Parent checkbox can be checked manually or formulaically depending on your preference and application.
Darren Mullen, join the Smartsheet Guru Elite
Get my 7 Smartsheet tips here
Author of: Smartsheet Architecture Solutions
-
Ahh, that's an interesting work-around. Thanks for the advice!
-
For anyone else running into this, here's the formula I ended up using in the Parent check box column:
=IF(COUNT(PARENT([Task Name]@row)) > 0, 0, 1)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 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!