Show trends in cells with sparklines
More chart types8 minPremium
Builds on Show a trend with a line chart.
The operations lead for 30 stores around Phoenix reviews a year of monthly sales for each one. Thirty full charts would fill a wall. A sparkline at the end of each row shows that store's year in the space of one cell, next to its numbers.
How it works
A sparkline is a tiny chart drawn inside one cell, with no axes, title or legend. Select the cells where the sparklines will go, one per row, choose Insert > Sparklines and a type, and give the Data Range: the numbers only, without names or totals. Excel draws one sparkline for each row of the data range, in the matching cell of the Location Range:
There are three types. Line shows the shape of a trend. Column compares the values, with any negatives below the baseline. Win/Loss shows only whether each value is above or below zero, as bars of equal height, such as months in profit and months at a loss.
The Sparkline tab can mark the High Point, Low Point, Negative Points, First Point and Last Point. By default, each sparkline is scaled to its own row, so a store that barely moved can look as lively as one that doubled. To compare rows, choose Axis > Same for All Sparklines, for both the minimum and the maximum. Sparklines need Excel 2010 or later.
Example
The three stores' sales for the first three quarters sit in B2:D4. Select E2:E4, choose Insert > Sparklines > Line and type B2:D4 as the Data Range. Mesa's line climbs to its best quarter at the end, and Chandler's falls every quarter. Tick High Point, and each line marks its best quarter.
Common mistakes
- Names or totals in the data range. A total adds a spike at the end of every sparkline. Select the numbers only.
- A location range with more or fewer cells than the data range has rows. Excel refuses it, because each row needs one cell.
- Comparing the heights of sparklines in different rows while each has its own scale. Set Same for All Sparklines first.
- Win/Loss on numbers that are all positive, such as sales. Every bar is a win. Chart the difference from a target instead.
In short
- A sparkline is a tiny chart in one cell, one for each row of data.
- The data range holds the numbers only, and the location range one cell per row.
- Line for a trend, Column to compare, Win/Loss for above or below zero, and Same for All Sparklines to compare rows.
Practice
Premium4 exercises: 3 charts and 1 quiz question.
Practice is part of Premium
Every lesson is free to read, and you can practice the free lessons without an account. This lesson's exercises are part of Premium, which you add to a free account.
Have one? Sign in