Excel Sparklines

How to insert sparklines in Excel? In this article, you will learn all about sparklines. Get some useful examples! Now, I have created this post as a follow-along lesson. You can download the Excel file that I used during the article.

Sparklines are in-cell Excel charts that we use to show variance or trends. We recommend using sparklines for data visualization purposes. It is worth it! You can save space, which is important for working with a large data set. This tutorial is part of our chart templates series.

Three types of Sparklines

  • Line
  • Column
  • Win-Loss

Take a quick look at the example below. You can easily identify these sparkline types.

sparklines-types-overview

Let us see the most important things about sparklines:

  1. Sparklines are dynamic in-cell charts. If you update your data set, the chart will be reflected automatically. So, the tool is perfect if you want to create an Excel dashboard.
  2. The size of the main graph is connected to the source cell. What does this mean? If you increase the cell, sparklines will be greater. And vice versa.
  3. Sparklines are user-friendly graphs. With a few clicks, you can change the color of the main elements (high and low points)!

How to insert Sparklines in Excel

In this section, you will learn how to insert sparklines using a few steps. In the picture below, you can see the final result:

how-to-insert-sparklines

1. Select the cell where you want to place the chart

select-the-cell-for-the-sparklines

2. Select the Insert tab

3. In the Sparklines group, choose the Column option.

insert-a-column-type-sparklines

4. Choose the data you want to use as a data range.

select-the-data-range

5. Click OK, and the Sparkline will appear in cell N8.

how-to-insert-sparklines 2

Use the same steps to insert a ‘Win-loss’ or ‘Line’ sparkline. At first look, the chart is a little bit simple. No worry, there are some customization options! Try to select a single cell that contains sparklines.

A new contextual tab will appear, and with its help, you can change the selected type.

sparklines-design-tools

How to edit Sparkline’s data set?

Let us see how to edit the existing chart using the ‘Edit Data’ drop-down menu.

  1. Edit the location and data source for the selected sparkline group.
  2. Edit only the data source for the selected Sparkline.
edit-data

Dealing with missing data points

We will explain what will happen when you have a missing data point in the series. Take a closer look at the picture below:

missing-data-point-hidden-empty-cells

The value for 2023 is missing from the example. Our chart is broken and looks bad.

  1. Click the source cell, in this case, cell N8.
  2. Select the Sparkline tab and choose the ‘Hidden and Empty cells..’ option.
hidden-and-empty-cells

A new dialog box will appear. Select what you want to display:

show-empty-cells-as-gaps-zero

You can choose how you want to show the empty cells:

  • Gaps
  • Zero
  • Connect the data point (in case of line type)
gaps-zero-connect-empty-line
  1. The first example shows the gap in the line
  2. The second case gets a continuous line using zero
  3. When you want to display a continuous line, use the third option

How to change the Sparkline type

In this section, you will learn how to change your chart type quickly. Select the cell first! After that, locate the type group:

change-chart-type

You can convert the default type to another type with a single click.

Highlight Data Points on the Chart

For better readability, placing markers to highlight the key data points on the chart is important. You can also apply color markers for the max and min points and negative data points. Furthermore, you can highlight the series’s first and last data points.

The example below shows you how to apply colors to highlight the min and max data.

high-point-low-point-on-the-line

Under the Show section, you have four options:

  • High and Low Point: Highlight the selected group’s highest or lowest data point.
  • Toggle First and Last Point: You can highlight the first or last data point in the selected sparkline group.
  • Negative Points: You can highlight the negative values on the selected series with a different color or marker.
  • Markers: Apply markers for all data points on the line. It is good to know that this marker is valid for only one line!

Deleting the Sparklines

If you want to delete a cell containing a sparkline, try a little trick. Try using the delete key; nothing will happen.

To delete the cell content, use the steps below:

  1. Select the given cell
  2. Click the Sparkline Tab
  3. Clear the cell content by clicking on the ‘Clear’ icon.
clear-selected-sparklines

Download the practice file.