How to Use Sparkline in Google Sheets [4 Use Cases]

How to use sparkline in google sheets 20
Key Takeaways: How to Use Sparkline in Google Sheets

To Use Sparkline in Google Sheets

  1. Start the function.
  2. Give the data range.
  3. Specify the color if needed.
  4. Press the Enter key.

OR

  1. Start the function.
  2. Give the data range.
  3. Specify the chart type.
  4. Give the min. & max. Range.
  5. Specify the color of the bar.
  6. Press the Enter key.

OR

  1. Start the function.
  2. Give the data range.
  3. Specify the chart type.
  4. Give the min. Y-axis value.
  5. Specify the color of the columns.
  6. Press the Enter key.

OR

  1. Start the function.
  2. Give the data range.
  3. Specify the chart type.
  4. Specify the negcolor.
  5. Specify the color.
  6. Press the Enter key.

Welcome to this tutorial. In this guide, you will learn how to use Sparkline in Google Sheets. If you are a Google Sheets user and are looking for the finest way to represent your data without getting into the complexity of a full chart, you can use the SPARKLINE function in Google Sheets. Sparkline creates miniature charts in Google Sheets that you cannot download as an image or PDF, advance customization or handling large-scale data by more beneficial when having little data and wanting to quickly show a trend, seasonal increase, or decrease.

Here we are with the complete guide on how to use Sparkline in Google Sheets.

Benefits of Sparkline in Google Sheets

The Sparkline function of Google Sheets allows you to create a miniature chart of the cell instead of a big image chart. They are helpful when you are creating a dashboard and want to show a trend, seasonal increase or decrease, or outliers visually.

It varies in different conditions as well, you can not only show a sparkline in Google Sheets with the Sparkline function but also create a bar chart, column chart, and win & loss chart.

How to Use Sparkline in Google Sheets

The Sparkline function can be used in various conditions as you can create a Sparkline, bar chart, column chart, and Win & loss chart with the help of the Sparkline function. It depends on your criteria and which condition you want to use with the Sparkline function. Here we will discuss all of them in the following tutorial.

  1. Create a Sparkline using the Sparkline function
  2. Create a Bar chart using the Sparkline function
  3. Create a Column chart using the Sparkline function
  4. Create a Win & Loss using the Sparkline function

1. Create a Sparkline using the Sparkline Function

Sparkline or a Line chart is mostly useful to display data that changes over consistent time intervals. If you want to insert a Sparkline into the Google Sheets cell, then you can make it possible with the Sparkline function.

Step 1

Here, we see in the following example, that we have data on sales on different days in different stores. Now, I want to analyze the variance in the sales of all days.

How to use sparkline in google sheets 1

Step 2

Let’s put the Sparkline in the cell to monitor the variance of the sales per day. To put Sparkline in Google Sheets, here we will use the Sparkline function. To run the function, we just need to write the Sparkline with an equal sign.

How to use sparkline in google sheets 2

Step 3

If you want to display a simple Sparkline in the cell then there is only one argument, just give the data range of sales per day as I have given below.

How to use sparkline in google sheets 3

Step 4

The result is in front of you, the Sparkline has been inserted easily in the cell through which you can analyze the ups and downs of the sales per day.

How to use sparkline in google sheets 4

Step 5

If you look at the above cell, there is a simple Sparkline in black but if you want to display any colorful Sparkline then you can also add the condition in the Sparkline syntax in the following manner.

How to use sparkline in google sheets 5

=Sparkline (C4:H4{“color”,”Green”})

Note: We will use the curly brackets to add the condition in the syntax.

Step 6

Here, you can see now, that you have gotten the Sparkline in Green.

How to use sparkline in google sheets 6

Step 7

In the same way, you can add any color of the Sparkline in Google Sheets as can be seen in the following example.

How to use sparkline in google sheets 7

2. Create a Bar chart using the Sparkline Function

In the example of the Sparkline function, we will learn to make a bar chart in Google Sheets with the help of using the Sparkline function.

Step 1

If we look at the data in the following example, we have a progress report for several assignments for which we will create progress bars with the help of the Sparkline function.

How to use sparkline in google sheets 8

Step 2

First, we will run the function by just writing the Sparkline with an equal sign then we will give the range of data value of that we are making progress bar as I have given in the following picture.

How to use sparkline in google sheets 9

Step 3

After giving the data value, we will have to specify chart type, as we need to create a bar chart, so here we will write in the following pattern, “Chart type“,” Bar” as written in the following picture.

How to use sparkline in google sheets 10

Step 4

After specifying the chart type, in the next argument, we will have to give the maximum and minimum range values where for the maximum value we will use “1” and for the minimum “0“.

How to use sparkline in google sheets 11

Step 5

You can also add another argument in the syntax to specify the color of the Bar. The pattern to specify the color will be “Color“, or “Green“. You can select any color instead of green according to your preference.

How to use sparkline in google sheets 12

Final Formula

=SPARKLINE(D4, {“charttype”,”bar”;”max”,1;”min”,0; “color1″,”green”})

Step 6

Now, with just one click to go, by just pressing the Enter key, we will get the progress bar in the Google Sheets cell with the hell of the Sparkline function.

 

How to use sparkline in google sheets 13

Step 7

Just drag the formula over to the other cell so you can easily analyze the progress of any project or assignment.

How to use sparkline in google sheets 14

3. Create a Column chart using the Sparkline Function

In the example of the Sparkline function, we will learn to make a column chart in Google Sheets with the help of the Sparkline function.

Step 1

In the following example, we have the same data on sales on different days by different stores. Now, I am going to analyze the sales per day. Let’s create a column chart with the help of the Sparkline function to analyze data.

How to use sparkline in google sheets 15

Step 2

First, we will write the Sparkline with an equal sign into the cell to start the function, and then we will give the data range that we are analyzing in the following data as written below.

How to use sparkline in google sheets 16

Step 3

Similarly, as above, after giving the data range the next argument of the Sparkline syntax will be the specification of chart type, as we are creating a “Column Chart” we will write the chart type “Column” in the following pattern.

How to use sparkline in google sheets 17

Step 4

In the Sparkline function, while creating a column chart, we need to tell the initial value of the y-axis. As in the following example, we have written “ymin:0”.

How to use sparkline in google sheets 18

Step 5

Now, just tell the color of the column that you want to display in the cell. Here I have described “Green” as highlighted below.

How to use sparkline in google sheets 19

Final Formula

=SPARKLINE(C4:C6), {“charttype”,”column”;”ymin”,0;”color”,”green”}

Step 6

In the same, you can create any color of column chart by the Sparkline function as can be seen below, and can easily analyze monitor data.

How to use sparkline in google sheets 20

4. Create a Win & Loss using the Sparkline Function

If you need to compare a series of values against each other, then using the SPARKLINE function to draw a win & loss chart, like the one below and one up, is the best option.

Step 1

Here we have this type of data where we have the values of profit from total sales. Let’s see how we can analyze win & loss by the Sparkline function.

How to use sparkline in google sheets 21

Step 2

Start the Sparkline function and give the data reference here we are looking at win & loss for profit, so we have provided the cell address of Profit

How to use sparkline in google sheets 22

Step 3

In the next step, we will specify the chart type, I have written the chart type “win-loss“.

How to use sparkline in google sheets 23

Step 4

When you get the result, you may find two different criteria win or lose, to differentiate these values, we will specify them by different colors. So here, we will write “negcolor”, “red” to display the loss value in red.

How to use sparkline in google sheets 24

Step 5

Similarly, the profit value to green as highlighted in the following picture.

How to use sparkline in google sheets 25

Step 6

You will get the following result as can be seen in the following picture through which you can easily analyze the win-loss from your data.

How to use sparkline in google sheets 26

Final Formula:

=SPARKLINE(J4:J6), {“charttype”,”winloss”;”negcolor”,”red”;”color”,”green”})

Frequently Asked Questions

Are Sparkline and DAYS function related in Google Sheets?

Yes, Sparkline and DAYS function are related in Google Sheets. Using the days function in google sheets allows you to calculate the number of days between two dates. This functionality can be useful when creating Sparklines, which are data visualizations that condense numerical trends into small charts. By utilizing the DAYS function, you can accurately analyze and display time-based data in your Sparkline charts.

Conclusion

I hope you have understood the Sparkline function of Google Sheets with the above article on how to use Sparkline in Google Sheets. If you want to learn more about Google Sheets, then go through our site and find more exciting tutorials.

Content Protection by DMCA.com

M. Shaiq Ansari

Hi, I am Shaiq, I am a highly skilled technical writer working full-time for Office Demy. I am specialized in Google Workspace and Microsoft Office applications. With a background in Software Engineering, I possess a deep understanding of the intricate functionalities and features of these productivity tools. Connect me on Linkedin https://www.linkedin.com/in/shaiq-ansari/

OfficeDemy.com
Logo
Enable registration in settings - general