Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
Can you conditional format a sparkline in Google Sheet? - Excel Tips and Tricks
15 Views • Jul 02, 2025
Description
Color SPARKLINE Chart With Conditions
1) Select cell G3.
2) =SPARKLINE(COUNTIF(B3:F3,TRUE),
{"CHARTTYPE","BAR";
"MAX",5;
"COLOR1",
IFS(COUNTIF(B3:F3,TRUE)=5,"GREEN")
})
3) Apply to all rows
Here's a breakdown of the different components of the formula:
COUNTIF(B3:F3, TRUE) counts the number of cells in the range B3:F3 that contain the value TRUE.
{"CHARTTYPE","BAR";"MAX",5;"COLOR1",IFS(COUNTIF(B3:F3,TRUE)=5,"GREEN")} specifies the options for the SPARKLINE function, including the chart type (BAR), the maximum value for the chart (5), and the color of the chart based on the count of TRUE values in the range.
The IFS function is used to determine the color of the bar chart based on the count of TRUE values in the range:
If the count is less than or equal to 2, the color is set to red.
If the count is between 3 and 4 (inclusive), the color is set to orange.
If the count is 5 or greater, the color is set to green.
Can you conditional Format a sparkline?,Can you change the color of a sparkline in Google Sheets?,How do I color conditional formatting in Google Sheets?,sparkline color,sparkline conditional formatting google sheets,
google sheets sparkline progress bar with text,google sheets sparkline examples,google sheets sparkline color options,sparkline with labels google sheets,sparkline conditional formatting google sheets,google sheets sparkline options,sparkline formula google sheets,how to use sparkline in google sheets,
More from User
Create Interactive Candlestick Charts in Excel with dynamic ticker - Excel Tips and Tricks
ExcelTips247
Create Interactive Candlestick Charts in Excel - Excel Tips and Tricks
ExcelTips247
Create Interactive Candlestick Charts in Excel - Excel Tips and Tricks
ExcelTips247
How do you create a choose function in Excel? - Excel Tips and Tricks
ExcelTips247
Finding values that only appear once in column in Excel - Excel Tips and Tricks
ExcelTips247
Custom Sort Rows in Excel - Excel Tips and Tricks
ExcelTips247
Related Videos
Google Sheet Shortcut: How to Paste Without Formatting - Excel Tips and Tricks
ExcelTips247
Track Project Progress Using SPARKLINES and COUNTIF in Google Sheet - Excel Tips and Tricks
ExcelTips247
Color Banding In Google Sheets - Excel Tips and Tricks
ExcelTips247
Remove Gridlines Google Sheets - Excel Tips and Tricks
ExcelTips247
How to add a search bar with contains substring in Google Sheet - Excel Tips and Tricks
ExcelTips247
How to change color of checkbox in Google Sheets - Excel Tips and Tricks
ExcelTips247