How do I change the color of a cell when the checkbox is checked in Google Sheets?

In Google Sheets, you can use Conditional Formatting to change the color of a cell when a checkbox is checked. To do this, select the cell you want to change the color of, click on the “Format” tab, select “Conditional Formatting”, then click on “Format cells if…” and select “Checkbox is checked”. Finally, select the color you want the cell to be and click “Done”.


You can use the custom formula function in Google Sheets to change the color of a cell when a checkbox is checked.

The following example shows how to use the custom formula function in practice.

Example: Conditional Formatting Based on Checkbox

Suppose we have the following dataset in Google Sheets that contains the names of a list of students and whether or not they passed the final exam in a certain class:

Suppose we would like to highlight the name of the student in green if the checkbox in the corresponding column is checked.

To do so, we can click the Format tab, then click Conditional Formatting:

In the Conditional format rules panel that appears on the right side of the screen, type A2:A11 in the box called Apply to range.

Then choose Custom formula is from the dropdown menu under Format cells if… then type the following formula into the box:

=$B2=TRUE()

Once you click Done, each cell in column A that has a checkbox checked in column B will automatically be highlighted in green:

If you then check a new checkbox, such as the one next to student J, the student name will automatically become highlighted in green:

Note #1: In Google Sheets, if a checkbox is checked then that cell has an underlying value of TRUE, which is why we use the formula =$B2=TRUE() to determine if a checkbox is checked.

x