XLOOKUP: The Modern Lookup Formula
You want to look up a value and return a match from another column — without VLOOKUP's fragile column counting, its wrong-by-default approximate matching, or its inability to look left.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
XLOOKUP searches A2:A10 for the value in E2 and returns the value in the same position from B2:B10. If there's no match, it returns "Not found" instead of an #N/A error. Because the lookup column and return column are separate arguments, the return column can be anywhere — left or right of the lookup column — and inserting new columns never breaks the formula. Exact match is the default, so there's no FALSE argument to forget.
When to use it
Use XLOOKUP as your default lookup in Excel 2021+, Microsoft 365, and Google Sheets. Fall back to INDEX + MATCH only when you must support Excel 2019 or older.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08