Formula Library

XLOOKUP

lookup

Modern replacement for VLOOKUP/HLOOKUP. Searches a range and returns a match from another range.

Syntax

=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])

Example

Excel
=XLOOKUP(A2, D:D, E:E, "Not found")

Looks up A2 in column D and returns the matching value from column E, showing "Not found" if no match.

Tips & Notes

  • →Available in Excel 365/2021+ and Google Sheets
  • →Can search left-to-right or right-to-left
  • →Supports wildcard matching

See Also

Need a custom XLOOKUP formula?

Describe exactly what you need and get the formula generated instantly.

Generate →

We use cookies and display ads via Google AdSense to keep ExcelBossPro free. Privacy Policy. By continuing, you accept our use of cookies.