How to count grandchildren.
I'm trying to count how many grandchildren I have in a chart, how do I create the formulas for this?
Note that I would be adding and removing rows and I need this counter to keep updating with rows inserted and removed.
Example:
- Parent (Grandchildren Count of 6)
- Children (3)
- Grandchildren
- Grandchildren
- Grandchildren
- Children (2)
- Grandchildren
- Grandchildren
- Children (1)
- Grandchildren
- Children (3)
Comments
-
Hi,
Have a look at this thread.
https://community.smartsheet.com/discussion/countifs-parent-row-only
Did that give you the solution?
I hope that helps!
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
=COUNT(DESCENDANTS())
This will count ALL descendants (child and grand child rows)
.
=COUNT(CHILDREN())
This will count only the direct children rows (not the grandchildren rows)
.
Subtract the number of children from the number of descendants to find the number of grandchildren.
=COUNT(DESCENDANTS()) - COUNT(CHILDREN())
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives