FormulaCraft

XLOOKUP

XLOOKUP searches a lookup array and returns the corresponding item from a return array. It works left or right, defaults to exact match, and lets you supply a fallback when nothing is found.

Topic:XLOOKUP
Excel
=XLOOKUP(D2, A:A, B:B, "Not found")
Google Sheets
=XLOOKUP(D2, A:A, B:B, "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

How it works

  1. 1D2 is the lookup value.
  2. 2A:A is the column to search.
  3. 3B:B is the column to return from.
  4. 4"Not found" is returned when there is no match.

Need a version for your data?

Try: “Find the email in column B for the name in D2, or say Not found

More on XLOOKUP

See all →

Related

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

Last reviewed: