ExcelFormulas logoExcelFormulas.
Perguntar à IA
Matrizes DinâmicasTestado por QA

SORT.

Sorts the contents of a range or array dynamically.

Matrizes Dinâmicas
ExcelExcel 365Excel 2021Google Sheets

Como funciona na prática.

SORT é uma função essencial no Excel. Sorts the contents of a range or array dynamically. 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
=SORT(array, [sort_index], [sort_order], [by_col])
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.

arrayObrigatório

The range or array to sort.

Exemplo: A2:B5
sort_indexOpcional

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

Padrão: 1
sort_orderOpcional

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

Padrão: 1

Exemplo passo a passo.

Cenário de Aplicação

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.

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

Amostra de Saída::450
Tipo de Dado::Numeric

Boas Práticas

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

Erros Mais Comuns

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

Compatibilidade de software e versão.

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

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

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

Notas sobre o Google Planilhas

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

Perguntas frequentes.

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