Comment utiliser SORTBY dans Excel ?
Trie une matrice à partir d’une autre matrice. Pour SORTBY, saisissez Plage cible, Plage de tri, Ordre de tri dans cet ordre, puis ajoutez les arguments optionnels si besoin.
Nom de la fonction en français: TRIERPARDans Excel en français, SORTBY s'appelle « TRIERPAR ». Si vous travaillez sur une version française, saisissez la formule sous la forme =TRIERPAR(…).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 à partir d’une autre matrice.
SORTBY(array, by_array1, [sort_order1], ...)TRIERPAR(array, by_array1, [sort_order1], ...)array
ObligatoireSpecify a reference range. You can drag or click start/end cells.
by_array1
ObligatoireSpecify a reference range. You can drag or click start/end cells.
sort_order1
FacultatifEnter a numeric value.
Utilisez SORTBY. Objectif: Trie une matrice à partir d’une autre matrice. Arguments: Plage cible: A2:C7; Plage de tri: D2:D7; Ordre de tri: -1. Résultat attendu: P005, Food, Grapes | P001, Food, Apple | P002, Food, Banana | P003, Stationery, Notebook | P004, Stationery, Pen | P006, Stationery, Ruler.
| # | 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)
=SORTBY(A2:C7, D2:D7, -1)Résultat
P005, Food, Grapes | P001, Food, Apple | P002, Food, Banana | P003, Stationery, Notebook | P004, Stationery, Pen | P006, Stationery, Ruler
Trie une matrice à partir d’une autre matrice. Pour SORTBY, saisissez Plage cible, Plage 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 SORTBY.
Les arguments principaux sont Plage cible, Plage de tri, Ordre de tri. Commencez par les arguments obligatoires, puis ajoutez les optionnels si besoin.