How to Count Checkboxes in Microsoft Excel

Configurare noua (How To)

Situatie

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.

Solutie

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

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

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.

Tip solutie

Permanent

Voteaza

(4 din 10 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?