How to Add Checkboxes in Excel and Count Them
By ExcelReady TeamUpdated 6 min read
The short answer
To add a checkbox in Excel for Microsoft 365, select the cells and choose Insert > Checkbox. Each box stores TRUE when ticked and FALSE when not. Count the ticked ones with =COUNTIF(C2:C7,TRUE). In older versions, use Developer > Insert > Check Box and link each box to a cell, then count the linked cells the same way.
Key takeaways
- In Microsoft 365, Insert > Checkbox puts a checkbox inside each selected cell.
- A ticked box is TRUE and an unticked box is FALSE, so formulas can read it like any value.
- =COUNTIF(C2:C7,TRUE) counts ticked boxes; divide by the number of tasks for percent complete.
- Older Excel uses Form Control check boxes, which need a linked cell before formulas can see them.
On this page+
A checkbox in Excel turns a cell into a tick box you can click on and off. Behind the box, the cell holds TRUE or FALSE, so you can count ticked boxes with COUNTIF and show how much of a list is done. This guide covers both ways to add checkboxes, for Microsoft 365 and for older versions, and how to count them, total them and color finished rows.
How to add a checkbox in Excel (Microsoft 365)#
In Excel for Microsoft 365 and Excel for the web, checkboxes live inside cells. They behave like normal values: you can copy them, fill them down and sort by them.
- Select the cells that should get a box, for example C2:C7.
- Choose Insert > Checkbox.
- Click a box to tick it, or select the cell and press Space.
Each ticked box stores TRUE and each unticked box stores FALSE. Click a cell and look at the formula bar to see the value. If the cells already held TRUE or FALSE, the boxes pick those values up. Empty cells start as FALSE.
To add more boxes later, select a cell with a checkbox and fill down with Ctrl+D (Mac: ⌘D), or copy and paste it. Excel 2021, Excel 2019 and earlier don't have this button. Use the Developer tab method below instead.
How to add a checkbox in older versions of Excel#
Older desktop versions use Form Control check boxes. These float on top of the sheet rather than sitting in a cell, and they need a linked cell before formulas can read them.
Turn on the Developer tab#
- Windows: File > Options > Customize Ribbon, tick Developer, click OK.
- Mac: Excel > Preferences (or Settings) > Ribbon & Toolbar, tick Developer, click Save.
Draw and link a check box#
- Choose Developer > Insert > Check Box (Form Control).
- Click and drag on the sheet to draw it. Edit or delete the label text.
- Right-click the box and choose Format Control.
- On the Control tab, click in Cell link, click the cell next to it (for example C2), and click OK.
The linked cell now shows TRUE or FALSE as you tick and untick. Without a cell link, the box is only a picture: formulas can't see it. For many rows, set up one box, copy it down, and update each cell link. That is slow, which is the main reason the newer in-cell checkboxes are easier.
How to count checked boxes with COUNTIF#
Use COUNTIF with TRUE as the criteria to count ticked boxes. Here is an event task list:
| A | B | C | |
|---|---|---|---|
| 1 | Task | Owner | Done |
| 2 | Book venue | Lena | TRUE |
| 3 | Send invites | Omar | TRUE |
| 4 | Order food | Lena | FALSE |
| 5 | Print badges | Priya | TRUE |
| 6 | Test projector | Omar | FALSE |
| 7 | Confirm speakers | Priya | TRUE |
To count finished tasks:
=COUNTIF(C2:C7,TRUE)The result is 4. Write TRUE without quotes. It is a logical value, not the text "TRUE". To count the tasks still open, use FALSE:
=COUNTIF(C2:C7,FALSE)That returns 2. The COUNTIF function guide lists the full syntax, and how to use COUNTIF shows more types of criteria.
How to show percent complete#
Divide the ticked boxes by the number of tasks. COUNTA counts the filled task names:
=COUNTIF(C2:C7,TRUE)/COUNTA(A2:A7)The result is 0.666.... Format the cell as a percentage with Ctrl+Shift+% (Mac: Control+Shift+%) and it shows 67%. Using COUNTA on the task column means the total updates when you add a task.
To count one person's finished tasks, add a second condition with COUNTIFS:
=COUNTIFS(B2:B7,"Priya",C2:C7,TRUE)Priya has 2 ticked tasks. The comparison of COUNTIF vs COUNTIFS explains when you need the second function.
Use checkbox values in IF and other formulas#
Because a checkbox is TRUE or FALSE, you can use it anywhere Excel expects a test. A test is any expression that gives TRUE or FALSE, like B2>100.
To show a status label:
=IF(C2,"Done","Open")IF(C2, ...) is the same as IF(C2=TRUE, ...). If C2 is ticked, the result is "Done".
To add up only the costs of ticked items, use SUMIF with TRUE as the condition. If D2:D7 holds costs:
=SUMIF(C2:C7,TRUE,D2:D7)This adds the costs on ticked rows only. It's useful for a packing list, a shopping list or an expense claim where you tick what's approved. You can learn how TRUE and FALSE work in the lesson on TRUE, FALSE and comparisons.
How to color or strike through finished rows#
Conditional formatting can grey out or strike through a row when its box is ticked.
- Select the rows, for example A2:C7.
- Choose Home > Conditional Formatting > New Rule.
- Pick Use a formula to determine which cells to format.
- Type
=$C2=TRUE. - Click Format, tick Strikethrough and choose a grey font. Click OK twice.
The $ before C keeps every cell in the row looking at the checkbox in column C. Tick a box and the whole row is crossed out.
Common checkbox problems#
Most checkbox problems come from the value behind the box, not the box itself.
- COUNTIF returns 0. You typed
"TRUE"in quotes and the cells hold logical values, or a Form Control box has no cell link. Remove the quotes, or set the link. - Delete doesn't remove the box. For in-cell checkboxes, the first press of Delete unticks a ticked box. Press it again to remove the checkbox.
- Boxes don't move with sorting. Form Control boxes float above the cells and can end up on the wrong row after a sort. In-cell checkboxes move with their rows.
- Typing over a box. If you type text into a checkbox cell, the box shows nothing useful. Keep checkbox columns for TRUE and FALSE only.
Checkboxes also work well for daily logs. The attendance tracker in Excel uses codes, but you could use one checkbox per day instead and count TRUE values the same way.
Practise it#
Try the exercise on this page: count the ticked tasks with COUNTIF and TRUE. Then practise COUNTIF in a live spreadsheet, where you count text, numbers and conditions, and practise TRUE, FALSE and comparisons to see how logical values work inside formulas.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Column C holds checkboxes: TRUE means ticked. In G2, count how many tasks are done with COUNTIF on C2:C7, then press Enter.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Done | |||||||
| 2 | Tasks done | |||||||
| 3 | ||||||||
| 4 | ||||||||
| 5 | ||||||||
| 6 | ||||||||
| 7 | ||||||||
| 8 | ||||||||
| 9 | ||||||||
| 10 |
Tip: Use the Done column as the range and TRUE (without quotes) as the criteria.
Practise this in a lesson
Frequently asked questions
How do I insert a checkbox in Excel?
In Excel for Microsoft 365 or Excel for the web, select the cells and choose Insert > Checkbox. In older desktop versions, turn on the Developer tab, then choose Developer > Insert > Check Box (Form Control) and draw it on the sheet.
How do I count checked boxes in Excel?
Use COUNTIF with TRUE as the criteria: =COUNTIF(C2:C7,TRUE). Ticked boxes are TRUE, so this counts them. Use FALSE instead to count the boxes that are not ticked.
Why is the Checkbox button missing from my Insert tab?
In-cell checkboxes are a Microsoft 365 and Excel for the web feature. Excel 2021, 2019 and earlier don't have them, so use the Developer tab's Form Control check box instead.
How do I delete checkboxes in Excel?
Select the cells and press Delete. If a box is ticked, the first press only unticks it, so press Delete again to remove the checkbox. Form Control check boxes are removed by selecting them with Ctrl-click and pressing Delete.
Can a checkbox change a cell's color?
Yes. Add a conditional formatting rule with a formula such as =$C2=TRUE and pick a fill or strikethrough. The row changes as soon as the box is ticked.