ExcelFormulas logoExcelFormulas.
Demander à l'IA
Google SheetsVérifié par QA

SPARKLINE.

Generates a miniature chart within a single spreadsheet cell.

Google Sheets
Google Sheets

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])
Conseil : Les arguments entre crochets [comme_ceci] sont facultatifs ; tous les autres sont obligatoires.

Arguments.

Détail de l'ensemble des paramètres acceptés par cette fonction.

dataObligatoire

The range of numbers to chart.

Exemple : A2:D2
optionsFacultatif

Optional key-value parameters enclosed in curly brackets (e.g. charttype, color).

Exemple : {"charttype", "bar"}

Exemple pas à pas.

Cas d'usage concret

Quarterly Revenue Trend

Render an in-cell trendline showing performance across Q1 to Q4.

Q1Q2Q3Q4Annual Trend
120180160240—
Formule appliquée
=SPARKLINE(A2:D2)
Résultat attendu ::[Sparkline: 4 points]

Evaluates SPARKLINE over the sample table cells, placing the verified output in cell E2.

Générateur de formule.

Ouvrir l'assistant complet

Personnalisez les champs ci-dessous pour générer une formule prête à être copiée dans votre classeur.

Generated FormulaPrête à copier

Nature du résultat produit.

Returns "[Sparkline: 4 points]" based on sample evaluation criteria and active cell references.

Exemple produit ::[Sparkline: 4 points]
Type de sortie ::Text

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.
Matrice de Compatibilité

Compatibilité par logiciel et version.

Vérification effectuée selon les moteurs de calcul officiels de Microsoft et Google.

Excel✕
Non
Excel 365✕
Non
Excel 2021✕
Non
Excel 2019✕
Non
Google Sheets✓
Pris en charge
Historique des versions Excel

Not available as a worksheet formula function in Microsoft Excel. Entering =SPARKLINE() in Excel returns a #NAME? error.

Notes de compatibilité Google Sheets

Native Google Sheets function that draws miniature in-cell charts (line, bar, column, winloss) directly from a formula.

Questions fréquentes.

Questions Techniques
Can 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.