ExcelFormulas logoExcelFormulas.
Demander à l'IA
Tableaux dynamiquesVérifié par QA

SORT.

Sorts the contents of a range or array dynamically.

Tableaux dynamiques
ExcelExcel 365Excel 2021Google Sheets

Fonctionnement détaillé.

SORT est une fonction indispensable d'Excel. Sorts the contents of a range or array dynamically. Elle permet d'automatiser vos tableaux, fiabiliser vos calculs et gagner un temps précieux au quotidien dans vos feuilles de calcul.

Syntaxe.

Notation Standard Excel
=SORT(array, [sort_index], [sort_order], [by_col])
Conseil : Les arguments entre crochets [comme_ceci] sont facultatifs ; tous les autres sont obligatoires.

Arguments.

Détail de l'ensemble des paramètres acceptés par cette fonction.

arrayObligatoire

The range or array to sort.

Exemple : A2:B5
sort_indexFacultatif

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

Défaut : 1
sort_orderFacultatif

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

Défaut : 1

Exemple pas à pas.

Cas d'usage concret

Leaderboard - Top Performing Products

Sort product table by sales volume in descending order.

ProductSalesSorted ProductSorted Sales
Product A150——
Product B450——
Product C200——
Formule appliquée
=SORT(A2:B5, 2, -1)
Résultat attendu ::450

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

Générateur de formule.

Ouvrir l'assistant complet

Personnalisez les champs ci-dessous pour générer une formule prête à être copiée dans votre classeur.

Generated FormulaPrête à copier

Nature du résultat produit.

Returns number 450 based on sample evaluation criteria and active cell references.

Exemple produit ::450
Type de sortie ::Numeric

Bonnes Pratiques

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

Erreurs à Éviter

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

Compatibilité par logiciel et version.

Vérification effectuée selon les moteurs de calcul officiels de Microsoft et Google.

Excel✓
Pris en charge
Excel 365✓
Pris en charge
Excel 2021✓
Pris en charge
Excel 2019✕
Non
Google Sheets✓
Pris en charge
Historique des versions Excel

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

Notes de compatibilité Google Sheets

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

Questions fréquentes.

Questions Techniques
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.