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
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!