## How to sum / count checked checkboxes in Excel?

Checkboxes in Excel serve as a practical tool for tracking the status of your data. Imagine you're working with a list that includes checkboxes—some checked and some not. You might find yourself needing to count the number of checkboxes that are checked or calculate the sum of values associated with those checked checkboxes.

#### Sum or count checked checkboxes in Excel

In Excel, there isn't a straightforward formula to count or sum the checked checkboxes directly. To address this issue effectively, please follow these steps:

Step 1: Link Checkboxes to Cells

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:
2. In the Format Object dialog box, under the Control tab, click to select a blank cell which relative to your selected checkbox as the link cell from the Cell link option, and don’t change any other options, and then, click OK button. See screenshot:
3. Then, a TRUE displayed at the selected cell if the checkbox is check, and a blank cell if the checkbox is unchecked.
4. And 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:
Tips: If you have multiple checkboxes that need to be linked to cells, linking them individually can be quite time-consuming. In such instances, you can utilize the following code to link all checkboxes to cells in one go.
VBA code: link multiple checkboxes to cells at once
``````Sub LinkChecks()
'Update by Extendoffice
Dim xCB
Dim xCChar
i = 2
xCChar = "D"
For Each xCB In ActiveSheet.CheckBoxes
If xCB.Value = 1 Then
Cells(i, xCChar).Value = True
Else
Cells(i, xCChar).Value = False
End If
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 xCChar = "D", the letter D is the column location where you need link the checkboxes to. You can change them to your need.

Step 2: Apply formulas to calculate the checkboxes

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

Count the checked checkbox:

``=COUNTIF(D2:D15,TRUE)``
Note: In this formula, D2:D15 is the range of the link cells that you have set for the checkboxes.

Sum the cell values based on checked checkbox:

``=SUMIF(D2:D15, TRUE, C2:C15)``
Note: In this formula, 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.

Counting or summing checked checkboxes in Excel is straightforward once you link them to cells. With these steps, you're well on your way to leveraging Excel's powerful data management capabilities. If you're interested in exploring more Excel tips and tricks, our website offers thousands of tutorials, please click here to access them. Thank you for reading, and we look forward to providing you with more helpful information in the future!

Effortlessly insert multiple checkboxes across your selected range with Kutools for Excel!

Kutools for Excel's Batch Insert Check Boxes feature allows you to add checkboxes in bulk with just a few clicks. Say goodbye to the tedious task of inserting checkboxes one by one and welcome a more efficient way to organize your data. Get it now to start your free trial for 30 days!

#### Demo: Sum or count checked checkboxes in Excel

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

#### Related Articles:

• Excel Checkboxes: Add, select, delete and use checkboxes in Excel
• A checkbox is an interactive tool which is used to select or deselect an option, you will often see them on web forms or when filling in surveys. In Excel, you can add manifold possibilities by checking or unchecking a checkbox which makes your sheet more dynamic and interactive, such as creating checklists by checkboxes, inserting a dynamic chart by checkboxes, etc.
• Create drop down list with multiple checkboxes
• Many Excel users tend to create drop down list with multiple checkboxes in order to select multiple items from the list per time. Actually, you can’t create a list with multiple checkboxes with Data Validation. In this tutorial, we are going to show you two methods to create drop down list with multiple checkboxes in Excel.

### Best Office Productivity Tools

 🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions… 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 Toolsets:  12 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...

#### 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!
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,
``````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
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.

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.
There are no comments posted here yet