Fix #NAME?: the tuition lookup calls VLOKUP
Diagnose before you fix
#NAME? instead of a course fee. The table in A2:C5 is intact. VLOOKUP. The table, the key cell G2 and the column index stay as they are. The problem
Problem statement
The course fee in Fee cell H2 shows #NAME? instead of a price. The tuition table in A2:C5 is untouched. Diagnose the typo and repair the function name.
Repair the formula only — the course table must not be retyped.
Problem data
Show the sheet as a table (selectable, copyable)
| A | B | C | G | H | |
|---|---|---|---|---|---|
| 1 | Course code | Course | Fee | Course code | Fee |
| 2 | C-101 | Excel Fundamentals | 320 | C-103 | |
| 3 | C-102 | SQL Basics | 280 | ||
| 4 | C-103 | Data Visualization | 420 | ||
| 5 | C-104 | Python for Analysts | 560 |
Notes
#NAME? means the spreadsheet cannot resolve a name used in the formula. Here the unknown name is the function itself: the cell calls VLOKUP, which does not exist. The engine fails on the name before it reads a single argument, so the table, the key cell and the column index are all innocent.
How to approach
Your answer goes in H2. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.
- Target cell is H2 — it shows
#NAME?, not a wrong fee - Read the function name in the formula one letter at a time
- The grid knows the table; it does not know the name that was typed
- Shape:
=VLOOKUP(G2, ?, 3, FALSE)
Official solutions
Show 1 solution — try it yourself first
Approach 1: correct the name
=VLOOKUP(G2,$A$2:$C$5,3,FALSE)
VLOOKUP is the real function name. Once the typo is fixed, the range, the column index and the exact-match flag all work as written.
Function guide
FAQ
What does #NAME? mean?
The engine cannot resolve a name in the formula. Usually it is a misspelled function; sometimes it is a named range or table that was never defined. Check the spelling first, then the arguments.
The table is right there, so why the error?
Because the failure happens before the lookup runs. An unknown function name never gets as far as reading the range.