How to Count Checkboxes in Microsoft Excel

Microsoft Excel logo on a green background

First, designate cells to hold “True” or “False” results based on the state of each checkbox. You can then count up the checkboxes by using Excel’s COUNTIF function to count the number of “TRUE” results.

If you use Excel to create a checklist, you may want to count the number of checked or unchecked boxes. With a simple formula, you can tally them in a cell that adjusts as more boxes are marked or unmarked.

Designate Cells for the Checkbox Controls

When you check a box in Excel, the result of the check is True. For unchecked boxes, the result is False.

So, before you create the formula to count your checkboxes, you’ll need to designate cells to hold the True or False result. You’ll then use that result in your formula.

RELATED: How to Count Checkboxes in Google Sheets

Right-click your first checkbox and select “Format Control” in the shortcut menu.

Format Control in the shortcut menu

In the Format Control box that appears, go to the Control tab. In the Cell Link box, enter the cell where you want to display the True or False result. You can also select the cell in your sheet to populate that box.

Click “OK” to save the change.

Cell reference in the Cell Link box

Follow the same process for the other checkboxes that you want to count in your sheet.

You should then see the True result for checked boxes and False for unchecked boxes in the designated cells.

Checked boxes displaying True

Note: If you set the default Value for the checkbox as Unchecked, it won’t display False unless you check the box and then uncheck it.

Use the COUNTIF Function

Once you have the checkboxes set up, go to the cell where you want to display the count.

You’ll then enter a formula for the COUNTIF function that displays a count for either True or False, depending on which you want to count.

As an example, we are counting the checked boxes in cells B2 through B11 using their results in cells C2 through C11. So, you’ll use the result cells in your formula as follows:

=COUNTIF(C2:C11,TRUE)

You can see that we received the correct count of 6 for our checked boxes.

COUNTIF True for checked boxes

To count the unchecked boxes instead, simply replace True with False in the formula:

=COUNTIF(C2:C11,FALSE)

COUNTIF False for unchecked boxes

Note: If you set the default Value for the checkbox as Mixed, it will not count toward the True or False result. It displays as #N/A until the box is checked or unchecked.

Optional: Hide the Result Cells

It may not be ideal to display the True and False results in your sheet. It might be distracting from the data you want to see.

If you have the results in a single column or row without any other data you need, you can simply hide the column or row.

Right-click the column or row and pick “Hide” in the shortcut menu.

Hide in the column menu

The formula for the checked or unchecked boxes will work just the same with the results hidden.

Results column hidden in Excel

Counting the number of completed tasks, incomplete orders, or something similar is easy to do with the COUNTIF function and a bit of checkbox manipulation in Excel.

Original Article