Rules with custom formulas

Write formula rules that compare cells in the same row, combine conditions with AND and OR, and handle empty cells.

Advanced · 12 min · 12 steps

In this lesson

  • Write the formula for the first cell of the range, and start your selection on that cell.
  • Same row: =C2>B2. Whole row: =$C2>$B2. A settings cell: =C2>$G$1.
  • AND: every condition TRUE. OR: at least one TRUE. =AND(C2<=B2,C2+D2>B2), =OR(C2="",D2="").

Try a free lesson first

Why your formula broke when you copied it

Lock a cell with $ so a formula keeps working when you copy it down.

Beginner · 7 min · Free, with no sign-up

Do the free lesson on your computer.

Send yourself the link and open it on a laptop or desktop.

On your computer, go tolearnford.com/go/GX5R

This lesson is in the full Excel course

US$149 once

Tax included. New lessons are added as they're written.

Get the full course, US$149

30-day money-back guarantee if you've opened fewer than 10 paid lessons.

  • All 217 Excel lessons open today, and every new one as it's written.
  • The Roadmap, Skills and all eight paths.
  • A cheat sheet for every lesson you finish.

Already have the course? Sign in

Skill
Conditional formatting
Stage
Advanced

Where it sits in Conditional formatting 9 lessons

The steps

12 steps: 4 explanations, 6 Do this, 2 questions, then Your turn.

Try a free lesson first

Why your formula broke when you copied it

Lock a cell with $ so a formula keeps working when you copy it down.

Beginner · 7 min · Free, with no sign-up

Do the free lesson on your computer.

Send yourself the link and open it on a laptop or desktop.

On your computer, go tolearnford.com/go/GX5R