Practice by topic / Excel / Lookups

VLOOKUP Exercises

Lookups pull a value from one table into another — a price, a name, a rate. They come up in almost every Excel job interview test. These 10 exercises build up step by step, starting with look up a product price, look up an employee's department, look up a grade from a score table.

3 of 10 free · no sign-up needed · graded on the formula you write

1

Look Up a Product Price

Free

A2:B4 is a table of Product Name | Price. D2 holds a product name. Write a formula in E2 that looks up D2 and returns its price.

ABCDE
1
2Widget9.99Gadget?
3Gadget14.5
4Gizmo7.25
Show the solution

Use =VLOOKUP(D2,A2:B4,2,FALSE) — the FALSE ensures an exact match.

Right — VLOOKUP finds D2 in the first column and returns the value from column 2 of that row.

Expected result in E2: 14.5

Try it in the live spreadsheet →
2

Look Up an Employee's Department

Free

A2:B4 is a table of Employee ID | Department. D2 holds an ID. Write a formula in E2 that returns that employee's department.

ABCDE
1
2E1SalesE3?
3E2Support
4E3Engineering
Show the solution

Use =VLOOKUP(D2,A2:B4,2,FALSE).

Good — VLOOKUP matches the ID exactly and pulls the department from the second column.

Expected result in E2: Engineering

Try it in the live spreadsheet →
3

Look Up a Grade From a Score Table

Free

A2:B4 is a table of Student | Grade. D2 holds a student name. Write a formula in E2 that returns their grade.

ABCDE
1
2AlexASam?
3SamB
4PriyaA
Show the solution

Use =VLOOKUP(D2,A2:B4,2,FALSE).

Right — VLOOKUP pulls the grade associated with the matched student name.

Expected result in E2: B

Try it in the live spreadsheet →
4

Look Up a Third Column Value

A2:C4 is a table of SKU | Name | Price. D2 holds a SKU. Write a formula in E2 that returns the price from the third column.

ABCDE
1
2S1Widget10S2?
3S2Gadget15
4S3Gizmo8

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
5

Look Up a Warehouse Location

A2:B4 is a table of Product | Location. D2 holds a product name. Write a formula in E2 that returns its warehouse location.

ABCDE
1
2WidgetAisle 3Gizmo?
3GadgetAisle 7
4GizmoAisle 1

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
6

Look Up a Phone Extension

A2:B4 is a table of Name | Extension. D2 holds a name. Write a formula in E2 that returns their extension.

ABCDE
1
2Chen101Diego?
3Diego102
4Lena103

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
7

Look Up a Course Credit Value

A2:B4 is a table of Course | Credits. D2 holds a course name. Write a formula in E2 that returns its credit value.

ABCDE
1
2Math 1013History 201?
3History 2014
4Art 1002

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
8

Look Up a Vendor's Payment Terms

A2:B4 is a table of Vendor | Terms. D2 holds a vendor name. Write a formula in E2 that returns their payment terms.

ABCDE
1
2AcmeNet 30Initech?
3GlobexNet 15
4InitechNet 60

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
9

Look Up a Room Number

A2:B4 is a table of Guest | Room. D2 holds a guest name. Write a formula in E2 that returns their room number.

ABCDE
1
2Omar204Omar?
3Aisha310
4John118

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
10

Look Up a Discount Code Value

A2:B4 is a table of Code | Discount Percent. D2 holds a code. Write a formula in E2 that returns the discount percent for that code.

ABCDE
1
2SAVE1010SAVE20?
3SAVE2020
4SAVE55

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →