Comment utiliser SORT dans Excel ?
Trie une matrice selon l’index ou l’ordre indiqué. Pour SORT, saisissez Plage cible, Index de tri, Ordre de tri dans cet ordre, puis ajoutez les arguments optionnels si besoin.
Nom de la fonction en français: TRIERDans Excel en français, SORT s'appelle « TRIER ». Si vous travaillez sur une version française, saisissez la formule sous la forme =TRIER(…).Les deux écritures donnent le même résultat : Excel calcule avec le nom international et vous affiche le nom français.
Trie une matrice selon l’index ou l’ordre indiqué.
SORT(array, [sort_index], [sort_order], [by_col])TRIER(array, [sort_index], [sort_order], [by_col])array
ObligatoireSpecify a reference range. You can drag or click start/end cells.
sort_index
FacultatifEnter a numeric value.
sort_order
FacultatifEnter a numeric value.
by_col
FacultatifSpecify TRUE or FALSE.
Utilisez SORT. Objectif: Trie une matrice selon l’index ou l’ordre indiqué. Arguments: Plage cible: A2:D7; Index de tri: 4; Ordre de tri: -1; Comparer par colonne: FALSE. Résultat attendu: P005, Food, Grapes, 1500 | P001, Food, Apple, 1200 | P002, Food, Banana, 980 | P003, Stationery, Notebook, 450 | P004, Stationery, Pen, 300 | P006, Stationery, Ruler, 250.
| # | AProduct ID | BCategory | CProduct Name | DSales |
|---|---|---|---|---|
| 2 | P001 | Food | Apple | 1200 |
| 3 | P002 | Food | Banana | 980 |
| 4 | P003 | Stationery | Notebook | 450 |
| 5 | P004 | Stationery | Pen | 300 |
| 6 | P005 | Food | Grapes | 1500 |
| 7 | P006 | Stationery | Ruler | 250 |
| 8 |
Comment l’utiliser (formule)
=SORT(A2:D7, 4, -1, FALSE)Résultat
P005, Food, Grapes, 1500 | P001, Food, Apple, 1200 | P002, Food, Banana, 980 | P003, Stationery, Notebook, 450 | P004, Stationery, Pen, 300 | P006, Stationery, Ruler, 250
Trie une matrice selon l’index ou l’ordre indiqué. Pour SORT, saisissez Plage cible, Index de tri, Ordre de tri dans cet ordre, puis ajoutez les arguments optionnels si besoin.
Le bouton d’entraînement de cette page lance directement des exercices sur SORT.
Les arguments principaux sont Plage cible, Index de tri, Ordre de tri, Comparer par colonne. Commencez par les arguments obligatoires, puis ajoutez les optionnels si besoin.