In this article:

How to Use SPARKLINE in Google Sheets to Make a Progress Bar

December 5, 2024

How to Use SPARKLINE in Google Sheets to Make a Progress Bar

To create a progress bar in Google Sheets using the SPARKLINE function, you can follow these steps:

Step 1: Enter Your Data 

Begin by entering the data that represents the progress for different tasks, typically as percentages in a column of your Google Sheet.

Step 2: Add the Progress Bars

In a new cell, use the SPARKLINE function to create a progress bar. 

The basic syntax for a green progress bar looks like this:

=SPARKLINE(B2,{"charttype","bar";"max",1;"min",0;"color1","green"})

Here, B2 refers to the cell containing the progress percentage for the first task. Adjust the cell reference for each task accordingly. Copy and paste this formula down the column to generate progress bars for each task listed.

google sheets sparkline progress bar

Step 3: Format the Progress Bars (Optional)

You can further customize the progress bars to change colors based on the task's completion level. For instance, you might want a green bar for tasks over 70% complete, yellow for tasks over 50%, and red for anything less. 

Here's an example formula that incorporates this logic:

=SPARKLINE(B2,{"charttype","bar";"max",1;"min",0;"color1",IF(B2>0.7,"green",IF(B2>0.5,"yellow","red"))})

This formula uses nested IF statements to determine the color of the progress bar based on the value in B2.

Shown below are the different colors of the progress bar, which should change depending on the value in B2:

At 45%:

sparkline progress bar google sheets

At 60%:

sparkline google sheets progress bar

At 90%:

google sheets sparkline progress bar with text

Remember to adjust the B2 cell reference for each specific task you're tracking. This method allows you to visually represent task completion levels directly within your spreadsheet, making it easier to monitor progress at a glance.

We hope that this article has helped you and given you a better understanding of how to use SPARKLINE in Google Sheets to make a progress bar. If you enjoyed this article, you might also like our articles on how to generate a random number from a list with no repeats in Google Sheets and how to make a grade calculator in Google Sheets.

Get Google Sheets productivity and automation tips delivered straight to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
We'll email you 1-3 times a week — and never share your information.

Work less, automate more!

Use Lido to connect your spreadsheets to email, Slack, calendars, and more to automate data transfers and eliminate manual copying and pasting. View all use cases ->