ExcelFormulas logoExcelFormulas.
Perguntar à IA
Google SheetsTestado por QA

SPARKLINE.

Generates a miniature chart within a single spreadsheet cell.

Google Sheets
Google Sheets

Como funciona na prática.

SPARKLINE é uma função essencial no Excel. Generates a miniature chart within a single spreadsheet cell. Facilita a automação de relatórios, otimiza consultas de dados e garante máxima produtividade no seu fluxo de trabalho.

Sintaxe.

Notação Oficial do Excel
=SPARKLINE(data, [options])
Dica: Argumentos entre colchetes [como_este] são opcionais; todos os outros são obrigatórios.

Argumentos.

Confira abaixo o detalhamento de cada parâmetro aceito por esta função.

dataObrigatório

The range of numbers to chart.

Exemplo: A2:D2
optionsOpcional

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

Exemplo: {"charttype", "bar"}

Exemplo passo a passo.

Cenário de Aplicação

Quarterly Revenue Trend

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

Q1Q2Q3Q4Annual Trend
120180160240—
Fórmula Aplicada
=SPARKLINE(A2:D2)
Resultado Esperado::[Sparkline: 4 points]

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

Gerador de fórmula.

Abrir Assistente Completo

Preencha os campos abaixo para gerar uma fórmula pronta para copiar e colar na sua planilha.

Generated FormulaPronta para copiar

Comportamento do resultado.

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

Amostra de Saída::[Sparkline: 4 points]
Tipo de Dado::Text

Boas Práticas

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

Erros Mais Comuns

  • Google Sheets specific formula. In Excel, sparklines are inserted via the Insert ribbon rather than cell formulas.
Matriz de Compatibilidade

Compatibilidade de software e versão.

Validação técnica fundamentada nas especificações oficiais da Microsoft e do Google.

Excel✕
Não
Excel 365✕
Não
Excel 2021✕
Não
Excel 2019✕
Não
Google Sheets✓
Compatível
Histórico e Versões do Excel

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

Notas sobre o Google Planilhas

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

Perguntas frequentes.

Dúvidas Técnicas
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.