How to Use Sparklines in Excel (Create and Customize)

Sometimes, Excel users want to show the deviation in their data set or point out the movement of the data. In this case, using sparklines in Excel will help them. In this article, we will show you the step-by-step procedures of how to use sparklines in Excel.


How to Use Sparklines in Excel: Create and Customize

If anyone wants to make their data set in Excel more attractive or more understandable, then using sparklines will be one of the best options in this regard. Using sparklines in Excel helps users analyze data more quickly. In this article, you will find the step-by-step procedures for creating sparklines in Excel in order to use them. Also, you will be able to understand how to customize the existing sparklines. Below is a sample data set that will help us in this regard.

Step-by-Step Procedures to Use Sparklines in Excel


Step 1: Preparing Data Set

We need to prepare a data set for our working purpose. For that,

  • First of all, take the following data set, where cells D4 to J4 represent the Sales Per Day.
    and cells C6 to C8 represent Week No.
  • Then, make three extra cells in column K to represent the Weekly Trend.

Step-by-Step Procedures to Use Sparklines in Excel


Step 2: Choosing Sparklines Command

After preparing the data set, we will go for the Sparklines command. To do that,

  • Firstly, choose any cell from K6 to K8 in column K under the Weekly Trend header.

Step-by-Step Procedures to Use Sparklines in Excel

  • Then, go to the Insert tab in the ribbon.
  • Afterward, from there, choose the Sparklines command from the Sparklines group.

Step-by-Step Procedures to Use Sparklines in Excel

  • From that option, you will see three types of sparklines.
  • Now, choose according to your preference.
  • For our example, we will use the Line Sparkline.

Step-by-Step Procedures to Use Sparklines in Excel


Step 3: Selecting Data Range

After choosing the Sparklines command, we have certain things to fill up. They are as follows.

  • After choosing the command, a new dialogue box named “Create Sparklines” will appear.
  • There are two blank spaces in that box.
  • Firstly, in the “Data Range” box, select the range of cells to create a sparkline.
  • For example, we will insert the cell range from D6 to J6.
  • Secondly, in the “Location Range” box, select the cell location where you want to create the sparkline.
  • Finally, press OK.

Step-by-Step Procedures to Use Sparklines in Excel


Step 4: Creating Sparklines

For the final step of creating a sparkline, do the following.

  • After pressing OK, you will see a sparkline under the Weekly Trend header in cell K6.

Step-by-Step Procedures to Use Sparklines in Excel

  • Similarly, follow the above steps from Step 1 to Step 3 to create more sparklines in cells K7 and K8.

Step-by-Step Procedures to Use Sparklines in Excel

Read More: How to Create Column Sparklines in Excel


Formatting Sparklines

Apart from creating the sparklines, you can do a lot more things with them. Sparklines have a lot more other features that will help you to raise the standard of your work. Some of the features and their uses are as follows.

a. Altering the Types of Sparklines

In our steps of creating a sparkline, only one type of sparkline was shown. There are basically three types of sparklines which are-

    1. Line  Sparkline
    2. Column Sparkline and
    3. Win/Loss Sparkline

To alter the type of an existing sparkline in Excel do as follows.

Step 1:

  • Firstly, choose an existing sparkline that you want to alter.
  • Here, you will select the sparkline in cell K7.

Step-by-Step Procedures to Use Sparklines in Excel

Step 2:

  • Secondly, after choosing the sparkline, you will find a new tab named Sparkline in the ribbon.
  • From there, go to the Type.
  • Then, choose the type of sparkline that you will prefer.
  • For example, we will choose the Column type.

Step-by-Step Procedures to Use Sparklines in Excel

  • Finally, you will be able to see the new sparkline in the cell K7.

Step-by-Step Procedures to Use Sparklines in Excel

b. Making Data Points for Sparklines

If you want to describe more through your sparklines, then making data points for sparklines in Excel will be the best choice. To do so, go through the following steps.

Step 1:

  • First of all, choose any existing sparkline.
  • For our example, we will choose all of them.

Step-by-Step Procedures to Use Sparklines in Excel

Step 2:

  • Secondly, go to the Sparkline tab in the ribbon.
  • Here, in the Show group, you will see many options that will mark your sparklines according to their uses.
  • From there, we will choose the Markers command.

Step-by-Step Procedures to Use Sparklines in Excel

Step 3:

  • Finally, you will see all the data points on the sparklines.
  • This feature will help you to analyze your data quickly.

Step-by-Step Procedures to Use Sparklines in Excel

c. Grouping and Ungrouping in Sparklines

Sometimes you have to make changes or add things in more than one sparkline in Excel. Selecting them one by one is much more time-consuming. For this purpose, you can group as well as ungroup your sparklines. To use this feature, do the following.

Step 1:

  • First of all, select the sparklines that you want to group.

Step-by-Step Procedures to Use Sparklines in Excel

Step 2:

  • Then, from the Sparkline tab go to the Group.
  • There you will find two commands. Group and Ungroup.
  • For grouping, your sparklines, choose the Group.

Step-by-Step Procedures to Use Sparklines in Excel

Step 3:

  • After choosing, all your sparklines will be grouped.
  • Now, if you make any changes to any sparkline, you will be able to see them on other sparklines as well.

Step-by-Step Procedures to Use Sparklines in Excel

  • For example, if you make data points for only the sparkline in cell K7, then other sparklines in cells K6 and K8 will also get that.

Step-by-Step Procedures to Use Sparklines in Excel

d. Adding Colors and Styles to Sparklines

If you want to make your sparklines more attractive and beautiful, then you can add colors to your sparklines or change the styles of your sparklines in Excel. After going through the following steps you will be able to use those features.

Step 1:

  • First, select the sparkline, that’s the color you want to change.

Step-by-Step Procedures to Use Sparklines in Excel

Step 2:

  • Then, from the Sparkline tab go to the Style command.
  • In that command, you will see two options. Sparkline Color and Marker Color.

Step-by-Step Procedures to Use Sparklines in Excel

Step 3:

  • From Sparkline Color, you will be able to change the color of your current sparkline.
  • For that choose any color of your preference from the Theme Colors option.

Step-by-Step Procedures to Use Sparklines in Excel

  • After that, the color of your sparkline will change.

Step-by-Step Procedures to Use Sparklines in Excel

Step 4:

  • To change the style of your sparkline go to the Style group.
  • There, you will see many pre-existing styles for sparklines.
  • Choose any style from them and make your sparklines more attractive.

Step-by-Step Procedures to Use Sparklines in Excel

e. Setting up Empty Data Cells of Sparklines

Sometimes, you may have empty data cells in your sparkline data set. You can either leave them that way or customize them in Excel. To customize them, you need to follow some steps. You will see the steps in the following.

Step-by-Step Procedures to Use Sparklines in Excel

Step 1:

  • First, select the sparkline with empty cells.
  • Then, go to the Sparkline tab and from there select the Edit Data option.
  • After selecting you will see more commands about editing data.
  • From those commands, choose the Hidden & Empty Cells…. command.

Step-by-Step Procedures to Use Sparklines in Excel

Step 2:

  • After choosing the command, a new dialogue box named “Hidden and Empty Cell Settings” will appear.
  • There are three options regarding empty cells in there.
  • For the first sparkline, choose the Gaps option.

Step-by-Step Procedures to Use Sparklines in Excel

  • Then, you will see that this option will not connect the sparkline where there is a gap or empty cells.

Step-by-Step Procedures to Use Sparklines in Excel

Step 3:

  • Now, for the second sparkline, we will choose the Zero option.

Step-by-Step Procedures to Use Sparklines in Excel

  • After choosing, it will assume the empty cell’s value as zero and will connect the sparkline.

Sample Data Set

Step 4:

  • Finally, for the third sparkline, choose the Connect data points with line command.

Sample Data Set

  • Now, this command will connect data points by excluding the empty cell.

Sample Data Set

f. Inserting an Axis for Sparklines

By default, sparklines will take the lowest data point as the bottom value. Sometimes, it may cause some difficulties in understanding. For example, in the below picture, someone may think that the lowest data point here tends to zero in the second sparkline.

Sample Data Set

So, to overcome this problem, you can use the axis feature of sparkline in Excel. Go through the following steps to do so.

Step 1:

  • Firstly, select the sparkline in which you want to insert the axis.
  • Then, go to the Sparkline tab and choose the Axis option.
  • Now, from that option, select the Custom Value command.

Sample Data Set

Step 2:

  • Secondly, a new dialogue box named “Sparkline Vertical Axis Setting” will appear.
  • Now, here in “Enter the minimum value for the vertical axis”, give a value manually to start the sparkline.
  • For example, here we will insert 0 as the value.

Sample Data Set

  • Then, you will see that the shape of the sparkline will change according to the minimum value.

Sample Data Set

Step 3:

  • Now, if you want to show the axis line, then go to the Axis option again from the Sparkline tab.
  • Then, from there choose the Show Axis command.

Sample Data Set

  • Finally, you will see the axis under the sparkline.

Sample Data Set

g. Clearing an Existing Sparkline

Finally, we will show you how you can clear or delete an existing sparkline in Excel. To do that, see the following steps.

Step 1:

  • Firstly, select the sparkline that you want to clear.
  • Then, go to the Sparkline tab and go to the Clear option in Group.

Sample Data Set

Step 2:

  • Then, select the “Clear Selected Sparklines” command from the option.

Sample Data Set

  • Finally, the existing sparkline will be cleared from the data set.

Sample Data Set


Download Practice Workbook

You can download the free Excel workbook from here and practice on your own.


Conclusion

That’s the end of this article. I hope you find this article helpful. After reading this article, you will be able to use sparklines in Excel. Please share any further queries or recommendations with us in the comments section below.


Related Articles


<< Go Back to Excel SparklinesLearn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Araf Bin Jayed
Md. Araf Bin Jayed

I am Araf. I have completed my B.Sc in Industrial and Production Engineering from Ahsanullah University of Science and Technology. Currently I am working as an Excel & VBA Content Developer in Softeko. With proper guideline and aid of Softeko I want to be a flexible data analyst. With my acquired knowledge and hard work, I want to contribute to the overall growth of this organization.

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo