Fonctionnement détaillé.
SPARKLINE est une fonction indispensable d'Excel. Generates a miniature chart within a single spreadsheet cell. Elle permet d'automatiser vos tableaux, fiabiliser vos calculs et gagner un temps précieux au quotidien dans vos feuilles de calcul.
Syntaxe.
Notation Standard Excel=SPARKLINE(data, [options])Arguments.
Détail de l'ensemble des paramètres acceptés par cette fonction.
The range of numbers to chart.
Exemple :A2:D2Optional key-value parameters enclosed in curly brackets (e.g. charttype, color).
Exemple :{"charttype", "bar"}Exemple pas à pas.
Cas d'usage concretQuarterly Revenue Trend
Render an in-cell trendline showing performance across Q1 to Q4.
| Q1 | Q2 | Q3 | Q4 | Annual Trend |
|---|---|---|---|---|
| 120 | 180 | 160 | 240 | — |
=SPARKLINE(A2:D2)Evaluates SPARKLINE over the sample table cells, placing the verified output in cell E2.
Générateur de formule.
Ouvrir l'assistant completPersonnalisez les champs ci-dessous pour générer une formule prête à être copiée dans votre classeur.
=SPARKLINE()Nature du résultat produit.
Returns "[Sparkline: 4 points]" based on sample evaluation criteria and active cell references.
Bonnes Pratiques
- Set {"charttype", "bar"; "max", 100} to render progress completion meters in dashboard tables.
Erreurs à Éviter
- Google Sheets specific formula. In Excel, sparklines are inserted via the Insert ribbon rather than cell formulas.
Compatibilité par logiciel et version.
Vérification effectuée selon les moteurs de calcul officiels de Microsoft et Google.
In Microsoft Excel, sparklines are embedded graphical objects created via the Ribbon (Insert > Sparklines > Line/Column), not through a formula.
Not available as a worksheet formula function in Microsoft Excel. Entering =SPARKLINE() in Excel returns a #NAME? error.
Native Google Sheets function that draws miniature in-cell charts (line, bar, column, winloss) directly from a formula.
Questions fréquentes.
Questions TechniquesCan I use SPARKLINE across different worksheets in Excel?↓
Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =SPARKLINE(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.
What is the most common reason for errors in SPARKLINE?↓
Google Sheets specific formula. In Excel, sparklines are inserted via the Insert ribbon rather than cell formulas.
Does SPARKLINE work in Microsoft Excel?↓
No. SPARKLINE is a proprietary Google Sheets function and is not supported in Microsoft Excel. Recommended Excel alternative: In Microsoft Excel, sparklines are embedded graphical objects created via the Ribbon (Insert > Sparklines > Line/Column), not through a formula.