What is SPARKLINE in Google Sheets?

SPARKLINE draws a miniature chart inside one cell from a row or column of numbers. Choose line, column, bar, or winloss types and pass an options object for color, axis, and markers. Dashboard tables use sparklines to show trend without full charts.

When to use it

Use SPARKLINE in scorecards where each row needs a quick trend: weekly sales, test pass rates, or inventory levels beside the current number.

When to skip it

Skip SPARKLINE when stakeholders need labeled axes, legends, or export-quality graphics. Build a normal chart on a dashboard tab instead.

How it works

  1. 1

    Select a numeric range, usually one row or column of values in chronological order.

  2. 2

    Enter =SPARKLINE(B2:M2) for a default line sparkline across twelve months.

  3. 3

    Add a second argument with charttype and color options in JSON-like syntax.

  4. 4

    Use "winloss" for binary outcomes and "column" for discrete period comparisons.

  5. 5

    Keep source cells as numbers, not text dates disguised as numbers, for consistent scaling.

  6. 6

    Adjust column width so the sparkline is visible but does not dominate the row.

Examples in Google Sheets

Monthly sales trend

=SPARKLINE(D2:O2, {"charttype","line";"color","#34a853"}) shows a green line beside each rep totals.

Win-loss streak

=SPARKLINE(results_row, {"charttype","winloss";"poscolor","green";"negcolor","red"}) marks W and L games.

Column micro chart

=SPARKLINE(B2:F2, {"charttype","column";"ymin",0}) compares five weekdays in one cell.

Build this without starting from a blank cell

Use a Better Sheets tool for SPARKLINE, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • Including blank text cells in the range, which breaks scaling or shows flat lines.
  • Using sparklines where full charts are required for executive reviews.
  • Forgetting ymin and ymax when small changes look flat on large absolute values.
  • Embedding sparklines in narrow columns so the graphic is invisible.
  • Pointing at a range that grows without updating the formula reference.

Frequently asked questions

Can SPARKLINE use multiple rows?
Typically one row or column per sparkline. Use separate formulas per row in a table.
SPARKLINE colors?
Pass color, negcolor, and poscolor in the options argument.
Why is my sparkline flat?
Values may be identical, text not numbers, or ymin/ymax hide variation.
SPARKLINE vs chart?
Sparklines are in-cell thumbnails. Charts are separate objects with axes and labels.
Can SPARKLINE show markers?
Some line options support markers. Check current SPARKLINE options documentation.
SPARKLINE with negative numbers?
Line and column types handle negatives. Winloss expects binary wins and losses.
Copy sparklines down?
Drag the formula so each row points at its own numeric range.

Related Tutorials

Watch how SPARKLINE works

Browse more tutorials
Add Cool Responsive Graphs to Your Stock Tracking Sheets

Add Cool Responsive Graphs to Your Stock Tracking Sheets

Create little graphs with SPARKLINE() super easy!
Create a Progress Bar - Make Progress Bars with Sparkline: Part 1

Create a Progress Bar - Make Progress Bars with Sparkline: Part 1

Let's make a progress bar in Google Sheets.
Make Color Changing Progress Bars - Make Progress Bars with Sparkline: Part 4

Make Color Changing Progress Bars - Make Progress Bars with Sparkline: Part 4

Create awesome progress bars with sparkline formula. You can make progre...
10 Things I Hate About Your Spreadsheets

10 Things I Hate About Your Spreadsheets

10 Things I Hate About Your Spreadsheets and how to fix them. Here is a ...
Communicate Better with Gridlines, Border Styles, and Border Colors - Google Sheets

Communicate Better with Gridlines, Border Styles, and Border Colors - Google Sheets

Make your Google Sheets visually appealing and easier to understand with...
3 Free Tools to Make Your Google Sheets Better

3 Free Tools to Make Your Google Sheets Better

3 add-ons you can install right now and your Google Sheets life is bette...

Related blog posts

Guides that explain SPARKLINE in more depth.

Browse the blog

Related glossary terms

Done reading about SPARKLINE?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.