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. INDEX and MATCH

INDEX MATCH MATCH practice: two-way lookup in a sales matrix

  • Expert
  • ~8 min
  • INDEX and MATCH

Énoncé en anglais

The 2026 sales matrix has the twelve months down column A and 8 regions across row 1 — 96 cells of monthly sales. Management wants to type a month in B16 and a region in B17 and read the matching sales figure in B18. Neither VLOOKUP nor HLOOKUP alone can do this: the row and the column both come from inputs, so INDEX needs two MATCH functions, one for each axis.

Ce que vous devez faire

  1. 1Click B18 and type =INDEX($B$2:$I$13, — the matrix of numbers without its labels is the range INDEX will read from.
  2. 2Add the row number: MATCH(B16,$A$2:$A$13,0) finds the month's position in column A (Aug is 8).
  3. 3Add the column number: MATCH(B17,$B$1:$I$1,0) finds the region's position in row 1. Close the bracket: =INDEX($B$2:$I$13,MATCH(B16,$A$2:$A$13,0),MATCH(B17,$B$1:$I$1,0)).
  4. 4Press Enter, then change B16 to Mar and B17 to Pacific Northwest — B18 must follow each change.

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éIn B18, use INDEX with two MATCH functions to return the sales for the month in B16 (matched in A2:A13) and the region in B17 (matched in B1:I1) from the matrix B2:I13.

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 17 lignes sur une feuille, une cellule de réponse, environ 8 minutes. Corrigé dans votre navigateur : la valeur et la formule qui la produit, avec des indications sur la correction à apporter.

Comment le résoudre

  • B18=INDEX($B$2:$I$13,MATCH(B16,$A$2:$A$13,0),MATCH(B17,$B$1:$I$1,0))

INDEX(range, row, column) returns the cell at a given row and column position inside the range — here the 8th row and the 5th column of $B$2:$I$13, which is cell F9. The two MATCH functions supply those positions from the labels: one searches the month names in column A, the other the region names in row 1, each with 0 for an exact match. Because every part is looked up, the same formula serves all 96 combinations without being edited.

Pitfall 1: the three ranges must line up — the matrix starts at B2, so the month MATCH must start at A2 and the region MATCH at B1; a MATCH over A1:A13 is one position too large and returns the next month's row. Pitfall 2: labels must match exactly: "Pacific NW" will not find "Pacific Northwest" and MATCH returns #N/A; data-validation lists on the input cells prevent typos. Pitfall 3: a hard-coded position (=INDEX($B$2:$I$13,8,MATCH(…))) looks right until the month input changes — exactly what the grader tests. Alternatives: =VLOOKUP(B16,$A$2:$I$13,MATCH(B17,$A$1:$I$1,0),FALSE) uses VLOOKUP for the row and MATCH for the column; =SUMPRODUCT(($A$2:$A$13=B16)*($B$1:$I$1=B17)*$B$2:$I$13) multiplies two boolean masks by the matrix; in 365, =XLOOKUP(B17,$B$1:$I$1,XLOOKUP(B16,$A$2:$A$13,$B$2:$I$13)) nests two XLOOKUPs (the inner one returns a whole row). Modeling note: two-way lookups are how dashboards read rate cards, price grids and budget matrices; INDEX with a 0 as row or column even returns an entire row or column for charts and spills.

Autres méthodes valables

  • =VLOOKUP(B16,$A$2:$I$13,MATCH(B17,$A$1:$I$1,0),FALSE) — VLOOKUP for the row, MATCH for the column (not accepted here: this task practices INDEX with two MATCH functions)
  • =INDEX($A$1:$I$13,MATCH(B16,$A$1:$A$13,0),MATCH(B17,$A$1:$I$1,0)) — INDEX over the whole block including labels; both MATCH ranges then start at A1
  • =SUMPRODUCT(($A$2:$A$13=B16)*($B$1:$I$1=B17)*$B$2:$I$13) — boolean-mask alternative, no INDEX (not accepted here)

Erreurs fréquentes

Mixing up the order of INDEX's arguments: =INDEX($B$2:$I$13,MATCH(B17,$B$1:$I$1,0),MATCH(B16,$A$2:$A$13,0)) feeds the region position as the row number and returns a value from the wrong cell — INDEX wants row first, then column.

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 16 novembre 2026. Auteur : GridBelt team.

Dans ces programmes

  • Excel test in 7 days, Plan de niveau 3Jour 5
  • Excel for Data AnalystsJour 9
  • Excel for Sales and MarketingJour 8

Exercices associés

  • INDEX and MATCH exact lookupIntermédiaire, ~6 min
  • Pick the month column with MATCHIntermédiaire, ~7 min
  • Last order date per customerExpert, ~10 min
  • Two-criteria lookup (product and region)Expert, ~10 min

Référence de la fonction

Documentation officielle

Exercice suivant

Last order date per customer