Count the number of non blank child cells
Hi!
The sheet contains the following hierarchy:
There are formulas (COUNT(CHILDREN())) in the blue cells of the Missing study column. I need to count the total number of white (child) cells. In this particular case [10] should appear.
What the formula should look like?
Thank you in advance!
Best Answers
-
You should be able to use
=SUM(CHILDREN())
But I am not sure if that will work because of the brackets. Is there a reason you have the brackets around the numbers?
-
Ok. If you really want to keep the brackets, you will need to insert a helper column that can later be hidden and replicate your counts without the brackets. Then use
=SUM(CHILDREN([Helper Column]@row))
Answers
-
You should be able to use
=SUM(CHILDREN())
But I am not sure if that will work because of the brackets. Is there a reason you have the brackets around the numbers?
-
Thanks Paul! Brackets are for decoration ="[" + (COUNT(CHILDREN())) + "]"
and you were right - SUM(CHILDREN()) works only without them
-
Ok. If you really want to keep the brackets, you will need to insert a helper column that can later be hidden and replicate your counts without the brackets. Then use
=SUM(CHILDREN([Helper Column]@row))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.4K Get Help
- 446 Global Discussions
- 144 Industry Talk
- 478 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 490 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!