For teachers / Answer key
Answer key: Conditional formatting
For teachers. This page is kept out of search engines and linked only from the teachers page. Students can see the same answers in a lesson with Show answer. Any formula that gives the right values counts.
1. Highlight what needs attention (Beginner, 4 min)
Which invoices are large? Select the amounts,
C2:C9, and click Conditional formatting in the toolbar. Choose Greater than, type 1000, and click Apply rule.C2:C9Conditional formatting: Greater than 1000: red fill
Invoice 1006 was typed wrong: it should be 1,450, not 145. Change
C7to 1450 and watch the cell.C71450
Shows C7: $1,450
Now the overdue days. Select
D2:D9, choose Between, and highlight 30 to 60 in Yellow.D2:D9Conditional formatting: Between 30 and 60: yellow fill
Cells can carry more than one rule. With
D2:D9still selected, add Greater than 60 in Red, for the invoices that are badly overdue.D2:D9Conditional formatting: Greater than 60: red fill
2. Find duplicates at a glance (Beginner, 4 min)
Is anyone on this sign-up list twice? Select the emails,
A2:A11, click Conditional formatting in the toolbar, choose Duplicate values, and click Apply rule.A2:A11Conditional formatting: Duplicate values: red fill
The second Ben is a different person whose address was mistyped. Change
A8to ben.k@example.com.A8ben.k@example.com
Shows A8: ben.k@example.com
A rule can also look inside text. Select the plans,
B2:B11, choose Text that contains, type trial, and highlight in Green.B2:B11Conditional formatting: Text that contains "trial": green fill
Rules are as easy to remove as to add. With
B2:B11selected, click Clear rules from the selected cells at the bottom of the panel.B2:B11Clear rules from the selected cells
3. Top, bottom and above average (Beginner, 4 min)
Who are the three best sellers? Select
B2:B11, click Conditional formatting in the toolbar, choose Top items, set How many to 3, and highlight in Green.B2:B11Conditional formatting: Top 3: green fill
And the three who need help? With
B2:B11selected, add Bottom items, 3, in Red.B2:B11Conditional formatting: Bottom 3: red fill
Now the deals. Select
C2:C11, choose Above average, and highlight in Blue.C2:C11Conditional formatting: Above average: blue fill
Finn has just closed a big contract. Change his sales in
B7to 23000 and watch the green.B723000
Shows B7: $23,000
4. Data bars and colour scales (Beginner, 4 min)
Select the units sold,
B2:B9, click Conditional formatting in the toolbar, choose Data bars, and click Apply rule.B2:B9Conditional formatting: Data bars
The grid on the right counts shop visits by time of day. Select all its numbers,
F2:K5, choose Colour scale, keep White to green, and apply.F2:K5Conditional formatting: Colour scale: White to green
The Change column has falls as well as rises, so one colour is not enough. Select
C2:C9, choose Colour scale, and pick Red, white, green.C2:C9Conditional formatting: Colour scale: Red, white, green
Rugs have had a good week. Change
B9to 1200 and watch every bar in the column.B91200
Shows B9: 1200
5. Highlight a whole row with a formula (Intermediate, 5 min)
Mark every late order, across the whole row. Select the table without its headings,
A2:D9, click Conditional formatting in the toolbar, choose Use a formula, type=$D2="Late", and apply it in Red.A2:D9Conditional formatting: Formula: =$D2="Late": red fill
Order 5004 has missed its slot. Change its status in
D5to Late.D5Late
Shows D5: Late
A second rule, for big orders. Select
A2:D9again, choose Use a formula, and highlight in Green the rows whose amount is at least the figure inG1:=$C2>=$G$1.A2:D9Conditional formatting: Formula: =$C2>=$G$1: green fill
Because the rule reads
G1, the threshold is a setting, not something buried in a rule. ChangeG1to 1000.G11000
Shows G1: $1,000