What the video covers
Show how to insert a basic SPARKLINE for a range and how to customize common options (chart type, color, min/max) via the formula. This guide covers simple use cases for dashboards and summaries; it does not cover every SPARKLINE option, scripting, or embedding charts outside cells.
Watch the video on YouTubeStep-by-step instructions
- Select a blank cell
Click the cell where you want the mini chart to appear. - Enter the SPARKLINE formula
Type =SPARKLINE( and then select the range of numeric cells you want to visualize, close the parentheses, and press Enter. Example: =SPARKLINE(A2:A10). The mini chart appears inside the cell. - Change the chart type
Add an options object to the formula to set the chart type. Example for a column sparkline: =SPARKLINE(A2:A10,{"charttype","column"}). (Use commas or semicolons depending on locale.) - Set color and style
Include options for color or line width in the same options object. Example: =SPARKLINE(A2:A10,{"charttype","line";"color","#2E86AB"}). Adjust values to a named color or hex code. - Define min and max to control scale
Force the vertical scale with min and max options so multiple sparklines share the same scale: =SPARKLINE(A2:A10,{"charttype","line";"min",0;"max",100}). This helps consistent comparison across rows. - Combine options as needed
You can include multiple settings together (charttype, color, linewidth, min, max, etc.) inside the options object. Ensure the syntax matches your spreadsheet locale and formula separators. - Use sparklines in dashboards
Place sparklines beside labels or KPI cells to give an instant visual cue. Copy the SPARKLINE formula down rows and use relative ranges (or anchor ranges) so each row shows the correct data.
Watch the video
Play tutorial
Why it matters
SPARKLINE provides compact visual summaries that save space, reduce clutter, and make trends or performance easier to scan in tables and dashboards.
Check your result
A successful result shows a small chart inside the target cell that reflects the chosen data range and responds when the source data changes.
Troubleshooting
– If the cell shows an error, check the SPARKLINE formula syntax and that the selected range contains numeric values. – If the sparkline looks flat, confirm the range includes varying values and adjust min/max options. – If the type isn’t what you expected, add or correct the "charttype" option in the formula. – If colors don’t apply, ensure you use the correct option name (e.g., "color") and a valid color value (hex or name).