About this exercise
A 110-row dataset on 2 sheets, one answer cell, about 5 minutes. Graded in your browser: the value and the formula behind it, with feedback that names the fix.
How to solve it
- 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.
Other ways that work
- =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
Common mistakes
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.
How we grade
Any formula that produces the right result is accepted, unless the task names a function: then another function earns half credit. We compare values with a small tolerance and ignore case and spaces in text. A correct number typed by hand instead of a formula earns half credit. Multi-cell tasks earn full credit at 100% of cells, half credit from 50%. Where it matters, we also change an input cell on a copy of your sheet and check that your formula follows.
Answers computed with Excel 365 rules and checked in our grading engine on November 16, 2026. Author: GridBelt team.