What is conditional formatting in Google Sheets?

Conditional formatting changes how cells look when they meet rules you define, such as values above a target or dates in the past. It helps scanners spot problems fast without writing values into extra helper columns. Rules can be simple comparisons or custom formulas that reference other sheets.

When to use it

Use it on dashboards, trackers, and QA lists where color draws the eye: overdue dates in red, top performers in green, or duplicate ids highlighted before export.

When to skip it

Skip heavy conditional formatting on huge ranges you scroll constantly; it can slow very large sheets. If you need computed labels in mail merges, put values in cells with formulas instead of color alone.

How it works

  1. 1

    Select the range to format, then Format > Conditional formatting.

  2. 2

    {:"Choose a rule type"=>"greater than, text contains, date is, or custom formula is."}

  3. 3

    {:"Set format style"=>"fill color, bold text, or color scale across the range."}

  4. 4

    For custom formulas, write as if the top-left cell of the range is active, using $ locks when needed.

  5. 5

    Add multiple rules; Google applies them in order listed, first match wins for overlapping rules.

  6. 6

    {:"Test edge cases"=>"blanks, zeros, text that looks like numbers, and rows inserted at the bottom."}

Examples in Google Sheets

Overdue highlight

Custom formula =AND($E2<TODAY(),$F2<>"Done") on row 2 applied down column A flags late open tasks.

Heat map on revenue

Color scale on B2:M2 months shows seasonality without building a separate chart for a standup slide.

Duplicate id check

Custom formula =COUNTIF($A:$A,$A2)>1 highlights repeated keys before you sync to another system.

Build this without starting from a blank cell

Use a Better Sheets tool for conditional formatting, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • Forgetting $ on column letters so the rule shifts wrong when applied across many columns.
  • Stacking ten rules with no note, then wondering why a cell turned purple.
  • Using conditional formatting instead of data validation, so users can still type invalid statuses.
  • Applying a rule to entire columns A:A on a 100k row sheet without need, hurting performance.
  • Writing formulas that reference the wrong sheet name after a tab rename.

Frequently asked questions

Can conditional formatting use another tab?
Yes in custom formulas: ='Settings'!$B$1 or similar. Quote sheet names with spaces.
Why is my custom formula rule not working?
Check relative vs absolute references, whether the range starts on the row your formula assumes, and that the formula returns TRUE for cells you expect.
Can I format entire rows?
Use a custom formula on row 2 like =$C2="Urgent" and apply across A:Z so the whole row highlights.
Do rules copy when I paste rows?
New rows inside the formatted range usually inherit rules. Pasting values from outside may not bring formats.
Conditional formatting vs filter views?
Formatting always shows color. Filter views hide rows. They complement each other on busy dashboards.
Can I use icons?
Google Sheets supports icon sets in some rule types depending on UI options; color scales and text color are most common.
How do I clear all rules?
Select the range, open Conditional formatting, and remove rules in the sidebar one by one or reset the range.
Does formatting work on IMPORTRANGE data?
Yes on the receiving sheet, but refresh timing depends on the import, not your rule.

Related Tutorials

Watch how conditional formatting works

Browse more tutorials
Ultimate Checklist in Google Sheets

Ultimate Checklist in Google Sheets

how to create and customize checklists using Google Sheets. I show you h...
DarkSide of Google Sheets - Creating Dark Mode and Making it Better!

DarkSide of Google Sheets - Creating Dark Mode and Making it Better!

Create dark mode with Conditional Formatting.
What Can You Automate in Google Sheets? Every single trigger available to Google Sheet users

What Can You Automate in Google Sheets? Every single trigger available to Google Sheet users

Learn about triggers, hourly, daily, weekly, etc.
The First Thing I Do When Starting a Google Sheet

The First Thing I Do When Starting a Google Sheet

Are you tired of the default look of your Google Sheets? In this video, ...
Study Better With Google Sheets

Study Better With Google Sheets

Made Ali Abdaal's study google sheet better.
Automate Google Sheets With Zero Experience

Automate Google Sheets With Zero Experience

By the end of this video you should be knowledgeable about how to automa...

Related blog posts

Guides that explain conditional formatting in more depth.

Browse the blog

Related glossary terms

Done reading about conditional formatting?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.