ExcelFormulas logoExcelFormulas.
Chiedi all'IA
Matrici dinamicheVerificato da QA

SORT.

Sorts the contents of a range or array dynamically.

Matrici dinamiche
ExcelExcel 365Excel 2021Google Sheets

Come funziona nel dettaglio.

SORT è una funzione fondamentale di Excel. Sorts the contents of a range or array dynamically. Consente di velocizzare la gestione dei fogli di calcolo, ridurre gli errori e creare report automatizzati professionali.

Sintassi.

Notazione Ufficiale Excel
=SORT(array, [sort_index], [sort_order], [by_col])
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.

arrayObbligatorio

The range or array to sort.

Valore d'esempio: A2:B5
sort_indexFacoltativo

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

Valore predefinito: 1
sort_orderFacoltativo

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

Valore predefinito: 1

Esempio pratico.

Scenario di utilizzo

Leaderboard - Top Performing Products

Sort product table by sales volume in descending order.

ProductSalesSorted ProductSorted Sales
Product A150——
Product B450——
Product C200——
Formula applicata
=SORT(A2:B5, 2, -1)
Risultato atteso::450

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

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

Esempio di output::450
Tipo di dato restituito::Numeric

Migliori Pratiche

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

Errori Più Frequenti

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

Compatibilità per programma e versione.

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

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

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

Note su Google Fogli

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

Domande frequenti.

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