logo
search
Formula Errors

How to Use SUMIF with Checkboxes in Excel Online

Guest WriterGuest Writer Sep 25, 2026 869 views

Question details

The user needs to calculate the sum of specific amounts based on whether corresponding checkboxes are selected.

How to Use SUMIF with Checkbox Values in Excel Online
Product
Excel Online
Device & OS
not provided
Scenario
Calculating conditional totals in an online spreadsheet using checkboxes as the criteria for the sum.
Observed behavior
Formulas return zero or a blank value instead of the expected sum when referencing the checkbox cells.
Before you start

Before writing your formula, verify that your checkboxes are actively linked to specific cells in your worksheet, as unlinked form controls cannot be evaluated by formulas.

Solution 1Recommended

Use TRUE as the Criteria in SUMIF or SUMIFS

Checkboxes evaluate to logical values (TRUE for checked, FALSE for unchecked), not text strings like 'CHECKED'. Updating the formula criteria resolves the calculation error.

A common mistake when referencing checkboxes in formulas is assuming they output text. Excel reads a selected checkbox as a logical TRUE.

When setting up your formula, ensure that the criteria range and the sum range have the exact same dimensions (matching number of rows and columns).

1
Identify your ranges

Locate the range containing the values you want to sum (e.g., B8:B14) and the range containing your linked checkboxes (e.g., H8:H14).

2
Enter the SUMIF formula

Click on the cell where you want the total to appear and type: =SUMIF(H8:H14, TRUE, B8:B14).

3
Alternative using SUMIFS

If you prefer SUMIFS (which places the sum range first), type: =SUMIFS(B8:B14, H8:H14, TRUE).

4
Calculate the result

Press Enter. The cell will now display the sum of the amounts only for the rows where the checkbox is ticked.

Use TRUE as the Criteria in SUMIF or SUMIFS
Syntax check: You do not need to put quotation marks around TRUE. Writing "TRUE" treats it as text, which will cause the formula to fail.
Seamless Spreadsheet Calculations

Calculate Checkbox Values Easily with WPS Spreadsheet

WPS Spreadsheet offers robust support for form controls and conditional formulas like SUMIF. You can insert checkboxes, link them to cells, and calculate totals without the compatibility glitches often found in online spreadsheet versions.

  1. 1. Open your document: Launch WPS Spreadsheet and open your workbook.
  2. 2. Insert checkboxes: Go to the Insert tab, click on Forms, and select Checkbox to add it to your sheet.
  3. 3. Link to cells: Right-click the Checkbox, select Format Object, go to the Control tab, and set the Cell link.
  4. 4. Apply SUMIF formula: Type =SUMIF(linked_cells_range, TRUE, sum_range) in your total cell to calculate your values instantly.
Fully compatible with Microsoft Excel formulas (SUMIF/SUMIFS) and form controls.Easy insertion of checkboxes and native cell linking directly in the interface.Free, lightweight, and supports fast offline processing for complex form controls.Familiar user interface requiring zero learning curve for Excel users.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my SUMIF formula return zero when checkboxes are selected?

This typically occurs if the formula is searching for the text 'CHECKED' instead of the logical value TRUE, or if the checkboxes have not been explicitly linked to their underlying cells via the Format Control settings.

Can I use SUMIFS with multiple checkbox criteria?

Yes. You can use the SUMIFS function to evaluate multiple criteria. The syntax would be =SUMIFS(Sum_Range, Checkbox_Range1, TRUE, Checkbox_Range2, TRUE) to sum values only when multiple specific checkboxes are ticked.

Does Excel Online fully support checkbox form controls?

Excel Online has limited support for legacy form controls. While it can often display and calculate pre-existing linked checkboxes, editing form controls or establishing new cell links usually requires opening the file in the desktop version.