Rules with custom formulas
Write formula rules that compare cells in the same row, combine conditions with AND and OR, and handle empty cells.
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$14930-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.
- Skill
- Conditional formatting
- Stage
- Advanced
Where it sits in Conditional formatting
- Highlight cells above a value8 min
- Traffic-light status column10 min
- Manage and remove rules9 min
- Rules with custom formulasThis lesson12 min
- Icon sets10 min
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