Skip to content
TablePage.ai Open the app

How to Add Checkboxes in Google Sheets Without Losing the Data

Add Google Sheets checkboxes, count and filter checked rows, then export a clear TRUE/FALSE or Yes/No field for a public data table.

Share X in f
Wei Hu

To add checkboxes in Google Sheets, select the target cells and choose Insert > Checkbox. A default checkbox stores TRUE when checked and FALSE when unchecked. This makes the column usable in formulas and filters—and preserves its meaning when you prepare the data for publication.

A reporting tracker might use this structure:

report_id report_title publication_date published
R-001 Housing permits, Q1 2026-04-18 ☑
R-002 Housing permits, Q2 ☐

Keep one record per row. Give the checkbox column a specific header such as published, reviewed or source_verified; done may be unclear when the table is shared without its original instructions.

Add a checkbox column

  1. Enter a header, such as published, in the first row.
  2. Select the cells below it—for example, D2:D100.
  3. Choose Insert > Checkbox.
  4. Click a box to switch its state.

These are Google’s current desktop steps. Google also documents that checkboxes work with functions, filters, charts and pivot tables (Google Docs Editors Help).

Do not apply a checkbox to the header cell. If the list grows, copy an existing checkbox cell into each new row or extend the validation to a deliberately bounded range. Before publication, remove unused trailing rows rather than exporting a large blank grid.

Count checked and unchecked records

Google’s Apps Script reference confirms that default checkboxes use true and false, and that inserting them initializes the cells to false (Google for Developers).

If the checkboxes are in D2:D100, count checked rows with:

=COUNTIF(D2:D100,TRUE)

If the range includes unused rows, do not count every FALSE: newly inserted blank-row checkboxes are also false. Require a record ID in column A:

=COUNTIFS(A2:A100,"<>",D2:D100,FALSE)

Calculate the share of populated records that are checked with:

=IFERROR(COUNTIFS(A2:A100,"<>",D2:D100,TRUE)/COUNTIF(A2:A100,"<>"),0)

Format the result as a percentage. COUNTIF tests one criterion, while multiple conditions require COUNTIFS (Google Docs Editors Help). For other patterns, see Google Sheets formulas and when to use them.

To display only published records, apply a filter to the complete table and filter the checkbox field to TRUE. Selecting the whole table keeps each record’s fields together.

Highlight checked rows

You can de-emphasize completed records without changing their values:

  1. Select the table body, such as A2:D100.
  2. Choose Format > Conditional formatting.
  3. Under Format cells if, choose Custom formula is.
  4. Enter:
=$D2=TRUE
  1. Choose a fill color or strikethrough style, then select Done.

The dollar sign fixes the rule to column D while the row number changes for each record. Google documents this method for formatting an entire row from the value in one cell (Google Docs Editors Help).

Formatting is only a visual aid. Keep the Boolean column because readers and downstream tools cannot reliably infer status from a row’s color.

Use custom values when they clarify the data

Google Sheets can display checkboxes while storing custom values such as Yes and No:

  1. Select the checkbox cells.
  2. Choose Data > Data validation.
  3. Set the criterion to Checkbox.
  4. Enable Use custom cell values.
  5. Enter the checked and unchecked values, then save.

Google documents the unchecked custom value as optional (Google Docs Editors Help). If you use custom values, formulas must match them:

=COUNTIF(D2:D100,"Yes")

TRUE/FALSE is generally the cleaner machine-readable choice. Yes/No may be easier for a general audience, but the column name or dataset notes should still explain what “yes” means.

Avoid an empty unchecked value if blank could also mean “not reviewed” or “unknown.” A checkbox represents two states. If the workflow needs Not started, In review and Published, use a status column rather than forcing three meanings into a two-state control.

Prepare the field for publication

A spreadsheet checkbox is an interface control over a cell value. CSV stores text and values rather than a clickable spreadsheet interface; visual formatting and other worksheet features are not retained (Microsoft Support). Treat the stored TRUE/FALSE or custom text—not the checkbox graphic—as the publishable field.

Before exporting or publishing:

  • Rename the column so its meaning is clear outside Google Sheets.
  • Check populated rows for blanks or invalid pasted values.
  • Decide whether FALSE means “no” or “not yet,” and explain that distinction in the dataset notes.
  • Remove helper checkboxes that control the sheet but do not describe a record.
  • Export a sample and verify its values and row count.
  • Never upload private or sensitive records to a public data page.

The published table can then expose a sortable, filterable field such as published = TRUE, even when it does not reproduce Google Sheets’ clickable boxes.