Countif for parent rows
I would like the formula to count all checkboxes of parent rows in a column.
Answers
-
Are you able to provide a screenshot for reference?
-
Hello @jjesmith
Here is your solution -
=COUNTIF(Check:Check, "1") check the solution in Column25 below
Cheers!
Ipshita
Ipshita Mukherjee
-
Thank you both for response. The formula Ipshita provides counts all checkboxes in the enter column not just the Parent Rows.
My sheet has Child rows under the Parent rows that each also have check boxes. If any one of the child rows are checked then the Parent row is checked. I want to add those checkboxes in the Parent rows only. So in this example pasted below the answer would be three (3).
-
In this case you would need a helper column that designates which rows are parent rows (can be hidden after setting up).
=IF(COUNT(CHILDREN([Employee Requirement]@row))> 0, 1)
Then to get the count of checked parent rows you would use
=COUNTIFS(OSHA:OSHA, @cell = 1, Helper:Helper, @cell = 1)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!