New: ready-to-use spreadsheet templatesExplore the collection  →
PASTE-READY RECIPE

Conditional Formatting Based on Another Cell in Google Sheets

Apply a format to one cell by testing the value in another column.

Written by PhilisPublished July 27, 2026Updated July 27, 2026Visual demo planned
QUICK ANSWER

The formula and where it fits.

Apply a format to one cell by testing the value in another column. Use =$C2="Overdue", then replace the sample ranges with the columns in your sheet.

The dollar sign locks the tested column while each row changes.

  1. Put the source data under one header row.
  2. Paste the formula into an empty result cell.
  3. Change the ranges and criteria to match your sheet.
  4. Check the result against one row you can verify manually.
TRY IT

Edit the table.
Watch the result change.

EDITABLE INPUT DATA
fx=$C2="Overdue"
ABC
1TaskOwnerStatus
2
3
4
FORMULA OUTPUTReview budgetRecalculates from the input cells above
VARIATIONS

Use the version that fits your sheet.

01

Checkbox

=$C2=TRUE

Formats the row when the checkbox in C is checked.

02

Past due date

=AND($C2<>"Done",$B2<TODAY())

Combines status and date.

03

Contains text

=REGEXMATCH(LOWER($C2),"overdue|blocked")

Matches either status word.

COMMON ERRORS

When the result looks wrong.

Only the first row reacts

Apply the rule to the full target range and use the first data-row number in the formula.

The wrong column moves

Lock the tested column with a dollar sign.

QUESTIONS

Answers before you paste.

Only the first row reacts

Apply the rule to the full target range and use the first data-row number in the formula.

The wrong column moves

Lock the tested column with a dollar sign.

MAKE IT YOURS

Change the ranges, labels or criteria.

Send this recipe to the SheetSteps assistant and describe how your columns are arranged.

Adjust this formula