Skip to main content

How to sum / count checked checkboxes in Excel?

Checkbox is useful for you to mark the status of your data in Excel. If you have a list of checkboxes, some of them are checked, and others are unchecked, and here, you would like to count the number of checked checkboxes or sum the corresponding values based on the checked checkbox.

Sum or count checked checkboxes with formulas


Sum or count checked checkboxes with formulas

In Excel, there is no direct formula for us to count or sum the checked checkboxes, to solve this problem successfully, please do as follows step by step:

First, set a link cell for each checkboxes

1. Open your worksheet which you want to count or sum the checked checkboxes, then right click one checkbox, and choose Format Control, see screenshot:

doc-count-checkboxes-1

2. In the Format Object dialog box, click Control tab, and then click doc-checkbox-button-1 button beside the Cell link option to select a blank cell which relative to your selected checkbox as the link cell, and don’t change any other options, see screenshot:

doc-count-checkboxes-1

3. And then click OK to close this dialog, there will be a TRUE displayed at the selected cell if the checkbox is check, and a blank cell if the checkbox is unchecked, see screenshot:

doc-count-checkboxes-1

4. Then you need to repeat above steps to set a link cell for each checkbox of the column, and had better link the cell with the corresponding checkbox in the same row, you will get the following screenshot:

doc-count-checkboxes-1

Second, you can apply formulas to calculate the checkboxes

5. After finishing setting the link cell for the checkboxes, you can use the below formulas to calculate the checkboxes:

Count the checked checkbox:

=COUNTIF(D2:D15,TRUE) (D2:D15 is the range of the link cells that you have set for the checkboxes), then press Enter key to get the number of checked checkboxes.

doc-count-checkboxes-1

Sum the cell values based on checked checkbox:

=SUMPRODUCT(($D$2:$D$15=TRUE)*$C$2:$C$15), (D2:D15 is the range of the link cells that you have set for the checkboxes, and C2:C15 refers to the cells that you want to sum) and then press Enter key to add the checked checkboxes related to the values in column C.

doc-count-checkboxes-1


Insert multiple check boxes in selections at once

Kutools for Excel's Batch Insert Check Boxes utility can help you to quickly insert multiple checkboxes at once. Click to download Kutools for Excel!


Demo: Sum or count checked checkboxes with formulas

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

Related article:

How to quickly insert multiple checkboxes in Excel?

Best Office Productivity Tools

Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

kte tab 201905


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
i am trying to count the checkbox for attendance by using =sum(countif(c2: f2, true)) formula. but i am not getting correct output. all showing 0. please help
This comment was minimized by the moderator on the site
Hey :) Danke für die Hilfe! Aber muss man wirklich jedes Kästchen einzeln verknüpfen? Gibt es hierfür keine Möglichkeit der Multiplikation? Ich habe ca. 200 Kontrollkästchen in meinem Dokument und würde mir die zeit gerne sparen.
This comment was minimized by the moderator on the site
Hello, A,
To link multiple checkboxes to individual cells, the following VBA code can help you:
Sub LinkChecks()
'Update by Extendoffice
Dim xCB
Dim xCChar
i = 2
xCChar = "B"
For Each xCB In ActiveSheet.CheckBoxes
If xCB.Value = 1 Then
    Cells(i, xCChar).Value = True
Else
    Cells(i, xCChar).Value = False
End If
xCB.LinkedCell = Cells(i, xCChar).Address
i = i + 1
Next xCB
End Sub

Note: In the above code, i = 2, the number 2 is the starting row of your checkbox, and the letter B is the column location where you need link the checkboxes to. You can change them to your need.

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
I created basic spreadsheet, 7 columns with checkboxes, and 8th column with count, I need thousands rows in it over time. Right now only 50 rows, and when I change column width (of another plain text column) I need to wait for Microsoft to recalculate everything... for two minutes!!! Thank you very much Microsoft.

So, it is just basic spreadsheet; do try any sophistication, you will get burnt.
This comment was minimized by the moderator on the site
I used KUTOOLS in Excel to Batch Add Checkboxes. Now, How do I format them in a batch?
This comment was minimized by the moderator on the site
Very useful information, thank you very much.
This comment was minimized by the moderator on the site
If I counted checkboxes in a column and found some set on, how can I then clear (remove checkboxes) in that column given I have more than one column that I want to be left asis?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations