New: ready-to-use spreadsheet templatesExplore the collection  →
Home/Formulas/XLOOKUP
LOOKUP & REFERENCE · GOOGLE SHEETS

XLOOKUP
find a value and return its corresponding result.

Use XLOOKUP to look up without counting columns. This guide shows the exact structure, a working example and the mistakes most likely to break it.

JosephineVerified by JosephineReviewed July 25, 2026
THE FORMULA=XLOOKUP(search_key, lookup_range, result_range, [missing_value], [match_mode], [search_mode])
A

search_keyvalue to find

B

lookup_rangewhere to search

C

result_rangevalues to return

D

missing_valueoptional fallback

TRY IT YOURSELF

Change the sheet.
Watch the answer update.

Edit any highlighted cell below. The example recalculates immediately.

LIVE PLAYGROUND=XLOOKUP(E2,A2:A20,C2:C20,"Not found")
fx=XLOOKUP(E2,A2:A20,C2:C20,"Not found")
A · IDB · TEAMC · AMOUNT
2
3
4
5
RESULTSalesUpdates live

Try changing a value above. This example runs entirely in your browser.

IN PLAIN ENGLISH

How the formula
thinks.

  1. 01

    search_keyvalue to find

  2. 02

    lookup_rangewhere to search

  3. 03

    result_rangevalues to return

  4. 04

    missing_valueoptional fallback

COMMON FIXES

When XLOOKUP
doesn’t behave.

WRONG RESULT

Wrong result

Check that every range starts and ends on the same rows, and that numbers are stored as numbers.

FORMULA PARSE ERROR

Formula parse error

Check commas, quotation marks and closing parentheses. Your locale may use semicolons instead of commas.

UNEXPECTED BLANKS

Unexpected blanks

Test the source cells for hidden spaces, empty strings and inconsistent data types.

fxNeed help with XLOOKUP?Fix my formula →