ExcelFormulas logoExcelFormulas.
Preguntar a IA
Google SheetsVerificado por QA

SPARKLINE.

Generates a miniature chart within a single spreadsheet cell.

Google Sheets
Google Sheets

Cómo funciona.

SPARKLINE es una función fundamental de Excel. Generates a miniature chart within a single spreadsheet cell. Permite automatizar hojas de cálculo, simplificar fórmulas complejas y analizar datos con total precisión en Microsoft Excel y Google Sheets.

Sintaxis.

Notación Estándar de Excel
=SPARKLINE(data, [options])
Consejo: Los argumentos entre corchetes [como_este] son opcionales; todos los demás son obligatorios.

Argumentos.

A continuación se detallan todos los parámetros aceptados por esta función.

dataObligatorio

The range of numbers to chart.

Ejemplo: A2:D2
optionsOpcional

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

Ejemplo: {"charttype", "bar"}

Ejemplo práctico.

Caso de Uso Paso a Paso

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.

Generador de fórmula.

Abrir Asistente Completo

Personaliza los campos de argumento a continuación para generar una fórmula lista para copiar y pegar en tu hoja de cálculo.

Generated FormulaLista para copiar

Comportamiento del resultado.

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

Resultado de Muestra::[Sparkline: 4 points]
Tipo de Salida::Text

Buenas Prácticas

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

Errores Frecuentes

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

Compatibilidad de plataforma y versiones.

Matriz verificada con base en los motores de cálculo oficiales de Microsoft Excel y Google Sheets.

Excel✕
No
Excel 365✕
No
Excel 2021✕
No
Excel 2019✕
No
Google Sheets✓
Compatible
Disponibilidad y Versiones de Microsoft Excel

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

Notas sobre Compatibilidad con Google Sheets

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

Preguntas frecuentes.

Dudas 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.