Excel VLOOKUP Practice Question: Customer ID is typed in F1. Find that customer's name and city and put them in…
The question
Customer ID is typed in F1. Find that customer's name and city and put them in F2 and F3.
The data
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | ID | Name | City | ID | C-103 | |
| 2 | C-101 | Anita | Pune | Name | ? | |
| 3 | C-102 | Bharat | Delhi | City | ? | |
| 4 | C-103 | Chetna | Surat | |||
| 5 | C-104 | Dhruv | Jaipur | |||
| 6 | C-105 | Eesha | Nagpur | |||
| 7 | C-106 | Farid | Kochi |
The yellow cells are where your answer goes.
Show answer
Expected results:
- F2 = Chetna
- F3 = Surat
How it works
Explanation: Use the same lookup value with a different column number to pull several details for one ID.
Syntax: =VLOOKUP($F$1,A2:C7,2,FALSE) and =VLOOKUP($F$1,A2:C7,3,FALSE)
F1 is C-103, which is Chetna. Column 2 gives the name Chetna and column 3 gives the city Surat.
Try it yourself in the live sheet
Type your formula in the highlighted cell and get instant feedback. Free, no Excel install needed.
Try this question in the live sheet →VLOOKUP syntax
Looks up a value in the first column of a range and returns a value from another column, same row. Pulling an employee's salary into another sheet using their ID. Full VLOOKUP guide.
More VLOOKUP practice questions
- Using VLOOKUP, find the price of the product code typed in E2 and put it in F2.
- Find the department of the employee ID typed in E2 and put it in F2.
- Using VLOOKUP, find the marks of the roll number typed in E2 and put them in F2.
- Using VLOOKUP with approximate match, find each student's grade from the band table in…
- Using VLOOKUP, fetch the unit price for each ordered product from the price list in…
- Find the total amount for each order (quantity times the unit price from the price list…
- Using VLOOKUP with MATCH to pick the column automatically, find the units for the…
- Using VLOOKUP with a wildcard, find the price of the first laptop in the list whose name…
All practice questions · Excel exercises · Interview prep · Cheat sheet