Google Sheets conditional formatting changes a cell’s fill or text color automatically when its value meets a rule you define. It turns a wall of numbers into something you can scan in seconds: overdue dates turn red, top scores turn green, duplicates stand out. This step-by-step guide covers the rule panel, custom formulas, color scales and the mistakes that trip people up.
Key takeaways
- Open the rules panel from Format, then Conditional formatting, after selecting a range.
- Use “Single color” for yes/no rules and “Color scale” for gradients.
- A custom formula with a dollar sign before the column letter formats a whole row.
- Rules are checked from the top of the list down, so order matters.
How Google Sheets Conditional Formatting Works
A rule has two parts: the range it applies to and the condition that triggers the style. When a cell in that range meets the condition, Sheets applies the formatting you chose. The underlying value is never changed, and the style disappears as soon as the condition stops being true.
The menu layout can change over time, but at the time of writing the rules panel opens from the Format menu. Google documents the panel in its conditional formatting help page.
Step-by-Step: Create Your First Rule
- Select the cells you want to format, for example
D2:D50. - Open the Format menu and choose Conditional formatting. A panel opens on the right.
- Check that the range shown under “Apply to range” is correct.
- Under “Format rules”, open the “Format cells if…” dropdown and pick a condition such as “Greater than”.
- Type the value to compare against, for example
100. - Choose a fill color or text style under “Formatting style”.
- Click Done.
Any cell in D2:D50 above 100 now takes the style. Change a number and the formatting updates immediately.

Built-In Conditions Worth Knowing
| Condition | Typical use |
|---|---|
| Is empty / Is not empty | Flag missing entries in a form-style sheet. |
| Text contains | Highlight rows that mention a keyword such as “urgent”. |
| Date is before / after | Mark overdue or upcoming deadlines. |
| Greater than / Between | Spot budget overruns or values in a target band. |
Date conditions offer relative options such as today or yesterday, which keep the rule current without manual edits.
Highlight Entire Rows with a Custom Formula
Built-in conditions format only the cell you test. To color a whole row based on one column, choose “Custom formula is” at the bottom of the condition list and write a formula that returns TRUE for the rows you want.
=$D2>100
Set “Apply to range” to A2:F50. The dollar sign locks the column to D while the row number moves, so every cell in a row checks that row’s value in column D. Forgetting the $ is the most common reason a custom rule colors the wrong cells.
Useful custom formulas
=COUNTIF($A$2:$A$50, $A2)>1 (highlight duplicates in column A)
=$C2="Done" (grey out completed tasks)
=AND($B2<TODAY(), $C2<>"Done") (overdue and not done)
Color Scales for Gradients
Switch from the “Single color” tab to “Color scale” to shade cells along a gradient from low to high. This works well for score tables, temperature logs or sales by month. You can set the minimum, midpoint and maximum colors, and choose whether those points are fixed numbers, percentages or the lowest and highest values in the range.

Practical Rule Ideas
Here are a few rules that pay off in everyday sheets. Highlight cells in a budget column that exceed the planned amount. Shade a status column green for “Done”, amber for “In progress” and red for “Blocked” using three “Text is exactly” rules. Mark invoice dates older than today with a date rule. Apply a light fill to every other row with a custom formula such as =ISEVEN(ROW()) to improve readability in long tables.
Manage Rules, Order and Copying
Select any cell in the range and reopen the panel to see every rule that applies. Rules at the top take priority when conditions conflict, and you can drag them to reorder. To reuse formatting elsewhere, copy a formatted cell, select the target range and use Paste special with the option for conditional formatting only. For a broader look at structuring data before you format it, see our guide to creating a pivot table.
Common mistakes
- Wrong range. A rule applied to a single column will not color other columns.
- Relative references. Missing dollar signs shift the formula as it applies across cells.
- Text stored as numbers. Comparisons fail quietly, a problem also covered in our VLOOKUP fixes guide.
- Too many colors. Three or four meaningful colors are easier to read than a rainbow.
Frequently Asked Questions
Can I format cells based on another sheet?
Custom formulas in conditional formatting have historically not been able to reference other sheets directly. A common workaround is to bring the data in with a helper column, or wrap the reference in INDIRECT.
How do I remove conditional formatting?
Select the range, open the rules panel and use the trash icon on each rule. Clear formatting from the Format menu also removes it.
Does conditional formatting work with checkboxes?
Yes. A checked box holds TRUE, so a custom formula like =$B2=TRUE can strike through or grey out finished rows.
Will the colors show when I download or print?
Generally yes, since exported files such as XLSX and PDF carry the rendered formatting, though behavior can differ between apps.
Why is my rule not working?
Check the range, the dollar signs, whether another rule above it takes priority and whether the data is text rather than numbers.
Wrap-Up
Start with one simple rule, then graduate to custom formulas once the idea clicks. Used sparingly, Google Sheets conditional formatting makes important values visible without any extra work.



