Aller au contenu
GridBelt
  • Test Excel
  • Exercices
  • Programmes
  • Tarifs
Se connecter
Commencer le test gratuit
  • Test Excel
  • Exercices
  • Programmes
  • Tarifs
Se connecterCréer un compte
Commencer le test gratuit
GridBelt

Entraînez-vous sur Excel dans votre navigateur.

Test Excel

  • Niveau 1 : Débutant
  • Niveau 2 : Intermédiaire
  • Niveau 3 : Expert
  • Test Excel en 7 jours
  • Classement
  • Test Excel en entretien d’embauche
  • Évaluation Excel d’Indeed

Exercices

  • Tous les exercices
  • Programmes
  • Pour débutants

Guides

  • Formules Excel
  • Raccourcis Excel

Entreprise

  • À propos
  • Tarifs
  • Comment nous corrigeons

© GridBelt. Tous droits réservés.

  • Politique de confidentialité
  • Conditions d’utilisation
  • Politique de remboursement

Excel est une marque commerciale de Microsoft Corporation. Indeed, TestGorilla, SHL et les autres marques sont la propriété de leurs détenteurs respectifs. GridBelt est un site d’entraînement indépendant ; il n’est affilié ni à Microsoft, ni à TestGorilla, ni à SHL, ni à Indeed, et n’est ni cautionné ni sponsorisé par ces sociétés.

  1. Exercices
  2. /
  3. Sort and filter

Multi-level sort practice: by Region, then Sales descending

  • Débutant
  • ~4 min
  • Sort and filter

Énoncé en anglais

A 150-row extract of Q3 2026 deals lists the rep, region, product line, number of deals and sales amount in the order the CRM produced them. Regional managers want their own block of rows, with the biggest deals first. Sort the whole table by Region from A to Z and, within each region, by Sales from largest to smallest — two sort levels in one operation, keeping every row intact.

Ce que vous devez faire

  1. 1Click any cell inside the table (for example A2). Excel detects the table A1:E151 automatically, including the header row.
  2. 2Open Data → Sort (the large Sort button, not the A→Z arrows). Make sure "My data has headers" is ticked.
  3. 3Level 1: Sort by Region, Order A to Z. Click Add Level. Level 2: Then by Sales, Order Largest to Smallest. Click OK.
  4. 4Check: rows 2 onward are all Central, the first Central row has the highest Central sales, and the East block starts right after the 32 Central rows.

Cellules de réponse

Correction

Saisissez votre formule dans la grille, appuyez sur Enter, puis cliquez sur Vérifier. Nous corrigeons la valeur de chaque cellule de réponse et la formule qui la produit.

Tâches

  1. Non vérifiéSort the table A1:E151 by Region (A to Z) and then by Sales (largest to smallest), keeping each row's values together.

Ordinateur recommandé pour les tâches dans la feuille de calcul. La feuille défile à l’intérieur de ce cadre.

StartInsertFormulasDataView
A1fxPréparation de votre classeur…
A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Sheet1

Saisissez votre formule dans la feuille, puis vérifiez.

À propos de cet exercice

Un jeu de données de 150 lignes sur une feuille, une cellule de réponse, environ 4 minutes. Corrigé dans votre navigateur : la valeur et la formule qui la produit, avec des indications sur la correction à apporter.

Comment le résoudre

    A multi-level sort orders rows by the first key and uses the second key only to break ties inside each group: every region becomes a contiguous block (Central, East, North, South, West) and inside a block the rows run from the largest sale to the smallest. Because you sorted the whole table rather than one column, each row keeps its rep, product line and deal count together — the data is rearranged, never changed.

    Pitfall 1: selecting a single column and clicking A→Z sorts that column alone and scrambles the rows (Excel warns "Expand the selection" — always expand). Pitfall 2: a blank row or a merged title above the data stops Excel from detecting the header; untick "My data has headers" or the first data row becomes a header and never moves. Pitfall 3: numbers stored as text sort separately from real numbers ("9,500" after 10,000); convert with VALUE or Text to Columns before sorting. Alternatives: Excel 365 can produce a sorted copy with =SORTBY(A2:E151,B2:B151,1,E2:E151,-1) that updates automatically, leaving the source untouched; for a custom region order (West first), use Sort → Order → Custom List. Undo (Ctrl+Z / ⌘Z) restores the original order only until you save and close — add an index column (1…150) before sorting when the original order matters.

    Autres méthodes valables

    • =SORTBY(A2:E151,B2:B151,1,E2:E151,-1) — Excel 365 only; a live sorted copy in another area
    • Sort by Sales Largest to Smallest first, then sort by Region A to Z (stable sort: earlier order survives as the tie-breaker) — two single-key sorts in reverse priority
    • Format as Table (Ctrl+T / ⌘T) and use the header drop-downs: Region → Sort A to Z, then Sales → Sort Largest to Smallest in the same reverse order

    Erreurs fréquentes

    Adding the levels in the wrong order (Sales first, then Region): the result is ordered by sales overall, and Region only breaks ties between identical amounts, so the regions are not grouped.

    Comment nous corrigeons

    Toute formule qui produit le bon résultat est acceptée, sauf si la tâche nomme une fonction : une autre fonction rapporte alors la moitié des points. Nous comparons les valeurs avec une petite tolérance et ignorons la casse et les espaces dans le texte. Un nombre correct saisi à la main au lieu d’une formule rapporte la moitié des points. Les tâches sur plusieurs cellules rapportent tous les points avec 100 % de cellules justes, la moitié à partir de 50 %. Lorsque c’est pertinent, nous modifions aussi une cellule d’entrée sur une copie de votre feuille et vérifions que votre formule suit.

    Réponses calculées selon les règles d’Excel 365 et vérifiées dans notre correcteur le 15 novembre 2026. Auteur : GridBelt team.

    Dans ces programmes

    • Excel for Administrative AssistantsJour 7
    • Learn Excel From ScratchJour 8

    Exercices associés

    • Filter one region and count visible rows with SUBTOTALDébutant, ~6 min
    • Top 3 and bottom 3 reps with LARGE and SMALLDébutant, ~5 min
    • Freeze the header row of a long exportDébutant, ~3 min
    • Count orders, names and blanks (COUNT, COUNTA, COUNTBLANK)Débutant, ~4 min

    Référence de la fonction

    Documentation officielle

    Exercice suivant

    Filter one region and count visible rows with SUBTOTAL