How to Use Conditional Formatting in Google Sheets
Make cells color themselves based on what's in them — highlight overdue dates, flag numbers over a target, build a heat map. Here's the basic rule, a color scale, and the custom-formula trick for "based on another cell."
The quick version: select your cells, go to Format → Conditional formatting, set a condition (like "Greater than 1000"), pick a color, and click Done. Here's that plus color scales and the "based on another cell" formula.
Color by value
Select the range, open Format → Conditional formatting, and under Single color choose a condition — Greater than, Text contains, Date is before, Is empty — enter the value, pick a fill, and click Done. The color updates live as values change.
A color scale (heat map)
Switch to the Color scale tab and Sheets shades cells along a gradient from low to high — an instant heat map, no formula needed.
Based on another cell (custom formula)
To color a cell by comparing it to another cell, choose Custom formula is. To highlight column B when it exceeds column C, on each row:
=$B2 > $C2
The $ before the column locks it so the rule applies row by row. This is how you flag "actual over budget," "past due," and similar.
Remove a rule
Open the panel, hover the rule, and click the trash icon.
Analyze your Sheets data with AI
Ask questions about your Google Sheets in plain English and get the answer in the cell with =QUIRIZ(). Free to start.
Try Quiriz free →