Practice by topic / Excel / Lookups

Nested Lookups 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 chain two lookups together, look up a manager's department through an employee, resolve a product's warehouse region.

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

1

Chain Two Lookups Together

Free

A2:B4 maps Product to Category. D2:E4 maps Category to a base discount rate. F2 holds a product name. Write a formula in G2 that finds the product's category, then looks up that category's discount rate — a lookup feeding a lookup.

ABCDEFG
1
2WidgetHardwareHardware0.1Gizmo?
3GadgetElectronicsElectronics0.15
4GizmoHardware
Show the solution

Nest one VLOOKUP inside another: =VLOOKUP(VLOOKUP(F2,A2:B4,2,FALSE),D2:E3,2,FALSE)

Right — the inner VLOOKUP resolves the product to its category, and the outer VLOOKUP uses that result to find the discount rate.

Expected result in G2: 0.1

Try it in the live spreadsheet →
2

Look Up a Manager's Department Through an Employee

Free

A2:B4 maps Employee to Manager. D2:E4 maps Manager to Department. F2 holds an employee name. Write a formula in G2 that finds the employee's manager, then that manager's department.

ABCDEFG
1
2SamPriyaPriyaSalesAlex?
3AlexChenChenSupport
4LenaPriya
Show the solution

Nest the lookups: =VLOOKUP(VLOOKUP(F2,A2:B4,2,FALSE),D2:E3,2,FALSE)

Good — this two-hop lookup pattern is common when data is spread across related lookup tables.

Expected result in G2: Support

Try it in the live spreadsheet →
3

Resolve a Product's Warehouse Region

Free

A2:B4 maps Product to Warehouse. D2:E4 maps Warehouse to Region. F2 holds a product. Write a formula in G2 that resolves the product to its warehouse, then to its region.

ABCDEFG
1
2WidgetWH1WH1WestWidget?
3GadgetWH2WH2East
4GizmoWH1
Show the solution

Nest the lookups: =VLOOKUP(VLOOKUP(F2,A2:B4,2,FALSE),D2:E3,2,FALSE)

Right — chaining VLOOKUPs lets you traverse two related tables in one formula.

Expected result in G2: West

Try it in the live spreadsheet →
4

Combine XLOOKUP Nesting for a Two-Hop Resolution

A2:A4 and B2:B4 map Course to Instructor. D2:D4 and E2:E4 map Instructor to Office. F2 holds a course. Write a formula in G2 using nested XLOOKUP that resolves course to instructor to office.

ABCDEFG
1
2MathDr. LeeDr. LeeRoom 210History?
3ArtDr. KimDr. KimRoom 305
4HistoryDr. Lee

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

Resolve a Ticket's Team Through Its Category

A2:B4 maps Ticket Type to Category. D2:E4 maps Category to Team. F2 holds a ticket type. Write a formula in G2 that resolves type to category, then to the responsible team.

ABCDEFG
1
2BugTechnicalTechnicalEngineeringCrash?
3Billing IssueFinanceFinanceAccounting
4CrashTechnical

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

Resolve a City's Country From Its Region

A2:B4 maps City to Region. D2:E4 maps Region to Country. F2 holds a city. Write a formula in G2 that resolves city to region, then to country.

ABCDEFG
1
2AustinSouthSouthUSADenver?
3BostonNortheastWestUSA
4DenverWest

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

Resolve a Part's Supplier Contact

A2:B4 maps Part to Supplier. D2:E4 maps Supplier to Contact Name. F2 holds a part. Write a formula in G2 that resolves part to supplier, then to contact.

ABCDEFG
1
2BoltAcmeAcmeMariaSensor?
3CableGlobexGlobexDiego
4SensorAcme

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

Resolve an Order's Shipping Zone Fee

A2:B4 maps Order to Zone. D2:E4 maps Zone to Fee. F2 holds an order ID. Write a formula in G2 that resolves the order to its zone, then to the shipping fee.

ABCDEFG
1
2ORD1Zone AZone A5ORD3?
3ORD2Zone BZone B12
4ORD3Zone A

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

Resolve a Student's Advisor Office

A2:B4 maps Student to Advisor. D2:E4 maps Advisor to Office. F2 holds a student name. Write a formula in G2 that resolves student to advisor, then to office.

ABCDEFG
1
2AlexDr. PatelDr. PatelRoom 12Priya?
3SamDr. WongDr. WongRoom 8
4PriyaDr. Patel

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

Resolve a Device's Warranty Provider

A2:B4 maps Device to Manufacturer. D2:E4 maps Manufacturer to Warranty Provider. F2 holds a device. Write a formula in G2 that resolves device to manufacturer, then to warranty provider.

ABCDEFG
1
2LaptopTechCoTechCoCoverAllTablet?
3PhoneMobileIncMobileIncShieldPlus
4TabletTechCo

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 →