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)

  1. 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:C9 Conditional formatting: Greater than 1000: red fill
  2. Invoice 1006 was typed wrong: it should be 1,450, not 145. Change C7 to 1450 and watch the cell.

    • C7 1450

    Shows C7: $1,450

  3. Now the overdue days. Select D2:D9, choose Between, and highlight 30 to 60 in Yellow.

    • D2:D9 Conditional formatting: Between 30 and 60: yellow fill
  4. Cells can carry more than one rule. With D2:D9 still selected, add Greater than 60 in Red, for the invoices that are badly overdue.

    • D2:D9 Conditional formatting: Greater than 60: red fill

2. Find duplicates at a glance (Beginner, 4 min)

  1. 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:A11 Conditional formatting: Duplicate values: red fill
  2. The second Ben is a different person whose address was mistyped. Change A8 to ben.k@example.com.

    • A8 ben.k@example.com

    Shows A8: ben.k@example.com

  3. A rule can also look inside text. Select the plans, B2:B11, choose Text that contains, type trial, and highlight in Green.

    • B2:B11 Conditional formatting: Text that contains "trial": green fill
  4. Rules are as easy to remove as to add. With B2:B11 selected, click Clear rules from the selected cells at the bottom of the panel.

    • B2:B11 Clear rules from the selected cells

3. Top, bottom and above average (Beginner, 4 min)

  1. 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:B11 Conditional formatting: Top 3: green fill
  2. And the three who need help? With B2:B11 selected, add Bottom items, 3, in Red.

    • B2:B11 Conditional formatting: Bottom 3: red fill
  3. Now the deals. Select C2:C11, choose Above average, and highlight in Blue.

    • C2:C11 Conditional formatting: Above average: blue fill
  4. Finn has just closed a big contract. Change his sales in B7 to 23000 and watch the green.

    • B7 23000

    Shows B7: $23,000

4. Data bars and colour scales (Beginner, 4 min)

  1. Select the units sold, B2:B9, click Conditional formatting in the toolbar, choose Data bars, and click Apply rule.

    • B2:B9 Conditional formatting: Data bars
  2. 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:K5 Conditional formatting: Colour scale: White to green
  3. 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:C9 Conditional formatting: Colour scale: Red, white, green
  4. Rugs have had a good week. Change B9 to 1200 and watch every bar in the column.

    • B9 1200

    Shows B9: 1200

5. Highlight a whole row with a formula (Intermediate, 5 min)

  1. 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:D9 Conditional formatting: Formula: =$D2="Late": red fill
  2. Order 5004 has missed its slot. Change its status in D5 to Late.

    • D5 Late

    Shows D5: Late

  3. A second rule, for big orders. Select A2:D9 again, choose Use a formula, and highlight in Green the rows whose amount is at least the figure in G1: =$C2>=$G$1.

    • A2:D9 Conditional formatting: Formula: =$C2>=$G$1: green fill
  4. Because the rule reads G1, the threshold is a setting, not something buried in a rule. Change G1 to 1000.

    • G1 1000

    Shows G1: $1,000