How to insert sparklines in Excel? In this article, you will learn all about sparklines. Get some useful examples! Now I’ve created this post to be a follow-along lesson. You can download the Excel file that I use during the article.
Sparklines are in-cell Excel charts, and we are using these graphs to show variance or trends. We recommend using sparklines for data visualization purposes. It is worth using it! You can save space, and that is important if you are working with a large data set. This tutorial is a part of our chart templates series.
Three types of Sparklines
Take a quick look at the example below. You can easy to identify these sparkline types.
Let us see the most important things about sparklines:
- 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.
- 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.
- Sparklines are user-friendly graphs. Change the color of the main elements (high and low points) with a few clicks!
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:
1. Select the cell where you want to place the chart.
2. Select the Insert tab.
3. In the Sparklines group, choose the Column option.
4. Choose the data that you want to use as a data range.
5. Click OK, and the sparkline will appear in cell N8.
Use the same steps if you want 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.
How to edit Sparkline’s data set?
Let us see how to edit the existing chart using the ‘Edit Data’ drop-down menu.
- Edit the location and data source for the selected sparkline group.
- Edit only the data source for the selected sparkline
Eliminating the gap: Hidden and Empty Cells
Now, we will explain what will happen when you have a missing data point in the series. Take a closer look at the picture below:
In the example, the value for the year 2023 is missing. Our chart is broken and looks bad.
Okay, follow these steps below to fix the series:
- Click the source cell, in this case, cell N8.
- Select the Sparkline tab and choose the ‘Hidden and Empty cells..’ option
A new dialog box will appear. Select what you want to display:
You can choose how to want to show the empty cells:
- Connect the data point (in case of line type)
- The first example shows the gap in the line
- The second case gets a continuous line using zero
- 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:
With a single click, you can convert the default type to another type.
Highlight Data Points on the Chart
For better readability, it is important to place markers to highlight the key data points on the chart. You can apply color markers for the max and min points and negative data points too. Furthermore, you can highlight the first and last data points on the series.
In the example below, we will show you how to apply colors to highlight the min and max data.
Under the Show section, you have four options:
- High and Low Point: Highlight the highest or lowest data point in the selected group.
- 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. Good to know that this marker is valid for only one line!
Deleting the Sparklines
If you want to delete a cell that contains sparkline, you have to apply a little trick. Try to use the delete key; nothing will happen.
To delete the cell content, use these steps below:
- Select the given cell
- Click the Sparkline Tab
- Clear the cell content by clicking on the ‘Clear’ icon.