Confident CellsExcel practice Start free

Sparklines: practice exercises

Line, Column and Win/Loss sparklines, Create Sparklines, Data Range, Location Range, High Point, Low Point, Markers. 7 exercises on real-looking data, each checked as you go. The full lesson is part of Pro.

In the lesson

This lesson has strips of Excel's Insert and Chart Design buttons above a practice sheet: make and change each chart as you would in Excel, and each task is checked as you go.

Open the Sparklines lesson

How it works

A sparkline is a tiny chart inside one cell: a row of numbers drawn as a line, columns or win/loss blocks, right beside the numbers.

Select the numbers, then Line, Column or Win/Loss under Sparklines on the Insert strip. In Create Sparklines, the Data Range is filled in: type the Location Range, one cell for each row. Then click a sparkline for the Sparkline strip.

Sparklines: an example

Five people's sales for six months are in B2:G6, one row each. A chart of all that would be busy. A sparkline in H2 to H6 shows each row's shape on its own line, next to the name.

Select B2:G6, then Insert > Sparklines > Line. In Create Sparklines, the Data Range is B2:G6; type H2:H6 as the Location Range: one cell for each row of data. OK, and each cell gets its own little line.

  • Line: the trend. Column: easier to compare month by month. Win/Loss: just whether each number is above or below zero, such as a profit or a loss.

Windows: Insert tab, Sparklines group: Line, Column or Win/Loss.

Mac: Insert tab, Sparklines, then Line, Column or Win/Loss.

The Sparkline tab

Click a cell with a sparkline and the Sparkline tab appears. Sparklines made together are a group: a change to one changes them all.

  • Show: tick High Point and Low Point to colour each line's best and worst value, Negative Points for values below zero, First Point, Last Point, and Markers for a dot on every value.
  • Type: change the group to Line, Column or Win/Loss.
  • Clear: take the sparklines away. (Delete doesn't: they aren't the cell's contents.)

The Sparkline tab has the same groups on Windows and on a Mac.

What you'll practise

  1. Show each person's trend in column H: select B2:G7, then Sparklines: Line, with H2:H7 as the Location Range.
  2. Make each sparkline's best and worst month stand out: click a sparkline, then tick High Point and Low Point.
  3. Just one this time: put a Column sparkline in H2 for the numbers in B2:G2.
  4. Each shop made a profit or a loss each month. Show which, with Win/Loss sparklines in H2:H6.
  5. Columns would be easier to compare here. Change the sparklines in H2:H5 to Column sparklines.
  6. Insert Column sparklines in H2:H6 that show the data in B2:G6.
  7. Show markers on the sparklines in H2:H5.