Templates, guides & honest tool reviews for small business

Sunday, November 29, 2026

Google Sheets Conditional Formatting Based on Another Cell: Step-by-Step Guide

Silver laptop keyboard on a wooden desk, for Google Sheets conditional formatting

Google Sheets conditional formatting based on another cell lets one cell decide how a different cell looks. You can turn a whole row green when a status says "Paid", flag a late date in red, or grey out a finished task. This guide shows the exact steps, the custom formulas to copy, and the mistakes that make a rule fail.

How conditional formatting works in Google Sheets

Conditional formatting is a set of rules attached to a range. Each rule has a condition and a style. When the condition is true for a cell, Sheets applies the style. Open it from the menu: Format > Conditional formatting. The side panel has two parts: Apply to range and Format rules.

The built-in conditions (text contains, is empty, greater than, date is before) only look at the cell itself. To change a cell format based on another cell content, you need the custom formula option.

Conditional formatting based on another cell value (custom formula)

  1. Select the range you want to color, for example A2:E100.
  2. Open Format > Conditional formatting.
  3. Under Format rules, choose Custom formula is.
  4. Type a formula that starts with an equals sign and points at the other cell, for example =$C2="Paid".
  5. Pick a fill color under Formatting style and click Done.

The dollar sign before the column letter is the important part. $C2 locks the column but lets the row change, so every row checks its own status in column C. Without the dollar sign, the rule drifts to the right and colors the wrong cells.

Conditional formatting Google Sheets based on another cell text

Use an exact match for a status word: =$C2="Paid". Use =REGEXMATCH($C2,"(?i)late") when the text only needs to contain a word, ignoring capital letters.

Based on another cell color or number

Sheets cannot read the color of another cell, so base the rule on the value that caused the color. For numbers, =$D2>1000 highlights the row when column D is over 1,000. For dates, =AND($B2<TODAY(),$C2<>"Done") flags anything past its due date that is not finished.

Google Sheets conditional formatting based on another cell: rows turn green when the status says Paid
Rows turn green when column C says Paid (illustration made for this guide, sample data).
Google Sheets conditional formatting custom formula rule with apply to range A2:E100
The custom formula rule panel. Menu names may differ slightly in your version (illustration).

Conditional formatting if another cell is empty

To highlight rows where a required field is missing, use =ISBLANK($C2). To highlight only when another cell is filled in, use =NOT(ISBLANK($C2)). If you want the row ignored while the status is empty, combine both: =AND($A2<>"",ISBLANK($C2)).

Conditional formatting based on a checkbox

Insert checkboxes with Insert > Checkbox. A ticked box holds TRUE and an empty one holds FALSE. To strike through and grey a row when the box in column D is ticked, select the row range, choose Custom formula is, and enter =$D2=TRUE. Then set the text color to grey and turn on strikethrough. This is a simple way to build a to-do list in Sheets.

Highlight duplicates with conditional formatting

For google sheets conditional formatting for duplicates, select the column, for example A2:A, and use =COUNTIF($A$2:$A,$A2)>1. Every value that appears more than once gets the fill color. To find duplicate values across two columns, add a second condition that checks the other column with COUNTIF.

Google Sheets highlight duplicates with conditional formatting and a COUNTIF formula
Duplicate values highlighted with a COUNTIF custom formula (illustration, sample emails).

Why a conditional formatting rule does not work

  • Wrong range. The rule only applies to the range in "Apply to range". Check it first.
  • Missing equals sign. A custom formula must start with =.
  • Numbers stored as text. A cell that looks like 100 may be text. Compare with VALUE() or fix the cell format.
  • Rule order. Rules at the top win. Drag the rule you want first to the top of the list.
  • Locked references. Use $C2, not C2 or $C$2, when each row should check its own row.

Related Sheets guides

If your rules use lookups, read our guide to XLOOKUP vs VLOOKUP. If you track tasks in a sheet and review them each week, our weekly team meeting agenda gives you a simple structure for that review.

Conditional formatting based on another cell: related questions

How do I use conditional formatting if another cell contains text?

Use a custom formula such as =REGEXMATCH($C2,"late") to color a row when column C contains the word late. For an exact match, use =$C2="Paid".

How do I format a cell only if another cell is not empty?

Use =NOT(ISBLANK($C2)) as the custom formula and apply it to the cells you want colored.

Can conditional formatting check multiple values in another cell?

Yes. Use OR, for example =OR($C2="Paid",$C2="Sent"), to color a row when column C matches either value.

Quick summary

For google sheets conditional formatting based on another cell, use Custom formula is, lock the column with a dollar sign, and point the formula at the cell that holds the status. That one pattern covers text, dates, empty cells, checkboxes and duplicates.

No comments:

Post a Comment