VLOOKUP practice
9 free VLOOKUP exercises, from a first exact-match lookup to the #N/A errors that trip people up. Each one is checked when you press Enter, with hints and the answer, and you don't need an account.
=VLOOKUP( F2, A2:C9, 3, FALSE)
- F2
- what to find
- A2:C9
- the table, starting with the column to search
- 3
- which of the table's columns to bring back; the first is 1
- FALSE
- exact matches only
Try one now
5 exercises
Who manages this account
Formula · Medium
A customer calls with the account number in B11. In B12, show the name of their account manager, using VLOOKUP.
A
B
C
D
1
Account
City
Manager
Credit limit
2
C-2210
Lyon
Ruth Adams
€5,000
3
C-1047
Porto
Omar Said
€2,500
4
C-3381
Graz
Mei Lin
€7,500
5
C-1893
Bari
Ruth Adams
€4,000
6
C-2765
Ghent
Tom Brennan
€3,000
7
C-1502
Cork
Omar Said
€6,000
8
C-3049
Brno
Mei Lin
€2,000
9
C-1264
Split
Tom Brennan
€5,500
10
11
Account
C-3381
12
Manager
empty
Answer cellB12
The exercises
9 exercises in 2 lessons, easy to hard. Each lesson explains the idea before its exercises.
Look up a value with VLOOKUP5 exercises
Bring back any column of a table with VLOOKUP's exact match, and lock the table to fill it down.
When a lookup can't find a match4 exercises
Show a message instead of #N/A with IFNA, and fix the two hidden causes of #N/A in a lookup: extra spaces and numbers stored as text.
Why a VLOOKUP goes wrong
- FALSE is missing
- =VLOOKUP(
F2, A2:C9, 3, FALSE)Without it, VLOOKUP looks for an approximate match and expects the first column sorted. On an unsorted list it can return the wrong row with no error. - The column number counts from the table
- =VLOOKUP(
F2, B2:D9, 3, FALSE)3 means the table's third column, counted from the column you search. With the table in B2:D9, that's column D, not C. - The table moved when you filled down
- =VLOOKUP(
F2, $A$2:$C$9, 3, FALSE)Lock it with dollar signs so every row searches the same list. - The values only look the same
- =VLOOKUP(
TRIM( F2), A2:C9, 3, FALSE)An extra space, or a number stored as text, makes the match fail with #N/A. TRIM or VALUE around the lookup value fixes it, and IFNA shows a message instead of the error.
Questions
- What does FALSE do in VLOOKUP?
- It asks for an exact match. Leave it out and VLOOKUP looks for the nearest match at or below the value instead, which works only when the first column is sorted in ascending order.
- Why does my VLOOKUP return #N/A?
- The value isn't in the table's first column exactly as written. Look for extra spaces, numbers stored as text, or a table range that moved when you filled the formula down. The exercises in When a lookup fails cover each one.
- Should I learn VLOOKUP or XLOOKUP?
- Both. XLOOKUP is simpler and can look to the left, but it needs Microsoft 365 or Excel 2021 and later. VLOOKUP works in every version, and you'll meet it in workbooks other people built.