Google Sheets 체크된 체크박스 집계: 행·열·조건별

기본 체크박스 값은 TRUE 또는 FALSE입니다. 선택된 개수는 COUNTIF(범위,TRUE), 미선택은 FALSE로 셉니다. 사용자 지정 값을 확인하고 텍스트 "TRUE"와 논리 값을 혼동하지 마세요.

목차

빠른 답변

기본 체크박스 값은 TRUE 또는 FALSE입니다. 선택된 개수는 COUNTIF(범위,TRUE), 미선택은 FALSE로 셉니다. 사용자 지정 값을 확인하고 텍스트 "TRUE"와 논리 값을 혼동하지 마세요.

=COUNTIF(D2:D20, TRUE)

확인 사항

행·열별 집계는 BYROW/BYCOL과 LAMBDA, 담당자·날짜 조건은 COUNTIFS를 사용하세요. 범위 크기를 맞추고 시간 포함 날짜가 누락되지 않도록 날짜 구간을 지정하세요.

주의점 및 호환성

진행률 분모는 무한한 전체 열의 미선택 상자가 아니라 실제 작업 수여야 합니다. 작업이 0개인 경우를 처리한 뒤 백분율이나 SPARKLINE을 표시하세요. 사용자 지정 값의 조건을 맞추고 Excel 버전별 체크박스 구현도 확인하세요.

영어 상세 예제, 수식 및 작성자 메모

Tested in: Live formula checks in Microsoft Excel 16.114.4 for Mac (English UI; system region zh-Hans_US), November 8, 2026; Google Sheets (spreadsheet locale zh_CN), November 9, 2026. Results and platform differences are noted below; this is not a certification of every menu workflow.

Which versions this applies to

Google Sheets on desktop and mobile. The same COUNTIF/COUNTIFS formulas work with Excel’s in-cell checkboxes (Microsoft 365). See the Excel section for the differences.

Example data

Sheet 1: task list (A1:D9)

ABCD
1TaskOwnerDueDone
2Draft briefMaya2026-11-02☑
3Book venueLeo2026-11-05☐
4Order badgesMaya2026-11-06☐
5Email speakersPriya2026-11-03☑
6Print agendaLeo2026-11-09☐
7Test projectorPriya2026-11-10☑
8Catering orderMaya2026-11-04☑
9Name cardsLeo2026-11-12☐

Column D is checkboxes (Insert > Checkbox): ☑ = checked (TRUE), ☐ = unchecked (FALSE). Column C holds real dates.

Sheet 2: weekly habit grid (A1:H5)

ABCDEFGH
1HabitMonTueWedThuFriSatSun
2Walk☑☑☐☑☑☐☑
3Read☑☐☐☑☐☑☑
4Water☑☑☑☑☑☑☑
5Stretch☐☐☑☐☐☐☑

Step 1: Count all checked (and unchecked) boxes

Checked tasks (returns 4 with the sample data):

=COUNTIF(D2:D9, TRUE)

Unchecked tasks (returns 4):

=COUNTIF(D2:D9, FALSE)

To keep counting as you add rows, use an open-ended range. Empty cells below your data aren’t counted because they’re neither TRUE nor FALSE:

=COUNTIF(D2:D, TRUE)

Type TRUE and FALSE without quotes. They’re logical values, and writing them plainly keeps the formula unambiguous.

Step 2: Count checked boxes by row

In the habit grid, put this in I2 and drag down to I5 to get the number of days each habit was done:

=COUNTIF(B2:H2, TRUE)

Sample results: Walk 5, Read 4, Water 7, Stretch 2.

To fill the whole column with one formula (nothing to drag, and new habit rows are easy to include), use BYROW in I2:

=BYROW(B2:H5, LAMBDA(r, COUNTIF(r, TRUE)))

Google’s BYROW documentation says the LAMBDA must take exactly one name (here r, the current row) and return a single value per row, which COUNTIF does.

An alternative that doesn’t use LAMBDA:

=ARRAYFORMULA(MMULT(--(B2:H5=TRUE), SEQUENCE(COLUMNS(B2:H5), 1, 1, 0)))

--(B2:H5=TRUE) turns the grid into 1s and 0s, and multiplying by a column of seven 1s adds up each row.

Make sure the cells below I2 are empty, or the spilled result will be blocked. See Fix “Array Result Was Not Expanded Because It Would Overwrite Data” in Google Sheets.

Step 3: Count checked boxes by column

To count how many habits were done each day, put this in B6 and drag right to H6:

=COUNTIF(B2:B5, TRUE)

Or as one formula in B6:

=BYCOL(B2:H5, LAMBDA(c, COUNTIF(c, TRUE)))

Sample results: Mon 3, Tue 2, Wed 2, Thu 3, Fri 2, Sat 2, Sun 4.

To count every checked box in the grid:

=COUNTIF(B2:H5, TRUE)

That returns 18 with the sample data.

To count habits completed every day (rows where all seven boxes are checked):

=SUMPRODUCT(--(BYROW(B2:H5, LAMBDA(r, COUNTIF(r, TRUE)))=COLUMNS(B2:H5)))

That returns 1 (Water).

Step 4: Count checked boxes by condition

COUNTIFS takes pairs of range and criterion. All ranges must be the same size.

Checked tasks for one owner (Maya: 2):

=COUNTIFS(D2:D9, TRUE, B2:B9, "Maya")

Owner from a cell (put a name, or a drop-down of names, in G1):

=COUNTIFS(D2:D9, TRUE, B2:B9, G1)

Overdue tasks: not checked and due before today:

=COUNTIFS(D2:D9, FALSE, C2:C9, "<"&TODAY())

Checked tasks due within a date range (start in G2, end in G3):

=COUNTIFS(D2:D9, TRUE, C2:C9, ">="&G2, C2:C9, "<="&G3)

A summary table per owner, in one formula. QUERY reads checkbox columns as booleans, so you can filter with true:

=QUERY(A1:D9, "select B, count(A) where D = true group by B label count(A) 'Done'", 1)

Owners with no checked tasks won’t appear in this result. If you get a parse error, see Google Sheets QUERY “Unable to Parse Query String” Error: Causes and Fixes.

Step 5: Show progress as a percentage and a bar

Percent complete (format the cell as a percentage with Format > Number > Percent):

=IFERROR(COUNTIF(D2:D, TRUE) / (COUNTIF(D2:D, TRUE) + COUNTIF(D2:D, FALSE)), 0)

The denominator counts every checkbox, checked or not. IFERROR returns 0% while the list is empty. Sample result: 50%.

In-cell progress bar with SPARKLINE (assuming the percentage is in F2):

=SPARKLINE(F2, {"charttype","bar"; "max",1; "color1","green"})

Google’s SPARKLINE documentation lists "charttype","bar", "max" and "color1" as bar chart options. Setting "max" to 1 makes a full bar equal 100%.

Text progress bar (works anywhere, including exports):

=REPT("■", ROUND(F2*10, 0)) & REPT("□", 10 - ROUND(F2*10, 0))

At 50% this shows ■■■■■□□□□□.

Want this built for you? The Free Google Sheets Habit Tracker Template (Checkboxes + Streaks) uses these formulas plus streak counting.

Custom checkbox values

Google’s help page explains that you can give checkboxes custom values under Data > Data validation > Checkbox > Use custom cell values, for example “Yes” for checked and “No” for unchecked. In that case TRUE no longer matches. Count the custom value:

=COUNTIF(D2:D9, "Yes")
=COUNTIFS(D2:D9, "Yes", B2:B9, "Maya")

Check which values your checkboxes use: click a checked box and look at the formula bar.

Excel vs. Google Sheets

Google SheetsExcel (Microsoft 365)
InsertInsert > CheckboxInsert > Checkbox (in-cell checkbox)
Stored valuesTRUE / FALSE, or custom valuesTRUE / FALSE
Count checked=COUNTIF(D2:D9, TRUE)=COUNTIF(D2:D9, TRUE)
Per-row arrayBYROW + COUNTIF=BYROW(B2:H5, LAMBDA(r, SUM(--r)))

Microsoft’s documentation confirms that a checked in-cell checkbox has the value TRUE and an unchecked one FALSE. In older Excel versions, checkboxes are form controls floating over the grid; they only have a value if each one is linked to a cell (Format Control > Cell link), and you count the linked cells, not the checkboxes themselves.

Common mistakes

  1. Using COUNTA to count checked boxes. Unchecked boxes contain FALSE, which is a value, so COUNTA counts every checkbox. Use COUNTIF(..., TRUE).
  2. Comparing a checkbox to the text “TRUE”. In formulas like =IF(D2="TRUE", ...), the boolean TRUE is not equal to the text "TRUE", so the test fails. Use =IF(D2=TRUE, ...) or simply =IF(D2, ...).
  3. Changing to custom values and forgetting the formulas. After switching to “Yes”/“No”, COUNTIF(..., TRUE) returns 0.
  4. Mismatched COUNTIFS ranges. D2:D9 with B2:B20 returns an error. Keep every range the same size.
  5. Counting “not done” with FALSE when some rows have no checkbox. Rows without a checkbox are empty, not FALSE. Use =COUNTA(A2:A9) - COUNTIF(D2:D9, TRUE) to count unfinished tasks instead.

FAQ

What value does a checked checkbox have in Google Sheets?

TRUE by default, and an unchecked box is FALSE. If you turned on custom cell values in data validation, the checkbox stores those values instead.

How do I count unchecked checkboxes?

Use =COUNTIF(range, FALSE). Empty cells without a checkbox aren’t counted, because they’re neither TRUE nor FALSE.

How do I count checkboxes based on another column?

Use COUNTIFS with the checkbox range and TRUE, then the other column and its criterion, for example =COUNTIFS(D2:D9, TRUE, B2:B9, “Maya”).

How do I show the percentage of checked boxes?

Divide checked by total checkboxes: =COUNTIF(D2:D, TRUE)/(COUNTIF(D2:D, TRUE)+COUNTIF(D2:D, FALSE)), then format as a percent. Wrap it in IFERROR to show 0% when the list is empty.

Why does COUNTIF return 0 even though boxes are checked?

Most often the checkboxes use custom values like “Yes”, so TRUE never matches. Click a checked box, read its value in the formula bar, and count that exact value.

Live-test findings

Native Sheets checks covered default TRUE/FALSE checkboxes, custom checkbox values, COUNTIF/COUNTIFS, BYROW and BYCOL counts, and QUERY summaries. Count the stored checkbox value, not the visual presence of a checkbox. SPARKLINE formulas evaluated without error; their graphical appearance was not inspected.

Sources

Oscar

스프레드시트 수식과 오류 해결을 소개합니다. 검증 환경과 미확인 사항은 각 글을 참고하세요.

Tested in Microsoft Excel 16.114.4 for Mac (English UI; system region zh-Hans_US), November 8, 2026; Google Sheets (spreadsheet locale zh_CN), November 9, 2026.