Search code examples
checkboxgoogle-sheetsgoogle-sheets-formulaarray-formulasgoogle-sheets-query

Count checked checkboxes within a query


How do I count checked checkboxes within a query in Google sheets (this is part of a group query where I want to count checked checkboxes in column B for each value of column A grouped by column A)?


Solution

  • try:

    =ARRAYFORMULA(QUERY({A:A\ B:B*1}; 
     "select Col1,sum(Col2) 
      where Col1 is not null 
      group by Col1 
      label sum(Col2)''"))
    

    0