FormulaCraft

How to use XLOOKUP with multiple criteria in Excel and Google Sheets

Topic:XLOOKUP
Excel & Google Sheets
=XLOOKUP(A2&B2,$C$2:$C$5&$D$2:$D$5,$E$2:$E$5,"Not found")

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. 1Decide which columns form your combined key (e.g. Region in A and Product in B).
  2. 2In the XLOOKUP, concatenate the lookup values: A2&B2, and concatenate the corresponding table columns: $C$2:$C$100&$D$2:$D$100.
  3. 3Enter the full formula: =XLOOKUP(A2&B2,$C$2:$C$100&$D$2:$D$100,$E$2:$E$100,"Not found") — in Excel confirm as a normal formula; Google Sheets handles it the same way.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What is the equivalent for older Excel without XLOOKUP?

Use an array-confirmed INDEX/MATCH: =INDEX($E$2:$E$100,MATCH(A2&B2,$C$2:$C$100&$D$2:$D$100,0)) confirmed with Ctrl+Shift+Enter in Excel 2019 and earlier.

More on XLOOKUP

See all →

Formulas used

Related tasks

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

Last reviewed: