FormulaCraft

How to write a nested VLOOKUP in Excel and Google Sheets

Topic:VLOOKUP
Excel & Google Sheets
=VLOOKUP(VLOOKUP(A2,$C$2:$D$5,2,FALSE),$F$2:$G$5,2,FALSE)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Set up Table 1 (e.g. C2:D10) mapping an ID to a category code, and Table 2 (e.g. F2:G10) mapping that category code to a final description.
  2. 2Write the inner VLOOKUP to retrieve the category code: VLOOKUP(A2,$C$2:$D$10,2,FALSE).
  3. 3Nest it as the lookup_value of the outer VLOOKUP: =VLOOKUP(VLOOKUP(A2,$C$2:$D$10,2,FALSE),$F$2:$G$10,2,FALSE).

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Is there a cleaner alternative to nested VLOOKUP?

Yes. INDEX/MATCH chains are often easier to read, and in Excel 365 or Google Sheets you can chain XLOOKUP calls which have a built-in not-found argument.

More on VLOOKUP

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: