How to Use SUMIF with Checkboxes in Excel Online
Question details
The user needs to calculate the sum of specific amounts based on whether corresponding checkboxes are selected.

- 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 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.
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).
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).
Click on the cell where you want the total to appear and type: =SUMIF(H8:H14, TRUE, B8:B14).
If you prefer SUMIFS (which places the sum range first), type: =SUMIFS(B8:B14, H8:H14, TRUE).
Press Enter. The cell will now display the sum of the amounts only for the rows where the checkbox is ticked.

Fix Cell Linking for Checkboxes in Excel
If the formula returns zero despite correct syntax, the checkboxes might not be properly linked to the underlying cells.
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. Open your document: Launch WPS Spreadsheet and open your workbook.
- 2. Insert checkboxes: Go to the Insert tab, click on Forms, and select Checkbox to add it to your sheet.
- 3. Link to cells: Right-click the Checkbox, select Format Object, go to the Control tab, and set the Cell link.
- 4. Apply SUMIF formula: Type =SUMIF(linked_cells_range, TRUE, sum_range) in your total cell to calculate your values instantly.

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.




