TopicsCheat sheetLessons
Lurndo › Excel › Conditional formatting with formulas

Learning Excel: Conditional formatting with formulas

Conditional formatting

Big orders need brewing in good time. Isla wants to spot them at once, in red, without going through the list herself. And when a new one comes in tomorrow, it should light up by itself.

A rule with a formula

Conditional formatting colours the cells that meet a rule. The rule is a formula that gives TRUE or FALSE.

You write it for the first cell of the range, here E2: =E2>=300. Excel shifts it along to every other cell, just like filling down: for E3 it becomes E3>=300.

ABCDEFGHI
1QuarterBeerCustomerPackagingLitresPriceRevenueResult
2Q1Wise OwlCrown InnKeg300£2.40£720.00
3Q1Tripel HootBay Tree BistroBottle80£4.50£360.00
4Q1Night OwlCurlew InnKeg150£3.20£480.00
5Q1Wise OwlFestival HallKeg600£2.20£1,320.00
6Q1Barn OwlBay Tree BistroBottle60£4.00£240.00
7Q2Wise OwlCrown InnKeg350£2.40£840.00
8Q2Tripel HootCrown InnBottle90£4.50£405.00
9Q2Night OwlBay Tree BistroBottle120£3.40£408.00
10Q2Wise OwlCurlew InnKeg200£2.40£480.00
11Q2Barn OwlFestival HallKeg250£3.60£900.00
12Q3Wise OwlFestival HallKeg800£2.20£1,760.00
13Q3Tripel HootBay Tree BistroBottle110£4.50£495.00
14Q3Barn OwlCrown InnKeg180£3.80£684.00
15Q3Wise OwlCurlew InnKeg250£2.40£600.00
16Q3Night OwlCrown InnKeg100£3.20£320.00
17Q4Night OwlFestival HallKeg400£3.00£1,200.00
18Q4Tripel HootCurlew InnBottle70£4.50£315.00
19Q4Wise OwlCrown InnKeg320£2.40£768.00
20Q4Barn OwlBay Tree BistroBottle90£4.00£360.00
21Q4Tripel HootFestival HallKeg300£4.20£1,260.00
22

Colouring whole rows

Put a $ in front of the column: =$E2>=300. Every cell in the row then looks at column E, while the row still shifts along.

That way the whole row of every big order lights up, from A to G.

ABCDEFGHI
1QuarterBeerCustomerPackagingLitresPriceRevenueResult
2Q1Wise OwlCrown InnKeg300£2.40£720.00
3Q1Tripel HootBay Tree BistroBottle80£4.50£360.00
4Q1Night OwlCurlew InnKeg150£3.20£480.00
5Q1Wise OwlFestival HallKeg600£2.20£1,320.00
6Q1Barn OwlBay Tree BistroBottle60£4.00£240.00
7Q2Wise OwlCrown InnKeg350£2.40£840.00
8Q2Tripel HootCrown InnBottle90£4.50£405.00
9Q2Night OwlBay Tree BistroBottle120£3.40£408.00
10Q2Wise OwlCurlew InnKeg200£2.40£480.00
11Q2Barn OwlFestival HallKeg250£3.60£900.00
12Q3Wise OwlFestival HallKeg800£2.20£1,760.00
13Q3Tripel HootBay Tree BistroBottle110£4.50£495.00
14Q3Barn OwlCrown InnKeg180£3.80£684.00
15Q3Wise OwlCurlew InnKeg250£2.40£600.00
16Q3Night OwlCrown InnKeg100£3.20£320.00
17Q4Night OwlFestival HallKeg400£3.00£1,200.00
18Q4Tripel HootCurlew InnBottle70£4.50£315.00
19Q4Wise OwlCrown InnKeg320£2.40£768.00
20Q4Barn OwlBay Tree BistroBottle90£4.00£360.00
21Q4Tripel HootFestival HallKeg300£4.20£1,260.00
22

Ready for more?

The full lesson has 5 exercises, from easy to challenging, with hints, points and a streak you can build.

Start the lesson
← PreviousFormat as TableNext →Pivot tables

SQL

  • Topics
  • All lessons
  • Cheat sheet

Excel

  • Topics
  • All lessons
  • Shortcuts

HTML & CSS

  • About the course
  • All lessons

Lurndo

  • Dashboard
  • Leaderboard
  • Premium
  • Account
  • Privacy
Nederlands