À 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.