Google Sheets SUMIF with Checkbox: How to Sum Checked Rows

How-to basics · Updated November 23, 2026

Yes, you can use SUMIF with a checkbox in Google Sheets: the formula =SUMIF(C2:C10, TRUE, B2:B10) sums the values in B2:B10 for rows where the checkbox in C2:C10 is checked. This works because a checked checkbox has a value of TRUE and an unchecked one is FALSE, so you simply match on TRUE.

How Checkboxes Work in Google Sheets

Checkboxes in Google Sheets are inserted via Insert > Checkbox (or the checkmark icon in the toolbar). They are not a separate data type—they are boolean values: TRUE when checked, FALSE when unchecked. This means you can use them directly in formulas, conditional formatting, and data validation. For example, if you type =A1 in another cell and A1 contains a checkbox, it will display TRUE or FALSE.

Because of this, the SUMIF function treats checkboxes exactly like any other logical value. The condition TRUE matches checked boxes, and you can also use FALSE to sum unchecked rows. This is a common pattern for to-do lists, inventory tracking, or any task list where you want to total amounts only for completed items.

Basic SUMIF Formula with Checkbox

Suppose you have a list of expenses in column B (B2:B10) and a checkbox in column C (C2:C10) to mark them as paid. To sum only the paid expenses, use:

=SUMIF(C2:C10, TRUE, B2:B10)

This formula checks each cell in C2:C10. If a cell equals TRUE, it adds the corresponding value from B2:B10. The result is the total of all rows where the checkbox is checked. For example, if B2=10, B3=20, B4=30, and only C2 and C4 are checked, the formula returns 40.

You can also use FALSE to sum unchecked items, which is useful for outstanding amounts. The syntax is identical: =SUMIF(C2:C10, FALSE, B2:B10).

Using SUMIFS with Multiple Conditions

If you need to sum checked rows that also meet another condition, use SUMIFS. For example, to sum paid expenses in a specific category (say “Food” in column A), with checkboxes in C and amounts in B:

=SUMIFS(B2:B10, C2:C10, TRUE, A2:A10, "Food")

This sums B2:B10 where C is TRUE and A equals “Food”. The order of arguments in SUMIFS is different from SUMIF: the sum range comes first, then the criteria ranges and their conditions.

Common Mistakes and How to Avoid Them

  • Using quotes around TRUE: SUMIF(C2:C10, "TRUE", B2:B10) will not work reliably because the criteria is treated as text, not a boolean. Always use TRUE without quotes.
  • Mismatched ranges: The sum range and criteria range must be the same size. If they differ, you may get an error or incorrect results.
  • Checkboxes not actually in the range: Ensure the checkbox cells are within the specified range. If you insert checkboxes later, the formula won’t automatically include them unless you expand the range.
  • Using SUMIF with a range that includes headers: If your header row contains a checkbox, it might be included. Start your range from the first data row.

Alternatives to SUMIF for Checkboxes

If you prefer a more visual approach, you can use the FILTER function combined with SUM. For example:

=SUM(FILTER(B2:B10, C2:C10 = TRUE))

This filters the amounts where the checkbox is checked and sums them. It’s more flexible if you need to perform other operations on the filtered data. Another option is to use a pivot table, but that requires refreshing and is less dynamic for quick sums.

Conditional Formatting with Checkboxes

You can also use checkboxes with conditional formatting to visually highlight checked rows. For instance, to highlight the entire row when the checkbox is checked, select the data range (e.g., A2:C10), go to Format > Conditional formatting, and set a custom formula:

=$C2=TRUE

Apply a fill color, and the row will highlight when the box is checked. This makes it easy to see completed items at a glance, complementing the SUMIF formula.

Frequently Asked Questions

Can I use SUMIF with checkboxes in Excel?

Yes, Excel also supports checkboxes (via Form Controls or ActiveX), but they behave differently. In Excel, a checkbox linked to a cell returns TRUE/FALSE only if you set a cell link. Without that, the checkbox is an object and cannot be used directly in SUMIF. You would need to link each checkbox to a cell and then use SUMIF on those cells. Google Sheets is simpler because checkboxes are native cell values.

Why does my SUMIF return 0 even though checkboxes are checked?

This usually happens because the formula uses text criteria like "TRUE" instead of boolean TRUE. Check that you didn’t put quotes around TRUE. Also ensure the ranges are correctly aligned and that the checkbox cells are not empty or containing text.

How do I count checked checkboxes instead of summing values?

Use COUNTIF with the same logic: =COUNTIF(C2:C10, TRUE) will count how many checkboxes are checked. This is useful for tracking completion counts.

Can I sum checked rows with a checkbox in a different column?

Yes, the checkbox can be in any column. Just adjust the ranges accordingly. For example, if checkboxes are in column D and values in column B, use =SUMIF(D2:D10, TRUE, B2:B10).

What if I have blank cells in the sum range?

SUMIF ignores blank cells in the sum range by default. If you want to treat blanks as zero, they will be ignored anyway. If you need to include blanks as zero, you might want to use SUMPRODUCT or FILTER with an IF statement, but in most cases SUMIF works fine.

Is there a way to sum checked rows without a helper column?

No, you need the checkbox column itself as the criteria range. The checkbox column is already the helper—it holds the TRUE/FALSE values. You don’t need an extra column; the checkbox column serves as the criteria range.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.