Show a Trend as a Mini Chart Inside a Cell
You track monthly sales per customer across twelve columns, and you want each row to show its trend at a glance — without building and positioning a chart for every single customer.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
SPARKLINE is a Google Sheets function that draws a miniature line chart inside the cell itself, plotting the row's twelve monthly values left to right — put one in every row and the whole table becomes scannable. A second argument customizes it with option pairs in curly braces: =SPARKLINE(B2:M2,{"charttype","column";"color","green"}) switches to tiny bars in green, and "winloss" or "bar" are also available. Excel offers the same visual but not as a formula — typing =SPARKLINE there returns #NAME?. In Excel you select the cells, go to Insert > Sparklines, and pick Line, Column, or Win/Loss; it's a menu feature attached to the cell, configured from the ribbon instead of by arguments.
When to use it
Use it wherever a number's direction matters more than its exact value: monthly sales per customer, weekly output per project, invoice volume per client — one glanceable trend per row of a summary table.
Common mistakes
Did this formula help?
Human-reviewedLast reviewed 2026-07-08