Practice by topic / Excel / Lookups

XLOOKUP 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 price with xlookup, look up a department with xlookup, look up a grade with xlookup.

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

1

Look Up a Price With XLOOKUP

Free

A2:A4 hold product names, B2:B4 hold prices. D2 holds a product name. Write a formula in E2 using XLOOKUP that returns the matching price.

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

Use =XLOOKUP(D2,A2:A4,B2:B4).

Right — XLOOKUP takes separate lookup and return ranges instead of a column index, which is often clearer than VLOOKUP.

Expected result in E2: 9.99

Try it in the live spreadsheet →
2

Look Up a Department With XLOOKUP

Free

A2:A4 hold employee IDs, B2:B4 hold departments. D2 holds an ID. Write a formula in E2 using XLOOKUP for the department.

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

Use =XLOOKUP(D2,A2:A4,B2:B4).

Good — XLOOKUP's lookup range and return range don't need to be adjacent columns, unlike VLOOKUP.

Expected result in E2: Support

Try it in the live spreadsheet →
3

Look Up a Grade With XLOOKUP

Free

A2:A4 hold student names, B2:B4 hold grades. D2 holds a name. Write a formula in E2 using XLOOKUP for the grade.

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

Use =XLOOKUP(D2,A2:A4,B2:B4).

Right — the two-range form of XLOOKUP is a direct, readable match.

Expected result in E2: A

Try it in the live spreadsheet →
4

Look Up a Location With XLOOKUP

A2:A4 hold product names, B2:B4 hold locations. D2 holds a product. Write a formula in E2 using XLOOKUP for the location.

ABCDE
1
2WidgetAisle 3Gadget?
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 →
5

Look Up a Vendor's Terms With XLOOKUP

A2:A4 hold vendor names, B2:B4 hold payment terms. D2 holds a vendor. Write a formula in E2 using XLOOKUP for their terms.

ABCDE
1
2AcmeNet 30Globex?
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 →
6

Look Up an Extension With XLOOKUP

A2:A4 hold names, B2:B4 hold phone extensions. D2 holds a name. Write a formula in E2 using XLOOKUP for the extension.

ABCDE
1
2Chen101Lena?
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 Room Number With XLOOKUP

A2:A4 hold guest names, B2:B4 hold room numbers. D2 holds a guest. Write a formula in E2 using XLOOKUP for the room number.

ABCDE
1
2Omar204John?
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 →
8

Look Up a Discount With XLOOKUP

A2:A4 hold discount codes, B2:B4 hold percentages. D2 holds a code. Write a formula in E2 using XLOOKUP for the percentage.

ABCDE
1
2SAVE1010SAVE5?
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 →
9

Look Up a Course Credit With XLOOKUP

A2:A4 hold course names, B2:B4 hold credit counts. D2 holds a course. Write a formula in E2 using XLOOKUP for the credits.

ABCDE
1
2Math 1013Art 100?
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 →
10

Look Up a Warehouse Bin With XLOOKUP

A2:A4 hold SKUs, B2:B4 hold bin locations. D2 holds a SKU. Write a formula in E2 using XLOOKUP for the bin.

ABCDE
1
2S1B12S3?
3S2B04
4S3B19

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 →