0
0
Google Sheetsspreadsheet~20 mins

Sparklines (LINE, BAR, COLUMN) in Google Sheets - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Sparkline Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📊 Formula Result
intermediate
2:00remaining
What does this SPARKLINE formula display?
Given the data in cells A1:A5 as {5, 10, 15, 10, 5}, what type of sparkline will appear with this formula?

=SPARKLINE(A1:A5, {"charttype", "line"})
Google Sheets
=SPARKLINE(A1:A5, {"charttype", "line"})
AA line graph showing a peak at the middle value (15) and lower values at start and end
BA bar chart with 5 bars of equal height
CA column chart with decreasing heights from left to right
DAn error because the charttype is misspelled
Attempts:
2 left
💡 Hint
Think about what a line sparkline does with a range of numbers.
📊 Formula Result
intermediate
2:00remaining
What output does this BAR sparkline produce?
If cells B1:B4 contain {3, 6, 9, 12}, what will this formula show?

=SPARKLINE(B1:B4, {"charttype", "bar"})
Google Sheets
=SPARKLINE(B1:B4, {"charttype", "bar"})
AA line sparkline connecting points 3, 6, 9, 12
BA vertical column sparkline with 4 columns of equal height
CA blank cell because bar sparklines need numeric arrays
DA horizontal bar sparkline with 4 bars increasing in length from left to right
Attempts:
2 left
💡 Hint
Bar sparklines show horizontal bars representing values.
Function Choice
advanced
2:00remaining
Which SPARKLINE formula creates a column chart with red bars?
You want a column sparkline with red bars for data in C1:C6. Which formula is correct?
A=SPARKLINE(C1:C6, {"charttype", "column", "color", "red"})
B=SPARKLINE(C1:C6, {"charttype", "bar", "color", "red"})
C=SPARKLINE(C1:C6, {"charttype", "column", "color1", "red"})
D=SPARKLINE(C1:C6, {"charttype", "line", "color", "red"})
Attempts:
2 left
💡 Hint
Check the correct option name for bar color in column sparklines.
🎯 Scenario
advanced
2:00remaining
Troubleshoot why a sparkline shows a flat line
You entered =SPARKLINE(D1:D5, {"charttype", "line"}) but the sparkline shows a flat line even though data varies. What is the most likely cause?
AThe formula needs an extra argument to show variation
BThe data range D1:D5 contains text or blank cells instead of numbers
CThe sparkline only works with bar charts
DThe charttype 'line' is not supported in Google Sheets
Attempts:
2 left
💡 Hint
Sparklines need numeric data to show variation.
data_analysis
expert
3:00remaining
Analyze the effect of missing options in SPARKLINE
Given data in E1:E7 as {2, 4, 6, 8, 6, 4, 2}, what will this formula display?

=SPARKLINE(E1:E7)

Choose the best description of the sparkline output.
Google Sheets
=SPARKLINE(E1:E7)
AA column sparkline with bars increasing then decreasing
BAn error because charttype is missing
CA line sparkline showing a peak at 8 and symmetric shape
DA bar sparkline with 7 bars of equal length
Attempts:
2 left
💡 Hint
SPARKLINE defaults to a line chart if no charttype is given.