Countif for parent rows

I would like the formula to count all checkboxes of parent rows in a column.
Answers
-
-
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
Check out the Formula Handbook template!