Nishaglobal Education logo

Conditional formatting and simple dashboards

Make important numbers stand out automatically with conditional formatting: highlight rules, top and bottom values, data bars, icon sets and formula-based rules, then combine them into a one-page dashboard.

Lesson 11 of 1235 minQuiz: 4 questions

🎯 By the end of this lesson you will be able to:

  • Highlight cells with built-in conditional formatting rules
  • Write a formula rule that colours whole rows
  • Lay out a simple one-page dashboard with key numbers, a table and a chart
Outline
  1. What you'll learn and why it matters
  2. Built-in rules
  3. Formula rules: colour whole rows
  4. A simple one-page dashboard
  5. Practice
  6. Common mistakes
  7. Recap
  8. Quiz
  9. Mark lesson complete

What you'll learn and why it matters

In a sheet of hundreds of numbers, the ones that need attention get lost: the overspent budget, the late invoice, the best seller. Conditional formatting colours cells automatically based on their values, and the colours update when the numbers change. It turns a grid into something you can read at a glance.

Built-in rules

  1. Select the cells, such as the Actual column of the Budget sheet.
  2. Choose Home → Conditional Formatting.
  3. Pick a rule type, enter the value and choose a format, then click OK (or Done).
RuleExampleUse it for
Highlight Cells → Greater ThanActual greater than 8,000Values above or below a limit
Highlight Cells → Duplicate ValuesRepeated emailsFinding duplicates before removing them
Top/Bottom → Top 10 Items (set to 3)The 3 biggest ordersBest and worst performers
Data BarsA bar inside each cell, sized by valueComparing sizes without a chart
Color ScalesGreen to red by valueSpotting high and low areas in a large table
Icon SetsArrows or traffic lightsShowing status, such as up, flat or down

Formula rules: colour whole rows

To colour a whole row when one of its cells meets a condition, use Conditional Formatting → New Rule → Use a formula to determine which cells to format. Select the whole data area (A2:D10) first, and write the formula for the first row, locking the column with $:

Worksheet: Budget

The rule formula =$D2>$C2 is TRUE for rows where actual spending is over plan (shown in column E for checking). Applied to A2:D10, Excel colours those whole rows.
RowABCDE
1MonthCategoryPlannedActualOver budget? (the rule's test)
2JanRent1500015000FALSE
3JanFood80008650TRUE
4JanTravel30002400FALSE
5FebRent1500015000FALSE
6FebFood80007900FALSE
7FebTravel30003600TRUE
8MarRent1500015000FALSE
9MarFood80008200TRUE
10MarTravel30002950FALSE

Formulas (green cells)

  • E2 =$D2>$C2 → FALSE
  • E3 =$D3>$C3 → TRUE
  • E4 =$D4>$C4 → FALSE
  • E5 =$D5>$C5 → FALSE
  • E6 =$D6>$C6 → FALSE
  • E7 =$D7>$C7 → TRUE
  • E8 =$D8>$C8 → FALSE
  • E9 =$D9>$C9 → TRUE
  • E10 =$D10>$C10 → FALSE
The rule formula =$D2>$C2 is TRUE for rows where actual spending is over plan (shown in column E for checking). Applied to A2:D10, Excel colours those whole rows.

Excel checks the formula for every cell in the selection, adjusting the row number each time. $D2 means *always column D, but the current row*, so each cell in a row looks at that row's Actual and Planned values.

A simple one-page dashboard

A dashboard puts the most important numbers, one summary table and one or two charts on a single screen, so a manager can see how things are going without scrolling. Keep it on its own sheet and build it from formulas and PivotTables that refer to the data sheets.

PartExampleBuilt with
Key numbers (KPIs) at the topTotal sales, number of orders, average order valueSUM, COUNT, AVERAGE, SUMIFS
A summary tableSales by regionPivotTable or SUMIFS
A chartRevenue by monthLine chart from a summary
HighlightsRegions below target in redConditional formatting
A filterChoose a salespersonA Data Validation drop-down that the formulas refer to, or a Slicer

You will build exactly this in the final project.

Practice

Guided exercise

Highlight the overspends

In the Budget sheet, make every Actual value that is greater than its Planned value show in light red.

  1. Select D2:D10.
  2. Home → Conditional Formatting → New Rule → Use a formula.
  3. Enter =D2>C2, choose a light red fill, and click OK.
Show the solution

Worksheet: Budget

RowABCDE
1MonthCategoryPlannedActualRule result
2JanRent1500015000FALSE
3JanFood80008650TRUE
4JanTravel30002400FALSE
5FebRent1500015000FALSE
6FebFood80007900FALSE
7FebTravel30003600TRUE
8MarRent1500015000FALSE
9MarFood80008200TRUE
10MarTravel30002950FALSE

Formulas (green cells)

  • E2 =D2>C2 → FALSE
  • E3 =D3>C3 → TRUE
  • E4 =D4>C4 → FALSE
  • E5 =D5>C5 → FALSE
  • E6 =D6>C6 → FALSE
  • E7 =D7>C7 → TRUE
  • E8 =D8>C8 → FALSE
  • E9 =D9>C9 → TRUE
  • E10 =D10>C10 → FALSE

How to get there: With only column D selected, the rule needs no $: each cell compares itself with the planned value beside it. Three cells turn red: Food in January, Travel in February and Food in March.

Your turn

Mark the top 3

In a list of the ten orders' totals, highlight the three largest with a Top/Bottom rule. Which three totals are highlighted?

Show the solution

Worksheet: Totals

RowABC
1OrderTotalRank
2ORD-100133003
3ORD-100210008
4ORD-10039009
5ORD-100410807
6ORD-100524010
7ORD-100620005
8ORD-100730004
9ORD-100848001
10ORD-100913206
11ORD-101040002

Formulas (green cells)

  • C2 =COUNTIF($B$2:$B$11,">"&B2)+1 → 3
  • C3 =COUNTIF($B$2:$B$11,">"&B3)+1 → 8
  • C4 =COUNTIF($B$2:$B$11,">"&B4)+1 → 9
  • C5 =COUNTIF($B$2:$B$11,">"&B5)+1 → 7
  • C6 =COUNTIF($B$2:$B$11,">"&B6)+1 → 10
  • C7 =COUNTIF($B$2:$B$11,">"&B7)+1 → 5
  • C8 =COUNTIF($B$2:$B$11,">"&B8)+1 → 4
  • C9 =COUNTIF($B$2:$B$11,">"&B9)+1 → 1
  • C10 =COUNTIF($B$2:$B$11,">"&B10)+1 → 6
  • C11 =COUNTIF($B$2:$B$11,">"&B11)+1 → 2

How to get there: Home → Conditional Formatting → Top/Bottom Rules → Top 10 Items, then change 10 to 3. The highlighted totals are 4,800, 4,000 and 3,300. The Rank column (1 = largest) confirms it: =COUNTIF($B$2:$B$11,">"&B2)+1 counts how many totals are bigger, plus one. (Excel also has a RANK function that does the same.)

Common mistakes

Missing $ in a row-colouring formula

You see: Only one column changes colour, or the wrong rows do

Fix: Lock the column: =$D2>$C2, and write it for the first row of the selection.

Writing the formula for the wrong starting row

You see: Colours are shifted up or down by a row

Fix: The formula must refer to the top-left cell of the selected range.

Too many colours

You see: Nothing stands out any more

Fix: Highlight only what needs action.

Colour as the only signal

You see: Some readers cannot see the difference

Fix: Add a text status column or icons as well.

Recap

  • Conditional formatting colours cells automatically and updates with the data.
  • Built-in rules: highlight cells, top/bottom, duplicates, data bars, colour scales, icon sets.
  • Formula rules with $ on the column colour whole rows; write the formula for the first row.
  • A dashboard shows KPIs, one summary, a chart and highlights on one page.

Key terms

Conditional formatting
Formatting that is applied automatically when a cell meets a condition.
Data bars
Bars drawn inside cells whose length shows the size of the value.
KPI
Key performance indicator: a headline number that shows how something is doing.
Dashboard
A one-page view of the most important numbers, tables and charts.

Check your understanding

Answer all 4 questions, then check your answers to see an explanation for each one.

  1. 1. What happens to conditional formatting when a value changes?

  2. 2. To colour whole rows A2:D10 when Actual (D) exceeds Planned (C), which rule formula is right?

  3. 3. Which rule shows a bar inside each cell sized by its value?

  4. 4. What belongs at the top of a dashboard?

Answer all 4 questions to check.

Mark this lesson complete

Finished this lesson?

When you have worked through the examples and exercises, mark it complete to save your progress.