What is sparklines in excel

Use sparklines to show data trends

A sparkline is a tiny chart in a worksheet cell that provides a visual representation of data. Use sparklines to show trends in a series of values, such as seasonal increases or decreases, economic cycles, or to highlight maximum and minimum values. Position a sparkline near its data for greatest impact.

Your browser does not support video. Install Microsoft Silverlight, Adobe Flash Player, or Internet Explorer 9.

Add a Sparkline

  1. Select a blank cell at the end of a row of data.

  2. Select Insert and pick Sparkline type, like Line, or Column.

  3. Select cells in the row and OK in menu.

  4. More rows of data? Drag handle to add a Sparkline for each row.

Format a Sparkline chart

  1. Select the Sparkline chart.

  2. Select Sparkline and then select an option.

    • Select Line, Column, or Win/Loss to change the chart type.

    • Check Markers to highlight individual values in the Sparkline chart.

    • Select a Style for the Sparkline.

    • Select Sparkline Color and the color.

    • Select Sparkline Color > Weight to select the width of the Sparkline.

    • Select Marker Color to change the color of the markers.

    • If the data has positive and negative values, select Axis to show the axis.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

See Also

Analyze trends in data using Sparklines

Get Microsoft chart templates

Need more help?

Sparkline in Excel is a small graph which is used to represent a series of data. Apart from a well-fledged chart, it fits into a single cell. Three different data visualizations available in Excel Sparkline are:

  1. Line
  2. Column
  3. Win/Loss

It is an instant chart that prepares for a range of values. Sparklines in Excel is used to showcase the data trend for a while.

In this Excel Sparklines tutorial, you will learn

  • What is Sparklines in Excel
  • Why use Sparkline?
  • Types of Sparklines in Excel
  • How to insert Sparklines in Excel?
  • Sparkline Example: Create a Report with a Table
  • How to format a Sparklines in Excel
  • Advantages of Sparklines in Excel

Why use Sparklines?

Sparkline graph helps you to avoid the chore of creating a big chart which can be confusing during analysis. It is a common visualization technique used in dashboards when you want to picture a portion of data from a large dataset.

Sparklines in Excel is not an object like Excel graphs; it resides in a cell as ordinary data. When you increase the size of the Excel, Sparkline automatically fit into the cells according to its size.

Types of Sparklines in Excel

From the Insert menu, select the type of Sparkline you want. It offers three types of Sparklines in Excel.

Types of Sparklines

  1. Line Sparkline: Line Sparkline in Excel will be in the form of lines, and high values will indicate fluctuations in height difference.
  2. Column Sparkline: Column Sparkline in Excel will be in the form of column chart or bar chart. Each bar shows each value.
  3. Win/Loss Sparkline: It is mainly used to show negative values like ups and downs on the floated costs.

Types of Sparklines

Depending on the type, it gives different visualization to the selected data. Where the line is a tiny chart similar to the line chart, the column is a miniature of bar chart and win/loss resembles waterfall charts.

How to insert Sparklines in Excel?

You need to select a particular column data, to insert Sparklines in Excel.

Consider the following demo data: Status of some pending stock for different years is below. To make a quick analysis, let’s make a Sparkline for each year.

Year Jan Feb March April May June
2011 20 108 45 10 105 48
2012 48 10 0 0 78 74
2013 12 102 10 0 0 100
2014 1 20 3 40 5 60

Download Excel used on this tutorial

Step 1) Select types of Sparkline
Select the next column to ‘June’ and insert Sparkline from insert menu. Select anyone from the three types of Sparkline.

How to insert Sparklines in Excel

Step 2) Choose a range of cells
A selection window will appear to select the range of cells for which the Sparkline should insert.

By clicking the arrow near data range box, a range of cells can be choosen.

How to insert Sparklines in Excel

Step 3) Selected Data Range will be shown
Select the first row of the data for the year 2011 in ‘Data Range’ text box. The range will shown as B2: G2.

How to insert Sparklines in Excel

Step 4) Choose Location Range
Another range selection indicates where you want to insert the Sparkline. Give the address of the cell you need the Sparkline.

How to insert Sparklines in Excel

Step 5) Press ‘OK’ Button
Once you set the ‘Data Range’ and ‘Location Range’ press ‘OK’ button.

How to insert Sparklines in Excel

Step 6) Sparkline is created in the selected cell
Now the Sparkline is created for the selected data, and it gets inserted in the selected cell H3.

How to insert Sparklines in Excel

Sparkline Example: Create a Report with a Table

You have a sales report for four years: 2015, 2016, 2017 respectively. Details included in this table are country, product, and gross sales.

Let’s find the trend of sales for this product for different years.

Step 1) Create a column analysis next to gross sales for 2018. And in the next step, you are going to insert the Sparkline.

S# Country Product Gross Sales 2015 Gross Sales 2016 Gross Sales 2017 Gross Sales 2018
1 Canada Carretera $ 32,370.00 $ 30,216.00 $ 352,625.00 $ 34,440.00
2 Germany Carretera $ 26,420.00 $ 352,100.00 $ 43,125.00 $ 7,210.00
3 France Carretera $ 32,670.00 $ 4,404.00 $ 600,300.00 $ 4,473.00
4 Singapore Carretera $ 13,320.00 $ 6,181.00 $ 34,056.00 $ 9,282.00
5 United States of America Carretera $ 37,050.00 $ 8,235.00 $ 32,670.00 $ 22,296.00
6 Mexico Carretera $ 529,550.00 $ 236,400.00 $ 13,320.00 $ 423,500.00
7 China Carretera $ 13,815.00 $ 37,080.00 $ 534,450.00 $ 17,703.00
8 Spain Carretera $ 30,216.00 $ 8,001.00 $ 645,300.00 $ 17,340.00
9 Japan Carretera $ 37,980.00 $ 603,750.00 $ 36,340.00 $ 41,250.00
10 Korea (Republic of) Carretera $ 18,540.00 $ 10,944.00 $ 962,500.00 $ 32,052.00
11 Italy Carretera $ 37,050.00 $ 32,280.00 $ 23,436.00 $ 9,192.00
12 Costa Rica Carretera $ 333,187.50 $ 36,340.00 $ 527,437.50 $ 148,200.00
13 Taiwan Carretera $ 287,400.00 $ 529,550.00 $ 37,980.00 $ 488,950.00
14 Argentina Carretera $ 15,022.00 $ 10,451.00 $ 11,802.00 $ 754,250.00
15 Denmark Carretera $ 43,125.00 $ 225,500.00 $ 25,692.00 $ 33,210.00
16 Belgium Carretera $ 9,225.00 $ 25,932.00 $ 8,001.00 $ 690,300.00

Step 2) Select the cell in which you want to insert the Sparkline. Go to Insert menu from the menu bar. Select any one of the Sparkline from the list of Sparkline.

Create a Report with a Table

Step 3) Select any one of the sparkline types that you want to insert. It will ask for the range of cells. Select the line type from the available sparkline type.

Create a Report with a Table

Data Range indicates, which data the Sparkline need to insert. Location range is the cell address where you want to add the Sparkline.

Step 4) Here, the data range is from the cell data contains ‘Gross sales 2015 to 2018’ and location range is from H3. Press the ‘OK’ button after this.

Create a Report with a Table

Step 5) The Sparkline will be inserted into the H3 cell. You can apply the Sparkline to entire data by dragging the same to downwards.

Create a Report with a Table

Now the Sparkline is created.

How to format a Sparklines in Excel

To format Sparkline, first Click on the created Sparkline. A new tab named design will appear on the menu bar which includes the Sparkline tools and will help you to change its color and style. See the available options one by one.

Create a Report with a Table

The different properties of Sparkline can customize according to your need. Style, color, thickness, type, the axis is some among them.

How to change the style of the Sparklines?

Step 1) Select a style from the ‘Style’ option within the design menu. The styles included in a dropdown.

Create a Report with a Table

Step 2) Click on the down arrow near to the style option to select your favorite style from an extensive design catalog.

Create a Report with a Table

How to change the color of the Sparklines?

The color and thickness of the Sparkline can be changed using the Sparkline Color option. It offers a variety of colors.

Step 1) Select the Sparkline and select the Sparkline Color option from the design menu.

Create a Report with a Table

Step 2) Click on the color you want to change. The Sparkline will update with the selected color.

Create a Report with a Table

Change the width of lines.

The width of the lines can be adjusted with the option available in the ‘Sparkline Color’ window.

Step 1) Select the Sparkline then go to design menu in the menu bar.

Step 2) Click on the Sparkline Color’ option.

Step 3) Select the Weight option to make changes in thickness to the inserted Sparkline.

Change the width of lines

Step 4) Move to Weight option. This will give a list of predefined thickness. Customization in Weight is also available.

Change the width of lines

Highlighting the data points

You can highlight the highest, lowest points, and the entire data points on a Sparkline. By this you to get a better view of the data trend.

Step 1) Select the created Sparkline in any cell then move to the design menu. You can see different checkboxes to highlight the data points.

Highlighting the data points

Step 2) Give checkmark according to the data points you want to highlight. And the options available are:

  • High/Low Point: Highlights the high spot the high and low points on the Sparkline.
  • First/Last Point: This will help to highlight the first and last data points on the Sparkline.
  • Negative Points: Use this to highlight negative values.
  • Markers: This option applies only to line Sparkline. It will highlight all data points with a marker. Different color and style are available with more marker colors and lines.

Highlighting the data points

Deleting the Sparklines

You can’t remove the Sparkline by hitting the ‘delete’ key on a keyboard. To delete the Sparkline, you should go to the ‘Clear’ option.

Step 1) Select the cell, which included the Sparkline.

Step 2) Go to Sparkline tools design menu.

Deleting the Sparklines

Step 3) Click on the clear option this will delete the selected Sparkline from the cell.

Advantages of Sparklines in Excel

Here are important reasons for using Sparkline:

  • Visualization of data like temperature or stock market price.
  • Transforming data into a compact form.
  • Data reports generating for a short time.
  • Analyze data trends for a particular time.
  • Easy to understand the fluctuations in the data.
  • A better understanding of high and low data points.
  • Negative values can float effectively by sparkline.
  • Sparkline automatically adjusts its size once the cell width is changed.

Summary

  • Sparkline is a small chart which does not recommend an axes or coordinates
  • Sparkline can apply on a single column or row of data series.
  • Different formatting properties are available for the Sparkline.
  • Sparkline is a micrograph which fit into a single cell.
  • A single delete key press will not remove a created Sparkline.
  • The different data points can highlight in a Sparkline.

Sparklines feature was introduced in Excel 2010.

In this article, you’ll learn all about Excel Sparklines and see some useful examples of it.

What are Sparklines?

Sparklines are tiny charts that reside in a cell in Excel. These charts are used to show a trend over time or the variation in the dataset.

You can use these sparklines to make your bland data look better by adding this layer of visual analysis.

While Sparklines are tiny charts, they have limited functionality (as compared with regular charts in Excel). Despite that, Sparklines are great as you can create these easy to show a trend (and even outliers/high-low points) and make your reports and dashboard more reader-friendly.

Unlike regular charts, Sparklines are not objects. These reside in a cell as the background of that cell.

Types of Sparklines in Excel

In Excel, there are three types of sparklines:

  • Line
  • Column
  • Win-loss

In the below image, I have created an example of all these three types of sparklines.

Excel Sparklines - All three types

The first one in G2 is a line type sparkline, in G3 is a column type and in G4 is the win-loss type.

Here are a few important things to know about Excel Sparklines:

  1. Sparklines are dynamic and are dependent on the underlying dataset. When the underlying dataset changes, the sparkline would automatically update. This makes it a useful tool to use when creating Excel dashboards.
  2. Sparklines size is dependent on the size of the cell. If you change the cell height or width, the sparkline would adjust accordingly.
  3. While you have sparkline in a cell, you can also enter a text in it.
  4. You can customize these sparklines – such as change the color, add an axis, highlight maximum/minimum data points, etc. We will see how to do this for each sparkline type later in this tutorial.

Note: A Win-loss sparkline is just like a column sparkline, but it doesn’t show the magnitude of the value. It is better used in situations where the outcome is binary, such as Yes/No, True/False, Head/Tail, 1/-1, etc. For example, if you’re plotting whether it rained in the past 7 days or not, you can plot a win-loss with 1 for days when it rained and -1 for days when it didn’t. In this tutorial, everything covered for column sparklines can also be applied to the win-loss sparklines.

Win-loss sparkline in Excel

Now let’s cover each of these types of sparklines and all the customizations you can do with it.

Inserting Sparklines in Excel

Let’s say that you want to insert a line sparkline (as shown below).

Line Sparkline in Excel

Here are the steps to insert a line sparkline in Excel:

  1. Select the cell in which you want the sparkline.
  2. Click on the Insert tab.Insert Tab in the Ribbon in Excel
  3. In the Sparklines group click on the Line option.Click on the Line Sparkline Option
  4. In the ‘Create Sparklines’ dialog box, select the data range (A2:F2 in this example).DataRange for the Line Sparkline - dialog box
  5. Click OK.

This will insert a line sparkline in cell G2.

Line Sparkline in Excel

To insert a ‘Column’ or ‘Win-loss’ sparkline, you need to follow the same above steps, and select Columns or Win-loss instead of the Line (in step 3).

While the above steps insert a basic sparkline in the cell, you can do some customization to make it better.

When you select a cell that has a Sparkline, you’ll notice that a contextual tab – Sparkline Tools Design – becomes available. In this contextual tab, you’ll find all the customization option for the selected sparkline type.

Excel Sparklines Design Tools - Contextual Tab

Editing the DataSet of Existing Sparklines

You can edit the data of an existing sparkline by using the Edit Data option. When you click on the Edit Data drop down, you get the following options:

  • Edit Group Location & Data: Use this when you have grouped multiple sparklines and you want to change the data for the entire group (grouping is covered later in this tutorial).
  • Edit Single Sparkline’s Data: Use this to change the data for the selected sparkline only.

Edit Group option in Sparkline design tab

Clicking on any of these options open the Edit Sparklines dialog box where you can change the data range.

Handling Hidden and Empty Cells

When you create a line sparkline with a dataset that has an empty cell, you will notice that the sparkline shows a gap for that empty cell.

Line Sparkline in Excel - mising datapoint

In the above dataset, the value for April is missing which creates a gap in the first sparkline.

Here is an example where there is a missing data point in a column sparkline.

Column Sparkline in Excel - missing data point

You can specify how you want these empty cells to be treated.

Here are the steps:

  1. Click the cell that has the sparkline.
  2. Click the Design Tab (a contextual tab that becomes available only when you select the cell that has a sparkline).
  3. Click on the Edit Data option (click on the text part and not the icon of it).
  4. In the drop-down, select ‘Hidden & Empty Cells’ option.Hidden or Empty cells option in sparklines
  5. In the dialog box that opens, select whether you want to show
    • Empty cells as gaps
    • Empty cells as zero
    • Connect the before and after data points with a line [this option is available for line sparklines only].Hidden or Empty cells settigns dialog box

In case the data for the sparkline is in cells that are hidden, you can check the ‘Show data in hidden rows and columns’ to make sure the data form these cells is also plotted. If you don’t do this, data from hidden cells will be ignored.

Below is an example of all three options for a line sparkline:

Line Sparkline in Excel - handing data gaps and empty cells

  1. Cell G2 is what happens when you choose to show a gap in the sparkline.
  2. Cell G3 is what happens when you choose to show a zero instead.
  3. Cell G2 is what happens when you choose to show a continuous line by connecting the data points.

You can do the same with column and win-loss sparklines as well (not the connecting data point option).

Changing the Sparkline Type

If you want to quickly change the sparkline type – from line to column or vice versa, you can do that using the following steps:

  • Click the sparkline you want to change.
  • Click the Sparkline Tools Design tab.
  • In the Type group, select the sparkline you want.

Changing the sparkline type

Highlighting Data Points in Sparklines

While a simple sparkline shows the trend over time, you can also use some markers and highlights to make it more meaningful.

For example, you can highlight the maximum and the minimum data points, first and the last data point, as well as all the negative data points.

Below is an example where I have highlighted the maximum and minimum data points in a line and column sparkline.

Sparklines in Excel - highlight data points

These options are available in the Sparkline Tools tab (in the show group).

Sparklines Show markers option

Here are the different options available:

  1. High/Low Point: You can use any one or both of these to highlight the maximum and/or the minimum data point.
  2. First/Last Point: You can use any one or both of these to highlight the first and/or the last data point.
  3. Negative Points: In case you have negative data points, you can use this option to highlight all of these at once.
  4. Markers: This option is available only for line sparklines. It will highlight all the data points with a marker. You can change the color of the marker using the ‘Marker Color’ option.

Sparklines Color and Style

You can change the way sparklines look using the style and color options.

It allows you to change the sparkline color (of lines or columns) as well as the markers.

Style and Color Options in Sparklines in Excel - color and marker

You can also use the pre-made style options. To get the full list of options. click on the drop-down icon in the bottom-right of the style box.

Drop-down icon of the style options for sparklines

Pro Tip: If you’re are using markers to highlight certain data points, it’s a good idea to choose a line color that is light in color and marker that is bright and dark (red works great in most cases).

Adding an Axis

When you create a sparkline, in its default form, it shows the lowest data point at the bottom and all the other data points are relative to it.

In some cases, you may not want this to be the case as it seems to show a huge variation.

In the below example, the variation is only 5 points (where the entire data set is between 95 and 100). But since the axis starts from the lowest point (which is 95), the variation looks huge.

Line Sparkline in Excel - axis variation

This difference is a lot more prominent in a column sparkline:

Column Sparkline in Excel - axis variation

In the above column sparkline, it may look like the Jan value is close to 0.

To adjust this, you can change the axis in the sparklines (make it start at a specific value).

Here is how to do this:

  1. Select the cell with the sparkline(s).
  2. Click on the Sparkline Tools Design tab.
  3. Click on the Axis option.Axis Option in Excel Sparklines
  4. In the drop-down, select Custom Value (in the Vertical Axis Minimum Value Options).Custom Value in Axis Options
  5. In the Sparkline Vertical Axis Settings dialog box, enter the value as 0.Custom Axis Value as 0
  6. Click OK.

This will give you the result as shown below.

Column Sparkline in Excel - custom axis value at 0

By setting the customs value at 0, we have forced the sparkline to start at 0. This gives a true representation of the variation.

Note: In case you have negative numbers in your data set, it’s best to not set the axis. For example, if you set the axis to 0, the negative numbers would not be shown in the sparkline (as it begins from 0).

You can also make the axis visible by selecting the Show Axis option. This is useful only when you have numbers that cross the axis. For example, if you have the axis set at 0 and have both positive and negative numbers, then the axis would be visible.

Show Axis option in sparklines

Group & Ungroup Sparklines

If you have a number of sparklines in your report or dashboard, you can group some of these together. Doing this makes it easy to make changes to the whole group instead of doing it one by one.

To group Sparklines:

  1. Select the ones that you want to group.
  2. Click on the Sparklines Tools Design tab.
  3. Click the Group icon.Group Sparklines in Excel

Now when you select any of the Sparkline that has been grouped, it will automatically select all the ones in that group.

You can ungroup these sparklines by using the Ungroup Option.

Deleting the Sparklines

You can not delete a sparkline by selecting the cell and hitting the delete key.

To delete a sparkline, follow the steps below:

  1. Select the cell that has the sparkline that you want to delete.
  2. Click the Sparkline Tools Design tab.
  3. Click the Clear option.

Clear Sparklines from Excel Cells

You May Also Like the Following Excel Tutorials:

  • Using Conditional Formatting in Excel (The Ultimate Guide + Examples).
  • How to Create a Heat Map in Excel.
  • Creating the Actual vs Target Chart in Excel.
  • Sparklines in Google Sheets
  • How to Rotate Text in Cells in Excel

Sparklines are tiny charts inside single worksheet cells that can be used to visually represent and show a trend in your data. Sparklines can draw attention to important items such as seasonal changes or economic cycles and highlight the maximum and minimum values in a different color.

Contents

  • 1 What are sparklines and their purpose?
  • 2 What are the three types of sparklines in Excel?
  • 3 How do I create a sparkline in Excel?
  • 4 What is the difference between sparklines and charts in Excel?
  • 5 Are sparklines useful?
  • 6 For what purpose MS Excel is used?
  • 7 What are different types of sparklines?
  • 8 What does macro mean in Excel?
  • 9 What is combo chart?
  • 10 What is the best use for a sparkline?
  • 11 How do I know if Excel is compatible?
  • 12 What is chart and diagram?
  • 13 What is a splunk sparkline?
  • 14 Why is it called a sparkline?
  • 15 What is the disadvantage of stacked area charts?
  • 16 How many cells in your worksheet does a sparkline use?
  • 17 Why would you not use a sparkline?
  • 18 What are the 3 common uses for Excel?
  • 19 What are the advantages of MS Excel?
  • 20 How do you show markers in Excel?

What are sparklines and their purpose?

Sparklines are small graphs that are created to offer simple visual clues about the data graphed. Basically, they are tiny charts inside a single cell.

What are the three types of sparklines in Excel?

There are three types of sparklines:

  • Line: visualizes the data in a line graph form.
  • Column: visualizes the data in column form, similar to the clustered column chart.
  • Win/Loss: visualizes the data as positive or negative based on color.

How do I create a sparkline in Excel?

Here are the steps to insert a line sparkline in Excel:

  1. Select the cell in which you want the sparkline.
  2. Click on the Insert tab.
  3. In the Sparklines group click on the Line option.
  4. In the ‘Create Sparklines’ dialog box, select the data range (A2:F2 in this example).
  5. Click OK.

What is the difference between sparklines and charts in Excel?

A sparkline is a very small line chart, typically drawn without axes or coordinates.Whereas the typical chart is designed to show as much data as possible, and is set off from the flow of text, sparklines are intended to be succinct, memorable, and located where they are discussed.

Are sparklines useful?

Excel Sparklines provide an easy way to add lightweight graphics to your data. A Sparkline chart is a good choice for summarizing data within a row of a table. They typically will be placed in the same row, to the right of the data.

For what purpose MS Excel is used?

Microsoft Excel is a spreadsheet program. That means it’s used to create grids of text, numbers and formulas specifying calculations. That’s extremely valuable for many businesses, which use it to record expenditures and income, plan budgets, chart data and succinctly present fiscal results.

What are different types of sparklines?

There are three different types of sparklines: Line, Column, and Win/Loss. Line and Column work the same as line and column charts.

What does macro mean in Excel?

If you have tasks in Microsoft Excel that you do repeatedly, you can record a macro to automate those tasks. A macro is an action or a set of actions that you can run as many times as you want. When you create a macro, you are recording your mouse clicks and keystrokes.

What is combo chart?

A combo chart is a combination of two column charts, two line graphs, or a column chart and a line graph. You can make a combo chart with a single dataset or with two datasets that share a common string field.

What is the best use for a sparkline?

A sparkline is a tiny chart in a worksheet cell that provides a visual representation of data. Use sparklines to show trends in a series of values, such as seasonal increases or decreases, economic cycles, or to highlight maximum and minimum values. Position a sparkline near its data for greatest impact.

How do I know if Excel is compatible?

Follow these steps:

  1. Click File > Info > Check for Issues.
  2. Choose Check Compatibility.
  3. To check for compatibility automatically from now on, check the Check compatibility when saving this workbook box. Tip: You can also specify the versions of Excel that you want to include when you check for compatibility.

What is chart and diagram?

As nouns the difference between diagram and chart
is that diagram is a plan, drawing, sketch or outline to show how something works, or show the relationships between the parts of a whole while chart is a map.

What is a splunk sparkline?

A sparkline is a small representation of some statistical information without showing the axes. It generally appears as a line with bumps just to indicate how certain quantity has changed over a period of time. Splunk has in-built function to create sparklines from the events it searches.

Why is it called a sparkline?

Sparklines are often used in reports, presentations, dashboards and scoreboards. They do not include axes or labels; context comes from the related content. Usually, when a graph is included in a report, the reader has to break concentration and take time to study the graph.

What is the disadvantage of stacked area charts?

There’s nothing stopping us from breaking up this one graph into smaller individual graphs, one for each and also the total. The disadvantage here is that it’s not as easy to compare between the different groups, however we can make it easier by using the same axis scaling for the graphs for each individual group.

How many cells in your worksheet does a sparkline use?

Sparklines in Excel are graphs that fit in one cell. Sparklines are great for displaying trends.

Why would you not use a sparkline?

The line sparkline displays data values in a line chart. The column sparkline displays values using a column chart.You would not use a sparkline if you need to show specific details in your chart or need to augment the informative chart elements.

What are the 3 common uses for Excel?

The three most common general uses for spreadsheet software are to create budgets, produce graphs and charts, and for storing and sorting data. Within business spreadsheet software is used to forecast future performance, calculate tax, completing basic payroll, producing charts and calculating revenues.

What are the advantages of MS Excel?

10 Benefits of Microsoft Excel

  • Best way to store data.
  • You can perform calculations.
  • All the tools for data analysis.
  • Easy to data visualizations with charts.
  • You can print reports easily.
  • So many free templates to use.
  • You can code to automate.
  • Transform and clean data.

How do you show markers in Excel?

On the Format tab, in the Current Selection group, click Format Selection. Click Marker Options, and then under Marker Type, make sure that Built-in is selected. In the Type box, select the marker type that you want to use.

What are the Sparklines in Excel?

Sparklines in Excel are like a chart in a cell itself. They are tiny visual representations that show the trend of the data, increasing or decreasing. So first, we need to select the cell where we want the sparkline to insert a sparkline. Then, in the “Insert” tab in the “Lines” section, click on “Sparklines.” After that, we can choose any one of the styles of sparklines.

Sparklines are most useful when multiple charts are required to represent the data. It is because the chart will take up most of the spreadsheet space. We can save this space by using sparklines in Excel.

Suppose we have the profit and loss data for the first two quarters of 10 sellers. We want to visualize the trend of profit or loss they make in two quarters. Then, we cannot do this with the help of single traditional charts. It can be possible only if sparklines are inserted for each seller.

Table of contents
  • What are the Sparklines in Excel?
    • How to Create Sparklines in Excel?
      • Example #1 – Using Column
      • Example #2 – Using Win/Loss
      • Example #3 – If in case we have Blank cells or zero value cells in the data
    • Explanation
    • Things to Remember
    • Recommended Articles

How to Create Sparklines in Excel?

You can download this Sparklines Excel Template here – Sparklines Excel Template

Example #1 – Using Column

Step 1: Since we are creating a column in sparkline this time, we must select the column instead of a line from the available options.

Sparkline Example 1
By creating a sparkline, we meant we needed to insert something in Excel. So, whenever we need to insert or add something, we also need to go to the “Insert” tab of Excel.

  1. So first, we need to go to the “Insert” tab.

    Go to the “INSERT” option from the ribbon and choose the “Line” chart from the “Sparklines” options.

    Sparkline Example 1-1

  2. From the window, enter or select the “Data Range” that has the data.

    Sparkline Example 1-2

  3. Enter the location of the cell where the sparkline is to be created. It is not usually asked when creating a chart, as a chart is an object. But, sparkline is not an object and needs a location to insert in Excel.

    Sparkline Example 1-3

  4. After the location from where the data has to be picked and the location of a cell in which the sparkline is to be inserted. We will get the below sparkline.

    Since we have selected the “Line” method for creating a sparkline, the sparkline will be identical to the “Line” chart.

    Sparkline Example 1-4

Sparkline Example 2

Steps 2 and 3 will be the same as in the case of “Using a line in the sparkline.”

Step 4: The column “Sparkline” will look as below.

Sparkline Example 2-1

Example #2 – Using Win/Loss

Sparkline Example 3

Step 1: Select the “Win/Loss” from the available “Sparklines” options.

Sparkline Example 3-1

Steps 2 and 3 will be the same as explained before.

Step 4: The “Win/Loss” sparkline will look like the one below.

Sparkline Example 3-2

Example #3 – If in case we have Blank cells or zero value cells in the data

If we have blank cells in the data, the sparklines will be broken and look separated as below.

Example 4

To correct this situation, we need to change how sparkline treats the empty cell.

Step 1: Select the “Sparkline” and click the “Insert” option. From the “Design” tab, select the “Edit Data” option.

Example 4-1

Step 2: From the “Edit Data” option, choose the option “Hidden & Empty Cells.”

Example 4-2

Step 3: We can choose how the gaps will be treated from the available options.

Example 4-3

Step 4: Below is how each of the options will treat gaps.

Example 4-4

Example 4-5

If the data has a gap, it makes broken sparklines. Follow the same steps of the method (1,2, and 3). Below are examples of broken sparklines.

Example 4-7

To make a “Markers” in the sparklines, go to the “Design” tab and click on the option “Markers” after inserting sparklines.

Sparkline Marker

Then, your marker-added sparklines would look like this.

Sparkline Marker 1

To show the axis in sparklines, go to the “Design” tab and click on “Axis,” then click on “Show Axis.”

Sparkline Axis

The axis added sparklines would look as given below.

Sparkline axis 1

Explanation

When we only need the visualization instead of the full features of traditional charts. We should use sparklines instead of charts as they also have many features that are enough to visualize the data.

Sparklines work the same as a chart, but the only difference is that sparklines are inserted in the cell, and a chart is always outside a cell and is an object to Excel. Getting started with a sparkline is easy as this needs the data to be selected and then insert a sparkline from the ribbon. When we create a sparkline, we have many options about how the sparklines are to be represented. Hence, we can use lines, columns, or win-loss methods. If we use the line sparkline, our chart will be more identical to the line chart. In the case of column chart sparkline, this will match the traditional column chart in excelColumn chart is used to represent data in vertical columns. The height of the column represents the value for the specific data series in a chart, the column chart represents the comparison in the form of column from left to right.read more.

We should remember that we can use the column and line chart if we have data. However, we need to show the change in the magnitude of that data via sparkline. We cannot use the “Win/Loss” type if we want to show the importance of change in data, as this type of chart works on the “True” or “False” method only. Therefore, they cannot show a difference in the magnitude of data.

Things to Remember

  • The sparklines are not an object. Therefore, these are inserted into a cell and not on the worksheet area, as done in the case of charts that are inserted as an object and on the worksheet.
  • Even if a sparkline is created in a cell, we can still type in that cell.
  • A sparkline must be deleted from the menu and cannot be deleted with the click of the “Delete” button.
  • The height and width of the sparkline depend on the height and width of the cell in which it is inserted. Therefore, the sparkline look will change if any change is made to the cell’s width and height.
  • We should not use the “Win/loss” method of sparkline if we need to show the magnitude of change because they represent the “True” and “False” situations.

Recommended Articles

This article is a guide to Sparklines in Excel. Here, we discuss how to create sparklines in Excel using sparkline options such as “Line,” “Column,” “Win/Loss,” “Marker,” “Broken Lines,” and “Axis,” along with practical examples and downloadable Excel templates. You may learn more about Excel from the following articles: –

  • Line Chart ExamplesThe line chart is a graphical representation of data that contains a series of data points with a line. read more
  • Dynamic Chart in ExcelA dynamic chart is a unique chart in Excel which updates itself when the range of the chart is updated. In static charts, the chart does not change itself when the range is updated.read more
  • Stacked Column Chart in ExcelA stacked column chart in Excel is a column chart where multiple series of the data representation of various categories are stacked over each other. The stacked series are vertical.read more
  • Histogram FormulaA histogram is a type of graphical representation in excel, and there are various methods to make one. Instead of using the Analysis Toolpak or from the Pivot Table, we can also make a histogram from formulas, such as using FREQUENCY and Countifs formulas together.read more

Excel is a great tool for all of your marketing needs. You can create graphs to visualize your data, use formulas to calculate conversion rates, or even create social media calendars.

how to create sparklines in excel

You can also monitor trends in your marketing campaign data and, in this post, we’ll explain how to do so with the sparklines tool.

Already know what you need? Jump there with our Table of Contents.

  • How to Add a Sparkline in Excel
  • Create a Column Sparkline in Excel
  • How to Ungroup Sparklines in Excel
  • How to Mark Data Points in Sparkline Charts
  • How to Color Code Excel Sparkline

Download 10 Excel Templates for Marketers [Free Kit]

What are sparklines in Excel?

Sparklines are charts in individual cells that provide visual representations of trends in your sheet data. For example, if you track month-over-month progress, a sparkline can show you how each month compares to the other.

There are three different ‌sparklines you can add to your Excel spreadsheets: line, column, and win-loss. The image below is an example of a line.

excel chart with sparkline

For this walkthrough, we’ll use a sample data table (shown below) that tracks views, conversions, and leads generated from a marketing campaign‌.

excel sparkline sample data set

Let’s go over how to add your own.

1. Select the cells you want represented in your sparkline chart. In this example, I’ve selected all the cells between B2 and I2.

step 1

2. In the header toolbar, select Insert, then Sparklines.

step 2-Mar-11-2022-07-58-56-52-PM

3. You should then see a dropdown menu where you can select the type of sparkline chart you want: line, column, or win-loss. I selected a line for this example.

image 3-Mar-11-2022-07-59-20-85-PM

4. After you select your preferred chart, you’ll see a dialogue box appear (as shown below). In the Select where you want to place the sparkline box text field, enter the cell that you want the sparkline chart in.

image 4

It’s best practice to have the sparkline immediately next to the string of cells you’re creating the chart for so you can get a full visualization and quickly refer back to your data.

For this example, I selected cell J2.

5. Your sparkline chart should appear in the cell you selected. The image below is the sparkline for my sample data set, and it shows the trend in views over time for my marketing campaign.

image 5-Mar-11-2022-08-00-13-53-PMBelow we’ll go over the steps to creating a different type of sparkline.

Create a Column Sparkline in Excel

If you want to use a column sparkline in Excel, repeat steps one and two from above. When the sparkline selection box opens, select column instead of line. The image below is a column sparkline.

excel column sparklineFollow the same process if you want a win-loss sparkline. The image below is an example of what this chart looks like.

win-loss sparkline chart excel

How to Ungroup Sparklines in Excel

You’d want to ungroup sparklines in Excel if you want each of your rows to have a different sparkline. For example, if you want rows two and four to have a line chart, but row three to have a column. Let’s go over the steps.

1. Right-click on the sparkline you want ungrouped. For this example, I right-clicked on column J3.

2. In the popup menu, select Sparklines, then Ungroup.

3. Click on the sparkline you want to change, navigate to the Sparkline header toolbar, and make your chart selection.

The image below is an example of what it looks like when you ungroup sparklines and use different charts.

ungroup sparkline in excel

Format a Sparkline Chart in Excel

A benefit to using Excel is that you can always format your spreadsheets to your liking, and this goes for Sparklines too. Let’s go over some formatting changes you can make.

How to Mark Data Points in Sparkline Charts

1. Select the sparkline you want to edit and navigate to the Sparkline header toolbar and select your preferred data marker, as shown in the image below.

mark data point in excel sparkline chart

If I select High Point, my corresponding sparkline chart will have a marker displaying the month with the highest view count.

image 8.2

How to Color Code Excel Sparkline

Select the sparkline you want to edit and navigate to the right-hand side of the Sparkline header toolbar, as shown in the image below.

color code excel sparklineYou have the option to change the color of your sparkline, the color of your markers, and the weight of your sparkline.

Over To You

Now that you know how to create a sparkline chart, you can expertly monitor trends in your marketing campaigns that will help you quickly view the success of your processes.

excel marketing templates

Содержание

  1. Use sparklines to show data trends
  2. Add a Sparkline
  3. Format a Sparkline chart
  4. Need more help?
  5. Analyze trends in data using sparklines
  6. Customize your sparklines
  7. Create sparklines
  8. Create sparklines
  9. Mark data points on sparklines
  10. Change the style of sparklines
  11. Handle empty or zero value cells
  12. Delete sparklines
  13. Create sparklines
  14. Mark data points on sparklines
  15. Change the style of sparklines
  16. Handle empty or zero value cells
  17. Delete sparklines
  18. What Are Excel Sparklines?
  19. What are sparklines and their purpose?
  20. What are the three types of sparklines in Excel?
  21. How do I create a sparkline in Excel?
  22. What is the difference between sparklines and charts in Excel?
  23. Are sparklines useful?
  24. For what purpose MS Excel is used?
  25. What are different types of sparklines?
  26. What does macro mean in Excel?
  27. What is combo chart?
  28. What is the best use for a sparkline?
  29. How do I know if Excel is compatible?
  30. What is chart and diagram?
  31. What is a splunk sparkline?
  32. Why is it called a sparkline?
  33. What is the disadvantage of stacked area charts?
  34. How many cells in your worksheet does a sparkline use?
  35. Why would you not use a sparkline?
  36. What are the 3 common uses for Excel?
  37. What are the advantages of MS Excel?
  38. How do you show markers in Excel?

Use sparklines to show data trends

A sparkline is a tiny chart in a worksheet cell that provides a visual representation of data. Use sparklines to show trends in a series of values, such as seasonal increases or decreases, economic cycles, or to highlight maximum and minimum values. Position a sparkline near its data for greatest impact.

Add a Sparkline

Select a blank cell at the end of a row of data.

Select Insert and pick Sparkline type, like Line, or Column.

Select cells in the row and OK in menu.

More rows of data? Drag handle to add a Sparkline for each row.

Format a Sparkline chart

Select the Sparkline chart.

Select Sparkline and then select an option.

Select Line, Column, or Win/Loss to change the chart type.

Check Markers to highlight individual values in the Sparkline chart.

Select a Style for the Sparkline.

Select Sparkline Color and the color.

Select Sparkline Color > Weight to select the width of the Sparkline.

Select Marker Color to change the color of the markers.

If the data has positive and negative values, select Axis to show the axis.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

Источник

Analyze trends in data using sparklines

Sparklines are tiny charts inside single worksheet cells that can be used to visually represent and show a trend in your data. Sparklines can draw attention to important items such as seasonal changes or economic cycles and highlight the maximum and minimum values in a different color. Showing trends in your worksheet data can be useful, especially when you’re sharing your data with other people.

Select a blank cell near the data you want to show in a sparkline.

On the Insert tab, in the Sparklines group, click Line, Column, or Win/Loss.

In the Data Range box, enter the range of cells that has the data you want to show in the sparkline.

For example, if your data is in cells A, B, C, and D of row 2, enter A2:D2.

If you’d rather select the range of cells on the worksheet, click to temporarily collapse the dialog box, select the cells on the worksheet, and then click to show the dialog box in full.

The Sparkline Tools appear on the ribbon. Use the Style tab to customize your sparklines.

Because a sparkline is embedded in a cell, any text you enter in the cell uses the sparkline as its background, as shown in the following example.

If you select one cell, you can always copy a sparkline to other cells in a column or row later by dragging or using Fill Down (Ctrl+D).

Customize your sparklines

After you create sparklines, you can change their type, style, and format at any time.

Select the sparklines you want to customize to show the Sparkline Tools on the ribbon.

On the Style tab, pick the options you want. You can:

Show markers to highlight individual values in line sparklines.

Change the style or format of sparklines.

Show and change axis settings.

If you click the Date Axis Type option in this drop-down, Excel opens the Sparkline Date Range dialog box. From here, you can select the range in your workbook that contains the date values you want for your Sparkline data.

If you click the Custom Value options in this drop-down, Excel opens the Sparkline Vertical Axis Setting dialog box. From here, you can enter either the minimum or maximum value (depending upon which option you selected) for the vertical axis for your Sparkline data. By default, Excel determines how to display the Sparkline data so with these options you can control the minimum and maximum values.

Change the way data is shown.

If you click the Edit Single Sparkline’s Data option in this drop-down, Excel opens the Edit Sparkline Data dialog box. From here, you can select the range in your workbook that contains the data you want for your Sparkline data. Use this option if you want to change only one Sparkline.

If you click the Hidden & Empty Cells option in this drop-down, Excel opens the Hidden and Empty Cell Settings dialog box. Use this option to change how Excel treats hidden and null values for the Sparkline data.

You can choose to show empty cells as Gaps, Zero, or Connect data points with line.

Select the Show data in hidden rows and columns option to have Excel include data in hidden rows and columns in your Sparkline data. Clear this option to have Excel ignore data in hidden rows and columns.

Источник

Create sparklines

Sparklines are small charts that fit inside individual cells in a sheet. Because of their condensed size, sparklines can reveal patterns in large data sets in a concise and highly visual way. Use sparklines to show trends in a series of values, such as seasonal increases or decreases, economic cycles, or to highlight maximum and minimum values. A sparkline has the greatest effect when it’s positioned near the data that it represents. To create sparklines, you must select the data range that you want to analyze, and then select where you want to put the sparklines.

The data range for the sparklines

The location for the sparklines

Column sparklines that display year-to-date sales for Portland, San Francisco, and New York

Create sparklines

Select the data range for the sparklines.

On the Insert tab, click Sparklines, and then click the kind of sparkline that you want.

In the Insert Sparklines dialog box, notice that the first box is already filled based on your selection in step 1.

On the sheet, select the cell or the range of cells where you want to put the sparklines.

Important: When you select this area, make sure that you select dimensions that are suitable for the data range. Otherwise, Excel displays errors to indicate that the ranges are not consistent. For example, if the data range has three columns and one row, you should select an adjacent column and the same row.

Tip: When you change the data on the sheet, sparklines update automatically.

Mark data points on sparklines

You can distinguish specific data points, such as high or low values, by using markers.

Click a sparkline.

On the Sparkline Design tab, in the Show group, select the markers that you want, such as high and low points. You can customize marker colors by clicking the Marker Color button.

Change the style of sparklines

Click a sparkline.

On the Sparkline Design tab, click the style that you want.

To see more styles, point to a style, and then click .

Tip: To immediately undo a style that you applied, press + Z .

Handle empty or zero value cells

Click a sparkline.

On the Sparkline Design tab, click Edit Data, point to Hidden and Empty Cells, and then click the option that you want.

Delete sparklines

Click the sparkline that you want to delete.

On the Sparkline Design tab, click the arrow next to Clear, and then click the option that you want.

Create sparklines

Select the data range for the sparklines.

On the Charts tab, under Insert Sparklines, click the kind of sparkline that you want.

In the Insert Sparklines dialog box, notice that the first box is already filled based on your selection in step 1.

On the sheet, select the cell or the range of cells where you want to put the sparklines.

Important: When you select this area, make sure that you select dimensions that are suitable for the data range. Otherwise, Excel displays errors to indicate that the ranges are not consistent. For example, if the data range has three columns and one row, you should select an adjacent column and the same row.

Tip: When you change the data on the sheet, sparklines update automatically.

Mark data points on sparklines

You can distinguish specific data points, such as high or low values, by using markers.

Click a sparkline.

On the Sparklines tab, under Markers, select the markers that you want.

Change the style of sparklines

Click a sparkline.

On the Sparklines tab, under Format, click the style that you want.

To see more styles, point to a style, and then click .

Tip: To immediately undo a style that you applied, press + Z .

Handle empty or zero value cells

Click a sparkline.

On the Sparklines tab, under Data, click the arrow next to Edit, point to Hidden and Empty Cells, and then click the option that you want.

Delete sparklines

Click the sparkline that you want to delete.

On the Sparklines tab, under Edit, click the arrow next to Clear, and then click the option that you want.

Источник

What Are Excel Sparklines?

Sparklines are tiny charts inside single worksheet cells that can be used to visually represent and show a trend in your data. Sparklines can draw attention to important items such as seasonal changes or economic cycles and highlight the maximum and minimum values in a different color.

What are sparklines and their purpose?

Sparklines are small graphs that are created to offer simple visual clues about the data graphed. Basically, they are tiny charts inside a single cell.

What are the three types of sparklines in Excel?

There are three types of sparklines:

  • Line: visualizes the data in a line graph form.
  • Column: visualizes the data in column form, similar to the clustered column chart.
  • Win/Loss: visualizes the data as positive or negative based on color.

How do I create a sparkline in Excel?

Here are the steps to insert a line sparkline in Excel:

  1. Select the cell in which you want the sparkline.
  2. Click on the Insert tab.
  3. In the Sparklines group click on the Line option.
  4. In the ‘Create Sparklines’ dialog box, select the data range (A2:F2 in this example).
  5. Click OK.

What is the difference between sparklines and charts in Excel?

A sparkline is a very small line chart, typically drawn without axes or coordinates.Whereas the typical chart is designed to show as much data as possible, and is set off from the flow of text, sparklines are intended to be succinct, memorable, and located where they are discussed.

Are sparklines useful?

Excel Sparklines provide an easy way to add lightweight graphics to your data. A Sparkline chart is a good choice for summarizing data within a row of a table. They typically will be placed in the same row, to the right of the data.

For what purpose MS Excel is used?

Microsoft Excel is a spreadsheet program. That means it’s used to create grids of text, numbers and formulas specifying calculations. That’s extremely valuable for many businesses, which use it to record expenditures and income, plan budgets, chart data and succinctly present fiscal results.

What are different types of sparklines?

There are three different types of sparklines: Line, Column, and Win/Loss. Line and Column work the same as line and column charts.

What does macro mean in Excel?

If you have tasks in Microsoft Excel that you do repeatedly, you can record a macro to automate those tasks. A macro is an action or a set of actions that you can run as many times as you want. When you create a macro, you are recording your mouse clicks and keystrokes.

What is combo chart?

A combo chart is a combination of two column charts, two line graphs, or a column chart and a line graph. You can make a combo chart with a single dataset or with two datasets that share a common string field.

What is the best use for a sparkline?

A sparkline is a tiny chart in a worksheet cell that provides a visual representation of data. Use sparklines to show trends in a series of values, such as seasonal increases or decreases, economic cycles, or to highlight maximum and minimum values. Position a sparkline near its data for greatest impact.

How do I know if Excel is compatible?

Follow these steps:

  1. Click File > Info > Check for Issues.
  2. Choose Check Compatibility.
  3. To check for compatibility automatically from now on, check the Check compatibility when saving this workbook box. Tip: You can also specify the versions of Excel that you want to include when you check for compatibility.

What is chart and diagram?

As nouns the difference between diagram and chart
is that diagram is a plan, drawing, sketch or outline to show how something works, or show the relationships between the parts of a whole while chart is a map.

What is a splunk sparkline?

A sparkline is a small representation of some statistical information without showing the axes. It generally appears as a line with bumps just to indicate how certain quantity has changed over a period of time. Splunk has in-built function to create sparklines from the events it searches.

Why is it called a sparkline?

Sparklines are often used in reports, presentations, dashboards and scoreboards. They do not include axes or labels; context comes from the related content. Usually, when a graph is included in a report, the reader has to break concentration and take time to study the graph.

What is the disadvantage of stacked area charts?

There’s nothing stopping us from breaking up this one graph into smaller individual graphs, one for each and also the total. The disadvantage here is that it’s not as easy to compare between the different groups, however we can make it easier by using the same axis scaling for the graphs for each individual group.

How many cells in your worksheet does a sparkline use?

Sparklines in Excel are graphs that fit in one cell. Sparklines are great for displaying trends.

Why would you not use a sparkline?

The line sparkline displays data values in a line chart. The column sparkline displays values using a column chart.You would not use a sparkline if you need to show specific details in your chart or need to augment the informative chart elements.

What are the 3 common uses for Excel?

The three most common general uses for spreadsheet software are to create budgets, produce graphs and charts, and for storing and sorting data. Within business spreadsheet software is used to forecast future performance, calculate tax, completing basic payroll, producing charts and calculating revenues.

What are the advantages of MS Excel?

10 Benefits of Microsoft Excel

  • Best way to store data.
  • You can perform calculations.
  • All the tools for data analysis.
  • Easy to data visualizations with charts.
  • You can print reports easily.
  • So many free templates to use.
  • You can code to automate.
  • Transform and clean data.

How do you show markers in Excel?

On the Format tab, in the Current Selection group, click Format Selection. Click Marker Options, and then under Marker Type, make sure that Built-in is selected. In the Type box, select the marker type that you want to use.

Источник

Of all the charting features in Excel, Sparklines are my absolute favorite. These bite-sized graphs can fit in a cell and show powerful insights. Edward Tufte coined the term sparkline and defined it as,

intense, simple, word-sized graphics

Edward Tufte

Excel sparklines tutorial and 5 tips

Sparklines (often called as micro-charts) add rich visualization capability to tabular data without taking too much space. This page provides a complete tutorial on Excel sparklines along with 5 secret tips.

What is a sparkline?

A Sparkline is a small chart that is aligned with rows of some tabular data and usually shows trend information.

Here is an example of sparklines in a project team status report.

Example Sparkline Implementation - Project Team Member - Status Report

Excel Sparklines Tutorial – 3 steps

Creating sparklines in Excel is very easy. You follow 3 very simple steps to get beautiful sparklines in an instant.

  1. Select the data from which you want to make a sparkline.
  2. Go to Insert > Sparkline and select the type of sparkline (you have 3 options – line, column and win-loss chart)
  3. Specify a target cell where you want the sparkline to be placed
  4. Optional: Format the sparkline if you want.

Here is a short screen-cast showing you how a sparkline is created.

How to create sparklines in Excel 2010 - Tutorial

Types of Sparklines in Excel:

Types of Sparklines in Excel 2010

There are 3 basic types of sparklines in Excel 2010. They are,

  1. Line chart
  2. Column chart
  3. Win-loss chart (useful for showing a bunch of wins & losses denoted by 1s and -1s)

Sparkline Formatting and Options – Explored

Sparkline Formatting Options in Excel 2010

Whenever you select a cell with sparkline in it, you will find a new ribbon called as “Sparklines – Design” ribbon. This is where all the formatting options for sparklines are included. Some of the key formatting / customization options available are,

  • Change the sparkline type – between line, column and win/loss
  • Change the source data / target cells of sparkline
  • Set different colors for first point, last point, highest & lowest points (applicable for column and line chart types)
  • Set axis options (show / hide axis, set min and max value for vertical axis, set axis type to date axis etc.)
  • Group / un-group a bunch of sparklines (you can change formatting options, axis settings en-masse when you group sparklines)
  • Remove sparklines

Sparklines & Missing Data – How does it work?

Sparklines & Missing Data - Examples

  • Non-numeric data: If the sparkline source data contains non-numeric data, they are neglected while plotting the sparklines.
  • Errors & #NA values: If data has some #NA values, they are neglected
  • Blanks: sparkline show blanks as gaps
  • Zeros: If data has zeros, zero value is plotted
  • Data in hidden rows / columns: If data has some hidden rows / columns, the values are neglected (unless you enable “Show data in hidden cells” option)

Sparklines in Tables & Pivot Tables

Sparklines in Pivot Tables - An Example

You can add sparklines to tables and pivot tables too. Adding them to pivot tables is a bit tricky but adding sparklines to tables is fairly straightforward and scales nicely.

5 Tips to use Sparklines better

Here is a bunch of quick tips & tricks for those of you starting on sparklines.

  1. You can auto-fill sparklines. Select the first set of values and add a sparkline. Now copy and past sparklines to auto-fill them based on data in adjacent cells.
  2. Change their size: When you adjust row-height or column-width of the cell containing sparkline, the size of sparkline changes too.
  3. Juxtapose sparklines with conditional formatting icons to create stunning charts and dashboards.
  4. If you want to copy a sparkline over to a ppt or document, you can use “copy as picture” option.
  5. Enable high / low points to highlight important values

Sparklines & Compatibility

Sparklines are available since Excel 2010. They work in desktop and web versions of Excel.

What happens when someone opens a file with sparklines in Excel 2007?

Sparklines don’t show up in if you open the file in older version of Excel (say Excel 2007).

How does Sparklines compare with other alternatives?

Sparklines vs. In-cell Charts

In-cell charts are a powerful and lightweight way to create bite-sized visualizations. The main technique is to use REPT formula to repetitively show a bunch of symbols (usually | symbol) to create a small chart. The advantage of this approach is that they work in any version of Excel. But the dis-advantage is that we can make only few types of charts (bar charts, column charts by rotating cell text, dot plots). Also, incell charts require some knowledge of excel formulas and creativity.

This is where Excel Sparklines shine, as they are very easy to create and maintain.

Sparklines vs. Conditional Formatting

In Excel 2007, MS introduced a bunch of useful Conditional Formatting options like icons, heat maps that effectively create small visualizations of underlying data. These features are further improved in Excel 2010, 2013 and 2016. While conditional formatting based visualizations are easy to implement and scale very well, there are only few options (a bunch of traffic lights, data bars etc.). This could leave you high and dry if you are looking for rich visualization options. these new features require the actual data to be present in underlying cells (which is a head-ache).

Again, sparklines shine as a simpler and easier alternative.

Sparklines vs. Shrinking an actual chart

We can take an actual chart, strip it of all the clothing (remove gridlines, axis, legend, titles, labels etc.) and resize it so that it fits nicely in a cell [example]. This is the easiest and cleanest way to get sparklines in earlier versions of excel. However this approach has one problem. It doesn’t scale. (ie if you want to get 2 sparklines, you need to do twice the work). Of course, we can write some macros to take care of that, but if you are open to macros, you might as well use SfE and save a lot of trouble. But this approach of shrinking a real chart is better as it gives you full power to customize the underlying chart (add multiple series etc.) which is not available in excel sparklines.

Download Excel Sparklines Tutorial Workbook

Click here to download Excel sparklines tutorial workbook. It shows all three kinds of sparklines in a simple dashboard format. Use the data to create your own sparklines to learn more.

Conclusions on Sparklines

The sparklines in Excel is certainly a great step forward in the world of data visualization. It brings ease and consistency to most users who want better visualizations but do not know how to create them. That said, Microsoft hasn’t really introduced any new types of sparklines since 2010. This is disappointing. Ideally few more types of sparklines such as these can help with dataviz.

new types of sparklines I wish Microsoft introduced

On a lighter note, Kudos to Office Team at MS for not adding any 3D capabilities to these sparklines. That would have unleashed a fresh dose of chart monsters.

I use sparklines in most of my dashboards and business reports.

What about you? What are your thoughts on sparklines? Have you used them? What is your experience like? Please share your ideas, impressions and tips thru comments.

Additional examples on Sparklines:

Dynamic Sparklines using Excel

regional-trends-analysis-customer-complaints-data

Sparklines used to analyze regional trends in customer service dashboard – link
  • Sparklines vs. SfE Free Add-in – a detailed comparison [PTS Blog]
  • Sparklines for Excel – a fantastic Add-in for generating sparklines in all versions of Excel


Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.




  • 61 Comments




  • Ask a question or say something…




  • Tagged under

    charting, Charts and Graphs, downloads, edward tufte, Excel 2010, excel tables, in-cell charting, Learn Excel, micro charts, Microsoft Excel Conditional Formatting, pivot tables, screencasts, sparklines, tips




  • Category:

    Charts and Graphs

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my story • FREE Excel tips book

Advanced Excel & Dashboards training - Excel School is here

Excel School made me great at work.

5/5

Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It’s all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

Related Tips

61 Responses to “What are Excel Sparklines & How to use them? 5 Secret Tips”

  1. Subhash says:

    Good preview of Sparklines. Will be waiting for your Sparklines for Pivot tables update 🙂

    Btw, is it SparkLines, Sparklines or sparklines?

    Subhash

  2. This is a great new feature in Excel 2010. We are all working with more and more data. As our understanding of the data expands, we need more sophisticated ways to represent trends and patterns in the data. Sometimes basic charts and graphs just don’t show enough information. Because Sparklines offer a way to show a lot of data in a sophisticated, and yet not complicated, visual representation of the data, I think people are really going to use this new feature a lot. And, as you show in this helpful post, it’s pretty easy to create Sparklines with the new Excel. Thanks!

  3. Gregor Erbach says:

    Too bad I will have to wait for a loooooong time until we get Excel 2010 in my workplace. Maybe I can win a personal licence by writing this comment.

  4. This is the first I’ve seen sparklines—thanks for the overview. Can’t wait—this will be powerful! I’m excited to see the capabilities grow for visual analysis!

    I’ve built a lot of tools to enable some pretty robust mapping in Google Earth from Excel data. Makes me wonder how future versions of Excel may be able visually represent data not only in charts, but also in maps… Anyone have any thoughts?

  5. JeanMarc says:

    Hello. I used the SfE add-in to create some dashboards. My colleagues were impressed but the downside is that most people where I work don’t know how to install Excel add-ins, so I’m about the only one to use them. Excel 2010 sparklines really look easy to use. I just hope that we will soon swith to Excel 2010 but knowing of fast our IT moves, I think I’ll have to wait 4-5 years… Thanks.

  6. M says:

    Cool. Unfortunately, I don’t have Office at home. I wish open office has this feature

  7. Hui… says:

    Here’s another Quick Tip for Sparklines
    ===
    You can have a sparkline and a number in the same cell
    Setup your sparkline as normal, except make the data range 3 or 4 cells longer than you want
    If you want a number on the left side insert 3 or 4 =na() in the spare cells to the left of the data
    In the sparkline cell type your reference to your data as normal
    Good for highlighting the starting or finishing value of the sparkline

  8. Hui… says:

    Here’s another Quick Tip for Sparklines
    ===
    You can also use conditional formatting with sparklines and my previous tip
    So a single cell can display 3 pieces of information:
    + a Sparkline,
    + a Value and
    + a Format

  9. dan l says:

    I get some decent mileage out of sparklines as it is. The biggest difficulty is that with SFE is distribution. I hope that excel 2010 solves some of that.

    I do wish they’d put some more options in there——for example the only pie chart that I really ever make use of is the SFE pie which is small enough to get a point across effectively yet small enough to not take up a whole page.

    Incidentally: if you don’t mind getting a little cute you can do a pretty good impression of the ‘Consumer Reports’ rating system (http://accurateautoadvice.com/images/cr_ratings.jpg) with those little things. It has disadvantages obviously.

    Chandoo, the stock chart arrows — in 2010 do you do those with the char map and conditional formatting? Or is that now a built in feature?

  10. @Hui.. Excellent tip about using blank cells in the beginning & end to add labels… I didnt know about that.

    However, I would not encourage anyone to add all 3 — value, CF and sparkline to same cell, as this could create some really complex visualization and take a ton of time to understand. But it may some interesting applications.

    @Dan l … The arrows are part of CF in Excel 2010 (and if I am not wrong, they are in 2007 too).

    Reg. your link to consumer report, we have done something similar in excel a while ago — checkout http://chandoo.org/wp/2008/10/07/excel-radar-charts-replacement-spot-matrix-download-template/

    @Subash.. I am not sure what it is..

  11. Tom says:

    Good review — thanks Chandoo!

    I like to miniaturize regular charts to allow for the most flexibility. I’ve written a fairly simple macro with automates the process (it places the chart to the right of the data series that I select, and it also links the chart to the cell so that it resizes when the cell is resized). I agree that this new feature will bring the idea to the masses and 1) provide more widespread acceptance and 2) promote more innovation in their implementation.

  12. Rob says:

    Good overview Chandoo. I look forward to finding a use for these…whenever I can get my hands on Excel 2010.
    Rob

  13. Michael Pennington says:

    Great article, as always. I have tried using BonaVista and the free sparklines add in prior to Excel 2010 and find that most of the times when I run into issues—it is related to the scale. Having to load the custom fonts is also problematic (obviously, not in Excel 2010). I believe that the win-loss charts are the sparklines that convey information to the user in the most effective manner. The line and area charts are just too small to convey anything that isn’t an incredibly dramatic shift or very linear info. For example, the monthly net sales by region you show above, looks very good, but it is difficult to glance at and really understand what happened, without going back to the numbers. I am glad they are going more mainstream, I hope to start utilizing them in dashboards more frequently, but as it stands, in-cell charting is still my preferred method. Keep up the great work, Chandoo!

  14. Great job as always. You are very thorough and answer all of my questions. I appreciate your posts.

  15. dhoff says:

    Tom,

    Can you share your VBA code to your macro that resizes the chart when the cell is resized?

    Thanks!

  16. Bruce Spong says:

    This is the first I’ve seen sparklines – thanks for the overview. Can’t wait – this is powerful! I’m excited to see the capabilities grow for visual analysis! Makes me look good, too, by adding new features to our dashboards. I look forward to finding a use for these…whenever I can get my hands on Excel 2010~
    Cheers~

  17. Alexandra says:

    I’ve never heard of this before. I’m interested in better ways of presenting data visually, and look forward to trying this out as soon as I get the chance.

  18. @Dan l… I am wrong. the up down arrows are new in Excel 2010. In Excel 2007, we can however use font symbols to get similar effect.

    @all.. thanks for the comments. I am pretty excited about this new feature too…

  19. Squiggler says:

    Interesting you can also use Conditional formatting/Sparklines to create progress meters, by simply setting up Min/Value/Max and graphing them using the formatting or sparklines depending on vertical or horizontal orientation. (sparkline has to be one cell, formatting 3 cells) then simply use copy and paste as linked picture, with the sparklines you have to crop out the min and max, I then group the pasted picture with shapes, lines etc to make the chart! which is then re-sizable!

  20. Scaffdog845 says:

    Sparklines rock! Looks like Microsoft may actually be listening to what the user community needs instead of giving us what they think we need.

  21. CMT says:

    Thanks, Chandoo!

  22. An observation regarding bars/column in the spark line version — in normally sized charts, bars/columns emphasizes individual values because of their visual weight. However, in the spark line version they do not seem to have the same type of weight — look at the table in the post showing the different type of spark lines. While one would normally not use bars to show patterns in the data , in the spark line version I have used them for that purpose. Would be interested to know the experience of other users.

  23. jocelyn says:

    hello I cant see how to get the graph with the ups/down triangles and percentage changes in sparklines as shown in the first example. How is that done as it looks as if these are in the same cell as the line chart

  24. @Jocelyn: I have used conditional formatting icons for that purpose. They are in separate cell. Only that I have removed cell borders and hidden grid lines so that everything looks smooth and merged.

  25. jocelyn says:

    Thanks for that Chandoo is there any chance to use your as a template as badly need something like yours to work with. If the template had all the formats you had dev it would be great please please

  26. Suresh says:

    Hi Chandoo,

    can u help me in preparation of MIS report of a manufacturing company in MS Excel.
    awaiting for ur reply

  27. Shawn says:

    I have Excel 2010 and see the Sparklines module in the ribbon, but it is grayed out, as if it is not enable. Do I require a different version or need to turn the feature on somehow?

  28. Hui… says:

    @Shawn, Make sure you have selected a number of adjacent cells that are suitable for charting, ie: Numbers only, Don’t include text

  29. Did you ever write the post that talked about how to add sparklines in a pivot table?

  30. Dann says:

    Hi Chandoo, I’m learning a lot, but I can´t practice and bring to life some exaples, specially the ones like this, because I’m using excel 2007, so I would love to win the excel 2010 H&S edition. By the way, your page has helped me a lot at work, reducing for exaple a two days of work in reports to a pair of hours. So my next step, is to create a dashboard integrating all data from every piece of work I have. Thanks!

  31. Dave Snyder says:

    Great feature — Maybe it’s time to upgrade from MS Office 2003 — long over due.

  32. James says:

    @Chandoo… Re: June 8, 2010 comment. I am trying to mimic your «smooth and merged» look since users cannot move the icon set to the right of the Sparkline. Since I cannot hide the gridline of just one cell, I colored the left border of the icon set column to white. But I still see the faint, thin white mark at the intersection of each column and row separator. How did you get yours so clean?

  33. […] more information about how to use sparklines, take a look at this blog post. TagsOffice […]

  34. Bob C. says:

    My son came to me for help with sparkline. I had never used it before but found it very interesting to use. Wish I had seen your explanation of it before experiencing the MS software. We did manage to get through it. By the way it does have 3-D.

  35. […] Debra tells how to setup sparklines for data that is in hidden cells. If you have not tried sparklines, you are missing out on one of the most fun, easy to use charting feature in Excel 2010 / 2013. Check out this tutorial to get started. […]

  36. misha says:

    Hi, I am not sure how to do it most effectively win pivot when the row vlues change according to slicers
    Thanks 

  37. […] can create this chart very easily with Excel 2010 sparklines. Line chart for productivity and win-loss chart for better or worse […]

  38. […] ????? ?????? ?? ??????? Insert -> Sparklines. ?? ??????? ????? ??? ????? ??? ??????? ???????? […]

  39. […] Some tips samples on how to create and use sparklines in Excel. More samples here. […]

  40. […] Algunos consejos de muestras sobre cómo crear y usar los mini gráficos en Excel. Más ejemplos aquí. […]

  41. […] In Google Spreadsheet you can make them using the =sparkline() formula. In Excel 2010 you can find it in the ribbon. […]

  42. sharif says:

    when I open excel I do not find the sparklines in the ribbon..! could you inform me how should I add it to the ribbon? on excel 2007

  43. Ravi Agrawal says:

    Superb Article and explanantions……i will certainly use these sparklines in my dashboards and presentations

  44. […] Learn more about these cool sparklines along with some good tips & tricks for using them. […]

  45. Wendy Farkas says:

    When you view 2 or 3 lines, you can compare trends (up/down). Don’t you think that when you have a bunch of them, you can’t see the forest for the trees?

    In your illustration I see a bunch of lines. I’d be looking for markers or line colors or arrow characters to clue me. Is there such a thing as diminishing returns / too much of a good thing?

  46. […] Sparkline: Is a small chart that is used to identify trends within tables. They are also known as micro charts. You can find more information about sparkline here. […]

  47. […] § Excel 2010 Sparklines Tutorial […]

  48. Nicole says:

    Pls I need this for college help

    • @Nicole
      What is the question?

  49. […] Instead of running correlation statistical tests (generating a correlation coefficient), he suggests using visual charts to stack different factors on top of each other, using the same timeline on the x-axis. If you can visually see how variation aligns with other factors, then there might be a correlation. I’ve seen these simplified charts in Excel, called sparklines. Learn more about sparklines >>> […]

  50. Maria says:

    Great but they cannot be vertical, or am I wrong?

    • Duncan Williamson says:

      They can be vertical … if you know how to take a screenshot and crop it. Alternatively, even better, use the camera tool and learn how to swivel!

  51. vivian.liu says:

    I couldn’t find out the add-in Sparklines for Excel in Chinese website, would you pls help share the download link, many thanks.

  52. Duncan Williamson says:

    I see this page is originally from 2010 but you revived it!

    I have done the following with Sparklines, in addition to what you have written:

    a very passable Histogram, with no spaces between the columns;
    Sparklines with values/text AND up-down arrows and background formatting;
    two sets of data, even three and more;
    use them together with the camera tool;
    scattergraphs;
    dynamic horizontal and vertical axes

    Other odds and ends!

    I not really a creative person but Sparklines appeal to me!

    • Prakash says:

      Hi Duncan,

      Do you have example that you can share in a link? What other resource would you recommend to learn more on what you posted.

      Thanks

        • Thanks for sharing these links Duncan. Awesome techniques indeed.

  53. Thanks for all those informations about Sparklines !!!

  54. Karthik says:

    Someone plz share Chandoo’s article on «Adding SparkLines inside Pivot».. First time I dont see a hyperlink for something tats interesting in Chandoo’s post 🙂

Leave a Reply

Содержание:

  1. Что такое спарклайны?
  2. Типы спарклайнов в Excel
  3. Вставка спарклайнов в Excel
  4. Редактирование набора данных существующих спарклайнов
  5. Работа со скрытыми и пустыми ячейками
  6. Изменение типа спарклайна
  7. Выделение точек данных в спарклайнах
  8. Цвет и стиль спарклайнов
  9. Добавление оси
  10. Группировать и разгруппировать спарклайны
  11. Удаление спарклайнов

Функция спарклайнов была представлена ​​в Excel 2010.

В этой статье вы узнаете все о Excel Sparklines и увидите несколько полезных примеров.

Что такое спарклайны?

Спарклайны — это крошечные диаграммы, которые находятся в ячейке в Excel. Эти диаграммы используются для отображения тенденции во времени или изменения набора данных.

Вы можете использовать эти спарклайны, чтобы улучшить внешний вид ваших мягких данных, добавив этот слой визуального анализа.

Хотя спарклайны представляют собой крошечные диаграммы, они имеют ограниченную функциональность (по сравнению с обычными диаграммами в Excel). Несмотря на это, Sparklines великолепны, так как вы можете создавать их, легко отображая тенденцию (и даже выбросы / максимумы-минимумы) и делать ваши отчеты и панель инструментов более удобными для чтения.

В отличие от обычных диаграмм, спарклайны не являются объектами. Они находятся в ячейке на заднем плане этой ячейки.

Типы спарклайнов в Excel

В Excel существует три типа спарклайнов:

  • Линия
  • Столбец
  • Выигрыш-проигрыш

На изображении ниже я создал пример всех этих трех типов спарклайнов.

Первый в G2 — это спарклайн линейного типа, в G3 — тип столбца, а в G4 — тип выигрыша-проигрыша.

Вот несколько важных вещей, которые нужно знать о Excel Sparklines

  1. Спарклайны являются динамическими и зависят от базового набора данных. Когда базовый набор данных изменяется, спарклайн обновляется автоматически. Это делает его полезным инструментом при создании панелей мониторинга Excel.
  2. Размер спарклайнов зависит от размера ячейки. Если вы измените высоту или ширину ячейки, спарклайн изменится соответствующим образом.
  3. Пока в ячейке есть спарклайн, вы также можете ввести в него текст.
  4. Вы можете настроить эти спарклайны — например, изменить цвет, добавить ось, выделить максимальные / минимальные точки данных и т. Д. Позже в этом руководстве мы увидим, как это сделать для каждого типа спарклайнов.

Примечание: Спарклайн выигрыша-проигрыша похож на спарклайн столбца, но он не показывает величину значения. Его лучше использовать в ситуациях, когда результат является двоичным, например, Да / Нет, Истина / Ложь, Голова / Хвост, 1 / -1 и т. Д. Например, если вы строите график, шел ли дождь за последние 7 дней или нет, вы можете построить график выигрыша-проигрыша с 1 для дней, когда шел дождь, и с -1 для дней, когда его не было. В этом руководстве все, что описано для спарклайнов столбцов, также можно применить к спарклайнам выигрыша-проигрыша.

Теперь давайте рассмотрим каждый из этих типов спарклайнов и все настройки, которые вы можете с ним сделать.

Вставка спарклайнов в Excel

Допустим, вы хотите вставить спарклайн (как показано ниже).

Вот шаги, чтобы вставить спарклайн в Excel:

  1. Выберите ячейку, в которой вы хотите создать спарклайн.
  2. Щелкните вкладку Вставка.
  3. В группе «Спарклайны» выберите параметр «Линия».
  4. В диалоговом окне «Создать спарклайны» выберите диапазон данных (в данном примере A2: F2).
  5. Щелкните ОК.

Это вставит спарклайн в ячейку G2.

Чтобы вставить спарклайн «Столбец» или «Выигрыш-проигрыш», необходимо выполнить те же действия, описанные выше, и выбрать Столбцы или Выигрыш-проигрыш вместо строки (на шаге 3).

Хотя приведенные выше шаги вставляют в ячейку базовый спарклайн, вы можете сделать некоторые настройки, чтобы сделать его лучше.

Выбрав ячейку со спарклайном, вы заметите, что контекстная вкладка — Дизайн инструментов Sparkline — становится доступным. На этой контекстной вкладке вы найдете все параметры настройки для выбранного типа спарклайна.

Редактирование набора данных существующих спарклайнов

Вы можете редактировать данные существующего спарклайна с помощью параметра «Редактировать данные». Когда вы щелкаете раскрывающееся меню «Редактировать данные», вы получаете следующие параметры:

  • Изменить местоположение и данные группы: Используйте это, если вы сгруппировали несколько спарклайнов и хотите изменить данные для всей группы (группировка рассматривается позже в этом руководстве).
  • Редактировать данные одного спарклайна: Используйте это, чтобы изменить данные только для выбранного спарклайна.

Щелкнув любую из этих опций, вы откроете диалоговое окно «Редактировать спарклайны», в котором вы можете изменить диапазон данных.

Работа со скрытыми и пустыми ячейками

Когда вы создаете линейный спарклайн с набором данных, который имеет пустую ячейку, вы заметите, что спарклайн показывает пробел для этой пустой ячейки.

В приведенном выше наборе данных отсутствует значение апреля, что создает разрыв в первом спарклайне.

Вот пример отсутствия точки данных в спарклайне столбца.

Вы можете указать, как вы хотите обрабатывать эти пустые ячейки.

Вот шаги

  1. Щелкните ячейку со спарклайном.
  2. Щелкните вкладку «Дизайн» (контекстная вкладка, которая становится доступной только при выборе ячейки со спарклайном).
  3. Щелкните параметр «Редактировать данные» (щелкните текстовую часть, а не ее значок).
  4. В раскрывающемся списке выберите вариант «Скрытые и пустые ячейки».
  5. В открывшемся диалоговом окне выберите, хотите ли вы отображать
    • Пустые ячейки как пробелы
    • Пустые ячейки как ноль
    • Соедините точки данных до и после линии [этот параметр доступен только для спарклайнов линии].

Если данные для спарклайна находятся в скрытых ячейках, вы можете установить флажок «Показать данные в скрытых строках и столбцах», чтобы убедиться, что данные из этих ячеек также отображаются на графике. Если вы этого не сделаете, данные из скрытых ячеек будут проигнорированы.

Ниже приведен пример всех трех вариантов линейного спарклайна:

  1. Ячейка G2 — это то, что происходит, когда вы решаете показать зазор в спарклайне.
  2. Ячейка G3 — это то, что происходит, когда вы выбираете вместо этого показывать ноль.
  3. Ячейка G2 — это то, что происходит, когда вы выбираете отображение непрерывной линии, соединяя точки данных.

То же самое можно сделать и со спарклайнами столбцов и выигрышей-проигрышей (но не с опцией подключения точек данных).

Изменение типа спарклайна

Если вы хотите быстро изменить тип спарклайна — от строки к столбцу или наоборот, вы можете сделать это, выполнив следующие действия:

  • Щелкните спарклайн, который нужно изменить.
  • Перейдите на вкладку «Дизайн спарклайнов».
  • В группе Тип выберите нужный спарклайн.

Выделение точек данных в спарклайнах

Хотя простой спарклайн показывает тенденцию во времени, вы также можете использовать некоторые маркеры и выделения, чтобы сделать его более значимым.

Например, вы можете выделить максимальную и минимальную точки данных, первую и последнюю точку данных, а также все отрицательные точки данных.

Ниже приведен пример, в котором я выделил максимальную и минимальную точки данных в спарклайне строки и столбца.

Эти параметры доступны на вкладке «Инструменты спарклайна» (в группе «Показать»).

Вот различные доступные варианты:

  1. Верхняя / нижняя точка: Вы можете использовать любой из них или оба, чтобы выделить максимальную и / или минимальную точку данных.
  2. Первая / Последняя точка: Вы можете использовать любой из них или оба, чтобы выделить первую и / или последнюю точку данных.
  3. Отрицательные моменты: Если у вас есть отрицательные значения данных, вы можете использовать эту опцию, чтобы выделить их все сразу.
  4. Маркеры: Этот параметр доступен только для спарклайнов. Он выделит все точки данных маркером. Вы можете изменить цвет маркера, используя параметр «Цвет маркера».

Цвет и стиль спарклайнов

Вы можете изменить внешний вид спарклайнов, используя параметры стиля и цвета.

Он позволяет изменять цвет спарклайна (линий или столбцов), а также маркеры.

Вы также можете использовать готовые варианты стилей. Чтобы получить полный список опций. щелкните значок раскрывающегося списка в правом нижнем углу поля стиля.

Совет профессионала: Если вы используете маркеры для выделения определенных точек данных, рекомендуется выбрать светлый цвет линии и яркий и темный маркер (в большинстве случаев лучше всего подходит красный).

Добавление оси

Когда вы создаете спарклайн в форме по умолчанию, он показывает самую низкую точку данных внизу, а все остальные точки данных относятся к ней.

В некоторых случаях вы можете не захотеть, чтобы это было так, поскольку кажется, что это показывает огромные различия.

В приведенном ниже примере отклонение составляет всего 5 пунктов (где весь набор данных находится между 95 и 100). Но поскольку ось начинается с самой низкой точки (то есть 95), вариация выглядит огромной.

Эта разница намного более заметна в спарклайне столбца:

В спарклайне столбца выше может показаться, что значение января близко к 0.

Чтобы отрегулировать это, вы можете изменить ось в спарклайнах (сделать так, чтобы она начиналась с определенного значения).

Вот как это сделать

  1. Выберите ячейку со спарклайном (ами).
  2. Перейдите на вкладку «Дизайн спарклайновых инструментов».
  3. Нажмите на опцию Axis.
  4. В раскрывающемся списке выберите Пользовательское значение (в параметрах минимального значения вертикальной оси).
  5. В диалоговом окне Параметры вертикальной оси спарклайна введите значение 0.
  6. Щелкните ОК.

Это даст вам результат, как показано ниже.

Установив таможенную стоимость на 0, мы заставили спарклайн начинать с 0. Это дает истинное представление об изменении.

Примечание. Если в наборе данных есть отрицательные числа, лучше не устанавливать ось. Например, если вы установите для оси значение 0, отрицательные числа не будут отображаться в спарклайне (поскольку он начинается с 0).

Вы также можете сделать ось видимой, выбрав параметр «Показать ось». Это полезно только тогда, когда у вас есть числа, пересекающие ось. Например, если у вас установлена ​​ось на 0 и есть как положительные, так и отрицательные числа, тогда ось будет видна.

Группировать и разгруппировать спарклайны

Если у вас есть несколько спарклайнов в вашем отчете или на панели мониторинга, вы можете сгруппировать некоторые из них вместе. Это позволяет легко вносить изменения во всю группу, а не делать это по одному.

Чтобы сгруппировать спарклайны

  1. Выберите те, которые хотите сгруппировать.
  2. Перейдите на вкладку «Дизайн спарклайнов».
  3. Щелкните значок группы.

Теперь, когда вы выбираете любой из сгруппированных спарклайнов, он автоматически выбирает все из этой группы.

Вы можете разгруппировать эти спарклайны с помощью параметра «Разгруппировать».

Удаление спарклайнов

Вы не можете удалить спарклайн, выбрав ячейку и нажав клавишу удаления.

Чтобы удалить спарклайн, выполните следующие действия:

  1. Выделите ячейку со спарклайном, который вы хотите удалить.
  2. Перейдите на вкладку «Дизайн спарклайнов».
  3. Щелкните опцию Очистить.

Like this post? Please share to your friends:
  • What is spanish word for food
  • What is range object in excel vba
  • What is spanish word for english
  • What is range name in excel
  • What is sorting in excel