ExcelFormulas logoExcelFormulas.
Chiedi all'IA
Google SheetsVerificato da QA

SPARKLINE.

Generates a miniature chart within a single spreadsheet cell.

Google Sheets
Google Sheets

Come funziona nel dettaglio.

SPARKLINE è una funzione fondamentale di Excel. Generates a miniature chart within a single spreadsheet cell. Consente di velocizzare la gestione dei fogli di calcolo, ridurre gli errori e creare report automatizzati professionali.

Sintassi.

Notazione Ufficiale Excel
=SPARKLINE(data, [options])
Consiglio: Gli argomenti tra parentesi quadre [come_questo] sono facoltativi; tutti gli altri sono obbligatori.

Argomenti.

Di seguito l'elenco dettagliato di tutti i parametri accettati da questa funzione.

dataObbligatorio

The range of numbers to chart.

Valore d'esempio: A2:D2
optionsFacoltativo

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

Valore d'esempio: {"charttype", "bar"}

Esempio pratico.

Scenario di utilizzo

Quarterly Revenue Trend

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

Q1Q2Q3Q4Annual Trend
120180160240—
Formula applicata
=SPARKLINE(A2:D2)
Risultato atteso::[Sparkline: 4 points]

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

Generatore di formula.

Apri Procedura Guidata Completa

Compila i campi qui sotto per creare una formula personalizzata pronta da incollare nel tuo foglio di calcolo.

Generated FormulaPronta da copiare

Caratteristiche del risultato.

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

Esempio di output::[Sparkline: 4 points]
Tipo di dato restituito::Text

Migliori Pratiche

  • Set {"charttype", "bar"; "max", 100} to render progress completion meters in dashboard tables.

Errori Più Frequenti

  • Google Sheets specific formula. In Excel, sparklines are inserted via the Insert ribbon rather than cell formulas.
Matrice di Compatibilità

Compatibilità per programma e versione.

Verifica tecnica eseguita sui motori di calcolo ufficiali di Microsoft Excel e Google Fogli.

Excel✕
No
Excel 365✕
No
Excel 2021✕
No
Excel 2019✕
No
Google Sheets✓
Supportato
Disponibilità e versioni di Excel

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

Note su Google Fogli

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

Domande frequenti.

Domande Tecniche
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.