How to use conditional formatting in Google Sheets

Updated · DeskHowTo

In Google Sheets (verified 2026-10-24), select a range, choose Format > Conditional formatting. Add a rule such as Cell is empty, Text contains, or Greater than, pick a fill colour, and click Done.

Use Custom formula is for row highlighting (for example =$A2="Done"). Rules are listed in the sidebar — drag to set priority.

Jump to

Applies to Sheets in the browser. Similar idea to Excel's conditional formatting but with Google's rule sidebar. Great for status columns and deadline heatmaps.

Add a colour rule

Basic rule

  1. Select the cells to format.
  2. Open Format > Conditional formatting.
  3. Under Format rules, choose a condition (for example Greater than 100).
  4. Pick formatting style > Done.

Highlight a whole row

  1. Select a wide range starting at row 2 (for example A2:F100).
  2. Choose Custom formula is.
  3. Enter =$C2="Done" (lock the status column with $).
  4. Set a fill colour > Done.

Manage rules

  1. With the sidebar open, click a rule to edit or trash it.
  2. Drag rules to change which wins when two match.
  3. Copy cells and use Paste special > Conditional formatting only when available.

Our take: one status colour system

Agree that green = done, amber = waiting, red = blocked — then encode it once. Too many neon rules make sheets unreadable in screenshots.

If it fails

  • Wrong rows colour: relative references in custom formulas need care — usually lock the column ($C2) not the row.
  • Rule applies to one cell only: the Apply to range is too small — edit the range in the sidebar.
  • Conflicts with filters: formatting still applies to hidden rows; that is normal.
  • Need Excel instead: see Excel conditional formatting.

Frequently asked questions

How do I add conditional formatting in Google Sheets?

Select a range > Format > Conditional formatting > set a rule > Done.

Can I highlight an entire row based on one cell?

Yes — use a custom formula like =$C2="Done" on a multi-column range.

How do I remove conditional formatting?

Open the Conditional formatting sidebar and delete the rule.

Do rules work on mobile?

Existing rules apply; creating complex rules is easier on desktop web.

Sheets vs Excel conditional formatting?

Same idea; menus and formula details differ per product.