In this article we will show you how to apply conditional formatting to a checkbox and how we can use this to create data that is more user friendly and responsive.
If you would like to know more about general information regarding conditional formatting, check out our article here:
Conditional formatting is a great way to make checkboxes easier to understand. As an example, data can be made green when a checkbox is checked and red when it is unchecked.
For the examples in this article a sample sheet was created, follow along by clicking here to access the sample sheet.
Select the range of checkbox cells to be included in the conditional format.
With the range highlighted from the top toolbar select Format, then select Conditional formatting from the format menu.
You will now see a pop up menu appear on the right hand side called Conditional format rules.
In the Format rules select the drop down menu labelled “Format cells if…” be sure to change this from Is not empty to Text is exactly. This will show a new Value box underneath this menu. Enter TRUE. When a checkbox cell state is checked the cell value is set to TRUE and FALSE if not checked. We can utilize these parameters.
Next change the cell fill color to your desired color choice using the color fill tool in the Formatting style options. Here you can also change the text to an array of options including bold, italic, underlined, strikethrough or text color.
For this example we will choose the cell fill color to Green.
Select Done in the Conditional format rules, this will now apply your chosen specifications.
In this example we will create a responsive to-do list.
Select the range of data you want to apply the conditional formatting to. In our example we will be selecting the item cells but we can include the full row by highlighting both columns at this step.
From the main toolbar select Format followed by Conditional formatting
A menu will now appear to the right called Conditional format rules, select the drop down menu underneath the “format cells if …” label in Format rules. At the bottom of the drop down menu you will see the option for Custom formula is. Click on this option.
When the Custom formula is selected, a new input box will appear below prompting for a value or formula, enter the formula:
=$ followed by the first checkbox cell. This will apply to the other cells in the column.
For our example this will be =$G4
We are then able to format the style of the text. We will apply the Strike-through format to our text.
Select Done, you can now test the results and see that when checkbox status is set to checked the item cell fills in green and the text the strike-through is applied.
In this article we have demonstrated different ways in which we can apply conditional formats to checkboxes to make spreadsheets more dynamic and responsive.
If you enjoyed this article, you might also like our article on how to copy and paste conditional formatting in Google Sheets or our article on how to use the Google Sheets conditional formatting custom formula.
If you want to learn how to link an email in Google Sheets, we also suggest checking out our detailed guide.