Excel VLOOKUP Practice Question: Using VLOOKUP with approximate match, find each student's grade from the band…
The question
Using VLOOKUP with approximate match, find each student's grade from the band table in E2:F6 and put it in C2 to C5.
The data
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | Marks | Grade | From | Grade | |
| 2 | Asha | 82 | ? | 0 | F | |
| 3 | Ben | 67 | ? | 50 | D | |
| 4 | Chitra | 45 | ? | 60 | C | |
| 5 | Dev | 91 | ? | 75 | B | |
| 6 | 90 | A |
The yellow cells are where your answer goes.
Show answer
Expected results:
- C2 = B
- C3 = C
- C4 = F
- C5 = A
How it works
Explanation: With TRUE, VLOOKUP finds the largest value in the first column that is not above the lookup value. The band table must be sorted from small to large.
Syntax: =VLOOKUP(B2,$E$2:$F$6,2,TRUE)
82 falls in the band starting at 75, so B. 67 falls in the 60 band, so C. 45 falls in the 0 band, so F. 91 falls in the 90 band, so A.
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.
- Customer ID is typed in F1. Find that customer's name and city and put them in F2 and F3.
- 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