ExcelFormulas logoExcelFormulas.
Preguntar a IA
Matrices dinámicasVerificado por QA

SORT.

Sorts the contents of a range or array dynamically.

Matrices dinámicas
ExcelExcel 365Excel 2021Google Sheets

Cómo funciona.

SORT es una función fundamental de Excel. Sorts the contents of a range or array dynamically. 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
=SORT(array, [sort_index], [sort_order], [by_col])
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.

arrayObligatorio

The range or array to sort.

Ejemplo: A2:B5
sort_indexOpcional

Column index number to sort by (1-based, default is 1).

Valor por defecto: 1
sort_orderOpcional

1 for Ascending (default), -1 for Descending.

Valor por defecto: 1

Ejemplo práctico.

Caso de Uso Paso a Paso

Leaderboard - Top Performing Products

Sort product table by sales volume in descending order.

ProductSalesSorted ProductSorted Sales
Product A150——
Product B450——
Product C200——
Fórmula Aplicada
=SORT(A2:B5, 2, -1)
Resultado Esperado::450

Evaluates SORT over the sample table cells, placing the verified output in cell D2.

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 number 450 based on sample evaluation criteria and active cell references.

Resultado de Muestra::450
Tipo de Salida::Numeric

Buenas Prácticas

  • Nest with UNIQUE: =SORT(UNIQUE(A2:A100)) generates a sorted alphabetical list of unique names.

Errores Frecuentes

  • If any cell in the output spill range contains existing data, Excel returns a #SPILL! error.
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✓
Compatible
Excel 365✓
Compatible
Excel 2021✓
Compatible
Excel 2019✕
No
Google Sheets✓
Compatible
Disponibilidad y Versiones de Microsoft Excel

Introduced in Excel 365 and Excel 2021. Not available in Excel 2019.

Notas sobre Compatibilidad con Google Sheets

Fully supported in Google Sheets with identical arguments =SORT(range, sort_column, is_ascending).

Preguntas frecuentes.

Dudas Técnicas
Can I use SORT 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: =SORT(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 SORT?↓

If any cell in the output spill range contains existing data, Excel returns a #SPILL! error.

Does SORT work identically in Google Sheets?↓

Yes, SORT is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.