To count checked checkboxes in Google Sheets, use =COUNTIF(range, TRUE). For example, if your checkboxes are in A2:A20, enter =COUNTIF(A2:A20, TRUE) to return the number of checked boxes. This works because a checked checkbox stores the value TRUE and an unchecked one stores FALSE.
Why Checkboxes Store TRUE and FALSE
When you insert a checkbox in Google Sheets (via Insert > Checkbox), the cell doesn’t contain a visual tick—it contains a logical value. A checked box has the value TRUE; an unchecked box has FALSE. This is identical to typing =TRUE() or =FALSE() into a cell. Because of this, you can use any function that works with logical values, including COUNTIF, COUNTIFS, SUMPRODUCT, and even SUM (since TRUE is treated as 1 and FALSE as 0 in arithmetic).
Method 1: COUNTIF for a Single Range
The simplest formula is =COUNTIF(range, TRUE). This counts every cell in the range that equals TRUE.
- Example: Checkboxes in B2:B10. Formula:
=COUNTIF(B2:B10, TRUE). If 4 boxes are checked, the result is 4. - Note: If a cell in the range is empty (not a checkbox), it is ignored because it does not equal TRUE.
This works for a contiguous range. If your checkboxes are scattered (e.g., B2, B5, B9), you can use =COUNTIF(B2, TRUE)+COUNTIF(B5, TRUE)+COUNTIF(B9, TRUE), but a better approach is to use SUMPRODUCT as shown later.
Method 2: COUNTIFS for Multiple Conditions
If you need to count checked boxes only when another column meets a condition, use COUNTIFS. For instance, count checked boxes in column C only if column A says “Yes”.
Layout: A2:A20 contains “Yes”/”No”, C2:C20 contains checkboxes.
Formula: =COUNTIFS(A2:A20, "Yes", C2:C20, TRUE)
This returns the number of rows where A is “Yes” and the checkbox is checked. You can add more condition pairs as needed.
Method 3: SUMPRODUCT for Complex Logic
When you need to count checked boxes based on multiple criteria that aren’t simple equality, SUMPRODUCT is more flexible. It multiplies arrays and sums the results.
Layout: Checkboxes in D2:D20, amounts in E2:E20. Count checked boxes where the amount is greater than 100.
Formula: =SUMPRODUCT((D2:D20=TRUE)*(E2:E20>100))
Each (D2:D20=TRUE) returns an array of TRUE/FALSE, which becomes 1/0 when multiplied. The formula returns the count of rows where both conditions are true. You can also use SUMPRODUCT to count across non-contiguous ranges: =SUMPRODUCT((B2=TRUE)+(B5=TRUE)+(B9=TRUE))—but note that addition works because TRUE is 1.
Method 4: Using SUM with TRUE Values
Because TRUE equals 1 in arithmetic, you can simply use =SUM(range) to count checked boxes. For example, =SUM(A2:A20) will add up all TRUE values (1) and ignore FALSE (0). This is concise but less explicit than COUNTIF. It’s useful when you want to combine with other sums, like =SUM(A2:A20, B2:B20) to count checked boxes across two columns.
Common Problems and Fixes
- Formula returns 0 even though boxes are checked: Ensure the cells actually contain checkboxes, not just text like “✓”. If you typed a checkmark character, COUNTIF won’t count it. Insert real checkboxes via Insert > Checkbox.
- Counting unchecked boxes: Use
=COUNTIF(range, FALSE). - Counting total checkboxes: Use
=COUNTA(range)to count all non-empty cells, which works if every checkbox cell has a value (TRUE or FALSE). - Formula not updating: Google Sheets recalculates automatically, but if you have circular references or heavy calculations, it might lag. Check for accidental circular references.
- Checkbox in merged cells: Merged cells can cause issues; unmerge before inserting checkboxes.
Comparing with Excel
Microsoft Excel also uses checkboxes, but they are form controls or ActiveX controls, not simple cell values. In Excel, a checkbox linked to a cell returns TRUE/FALSE, but you must manually link each checkbox to a cell (right-click > Format Control > Cell link). Then you can use the same COUNTIF formula on the linked cells. In Google Sheets, the checkbox is native and the value is stored directly in the cell, so no linking is needed.
Cost and Availability
Google Sheets is free for personal use with a Google account. Checkboxes and all functions mentioned are available in the free version. For business use, Google Workspace plans start at a monthly fee per user, but the checkbox feature is identical. There is no extra cost for using COUNTIF or other functions.
Frequently Asked Questions
Can I count checkboxes across multiple sheets? Yes, use a formula like =COUNTIF(Sheet1!A2:A10, TRUE) + COUNTIF(Sheet2!A2:A10, TRUE) to sum counts from different sheets.
How do I count checked boxes in a row? Use =COUNTIF(A2:F2, TRUE) where A2:F2 is the row range.
Can I use COUNTIF with a checkbox that has a custom value? Checkboxes can be customized via Data > Data validation to have custom values (e.g., “Yes”/”No”). Then use =COUNTIF(range, "Yes") to count those.
Why does my formula show #ERROR? Usually because of incorrect range syntax or using commas instead of semicolons in some locales. Check your spreadsheet’s locale settings—some regions use semicolons as argument separators.
Can I count unchecked boxes? Yes, use =COUNTIF(range, FALSE).
Does COUNTIF count empty cells? No, empty cells are not equal to TRUE or FALSE, so they are ignored.
Related
- Federal Reserve Balance Sheet Explained
- How to Split a String in PySpark (with Examples)
- Split Part in SQL Server: How to Split Strings
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Group Rows Count: How to Count Rows in GroupsExcel’s Group command does not calculate a row count; it only lets you collapse or expand selected rows.…
- Excel Shortcut to Change Lowercase to Uppercase TextExcel does not have a dedicated keyboard shortcut that changes selected lowercase text to uppercase in place. The…
- Excel Cleanup Guide: How to Clean and Organize DataTo clean an Excel workbook, first save a copy, inspect the data, then standardize text and formats, check…
- Convert Range of Cells to Numbers in ExcelTo convert a range of cells to numbers in Excel, select the range, then use the Error Checking…
- Matrices in Excel Solver: When It Helps and When It Doesn’tYes—but Excel Solver is not a dedicated matrix-equation solver. For a square linear system, use Excel’s MINVERSE and…
- Timesheet Spreadsheet Template: Track Employee Work Hours in ExcelA timesheet spreadsheet template is a worksheet for recording work dates, start and end times, unpaid breaks, and…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.