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
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!