1
00:00:00,080 --> 00:00:04,192
A checkbox tracker looks simple, but counting the checked boxes by

2
00:00:04,192 --> 00:00:06,434
eye becomes unreliable as tasks grow.

3
00:00:06,434 --> 00:00:10,546
Google Sheets stores ordinary checkbox states as true or false values.

4
00:00:10,546 --> 00:00:14,284
In this fictional three-task list, two boxes start checked.

5
00:00:14,284 --> 00:00:18,395
We will add checkboxes, enter a COUNTIF formula for true values,

6
00:00:18,395 --> 00:00:22,881
and toggle one box to verify the count changes with the state.

7
00:00:23,481 --> 00:00:26,682
Paste the fictional task list into a fresh Sheet.

8
00:00:26,682 --> 00:00:30,594
Put task names in column A and use B two through

9
00:00:30,594 --> 00:00:32,728
B four for the completion state.

10
00:00:32,728 --> 00:00:36,640
Select B two through B four and use Insert, then Checkbox

11
00:00:36,640 --> 00:00:38,063
to create ordinary checkboxes.

12
00:00:38,063 --> 00:00:41,975
Set Draft brief and Publish page checked, leaving Review copy unchecked.

13
00:00:41,975 --> 00:00:46,243
Verify the three states are true, false, true before adding the count.

14
00:00:46,843 --> 00:00:50,814
In a separate summary cell, enter equals COUNTIF open parenthesis B

15
00:00:50,814 --> 00:00:53,702
two colon B four comma TRUE close parenthesis.

16
00:00:53,702 --> 00:00:57,672
COUNTIF tests each cell in that range against the true value.

17
00:00:57,672 --> 00:01:02,365
The expected answer is two because B two and B four are checked.

18
00:01:02,365 --> 00:01:06,336
Place the formula outside B two through B four so it

19
00:01:06,336 --> 00:01:09,223
cannot replace a checkbox or accidentally count itself.

20
00:01:09,823 --> 00:01:12,563
Uncheck the Publish page box in B four.

21
00:01:12,563 --> 00:01:16,673
The count should drop from two to one without editing the formula.

22
00:01:16,673 --> 00:01:20,098
Check it again and the count should return to two.

23
00:01:20,098 --> 00:01:23,865
This is a useful diagnostic: if the count does not change,

24
00:01:23,865 --> 00:01:27,633
inspect whether the summary range points at the actual checkbox cells

25
00:01:27,633 --> 00:01:32,085
and whether the boxes use custom values instead of standard true and false.

26
00:01:32,685 --> 00:01:35,215
COUNTA counts cells that are not empty.

27
00:01:35,215 --> 00:01:39,190
An unchecked standard checkbox still contains a false value, so COUNTA

28
00:01:39,190 --> 00:01:43,165
of B two through B four can return three even when

29
00:01:43,165 --> 00:01:44,972
only two tasks are complete.

30
00:01:44,972 --> 00:01:49,670
COUNTIF with TRUE asks the question you actually mean: which cells are checked.

31
00:01:49,670 --> 00:01:53,645
Keep that distinction clear if you later calculate a completion percentage.

32
00:01:54,245 --> 00:01:58,435
Sheets can be configured to use custom checked and unchecked values

33
00:01:58,435 --> 00:01:59,958
in checkbox data validation.

34
00:01:59,958 --> 00:02:04,148
If your own checklist stores words such as Done and Open,

35
00:02:04,148 --> 00:02:07,195
a TRUE criterion will not measure it correctly.

36
00:02:07,195 --> 00:02:11,766
Inspect the checkbox rule or a cell's underlying value, then adapt

37
00:02:11,766 --> 00:02:14,432
the criterion to the actual checked value.

38
00:02:14,432 --> 00:02:17,861
The supplied exercise uses ordinary true and false checkboxes.

39
00:02:18,461 --> 00:02:22,698
The exercise passes when the default state returns two, unchecking B

40
00:02:22,698 --> 00:02:26,166
four returns one, and restoring it returns two again.

41
00:02:26,166 --> 00:02:28,862
The answer file states each expected transition.

42
00:02:28,862 --> 00:02:33,100
On a larger tracker, decide whether blank future rows should be

43
00:02:33,100 --> 00:02:37,723
in the count range; a large open-ended range can hide mistakes

44
00:02:37,723 --> 00:02:41,191
if unrelated true values appear below the task list.
