Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to sum / count checked checkboxes in Excel?

Author Xiaoyang Last modified

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.

A screenshot of a worksheet in Excel with checkboxes and associated data

Sum or count checked checkboxes in Excel


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:
    A screenshot of the Format Control option in Excel
  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:
    A screenshot showing how to link a checkbox to a specific cell using the Format Control dialog box
  3. If the checkbox is checked, the cell will display TRUE; if it is unchecked, the cell will remain blank.
  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:
    A screenshot of linked checkboxes with corresponding TRUE/FALSE values in Excel
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
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 xCChar = "D", the letter D is the column location where you need link the checkboxes to. You can change them to your need.
A screenshot showing the result of running VBA code to link multiple checkboxes in Excel

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.

A screenshot of the COUNTIF formula used to count checked checkboxes in Excel

Sum the cell values based on checked checkboxes:

=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.

A screenshot of the SUMIF formula applied to calculate the sum of values based on checked checkboxes in Excel

Counting or summing checked checkboxes in Excel becomes 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!
A screenshot of the Kutools Batch Insert Checkboxes feature in Excel

Demo: Sum or count checked checkboxes in Excel

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

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 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
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in