À propos de cet exercice
Un jeu de données de 110 lignes sur 2 feuilles, une cellule de réponse, environ 5 minutes. Corrigé dans votre navigateur : la valeur et la formule qui la produit, avec des indications sur la correction à apporter.
Comment le résoudre
- Orders!E2
=VLOOKUP(C2,Customers!$A$2:$D$31,4,FALSE)
A reference to another sheet is the sheet name, an exclamation mark and the range: Customers!$A$2:$D$31. VLOOKUP searches the first column of that table for the customer name in C2 and returns the 4th column of the same row, the tier. Nothing is copied: when a customer is upgraded on the Customers sheet, every one of their orders shows the new tier the moment you press Enter.
Pitfall 1: typing the sheet prefix by hand is where errors creep in — click the tab instead; names with spaces need single quotes ('Key accounts'!A2:D31) and Excel adds them for you. Pitfall 2: an exact match is only as good as the spelling. "Summit Foods " with a trailing space or "Summit foods" in a different case: VLOOKUP ignores case, but not spaces — wrap the lookup value in TRIM when exports are messy. Pitfall 3: the customer name is a weak key; two accounts with the same name return the first one found. Real systems look up a customer ID. Alternatives: =XLOOKUP(C2,Customers!$A$2:$A$31,Customers!$D$2:$D$31) (365) or =INDEX(Customers!$D$2:$D$31,MATCH(C2,Customers!$A$2:$A$31,0)); both keep working when a column is inserted into the Customers sheet, VLOOKUP's hard-coded 4 does not. Design note: a lookup column like this is the usual first step before a pivot or a COUNTIF by tier — the tier becomes an attribute of each order row.
Autres méthodes valables
- =XLOOKUP(C2,Customers!$A$2:$A$31,Customers!$D$2:$D$31) — Excel 365, no column counting
- =INDEX(Customers!$D$2:$D$31,MATCH(C2,Customers!$A$2:$A$31,0)) — INDEX/MATCH, any Excel version
- =VLOOKUP(C2,Customers!A:D,4,FALSE) — whole-column reference; fine here because the Customers sheet holds nothing else
Erreurs fréquentes
Typing =VLOOKUP(C2,$A$2:$D$31,4,FALSE) while still on the Orders sheet: without the Customers! prefix the formula searches the orders themselves and returns #N/A. The sheet prefix is what sends the lookup to the right table.
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.