The Ultimate XLOOKUP Visual Builder
XLOOKUP is a powerful Excel function that replaces VLOOKUP. Build formulas step-by-step with our interactive visual builder and master every parameter.
Learn XLOOKUP Visually
Interactive toolkit that shows you exactly how lookup arrays and return arrays work inside Excel.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | ID | Name | Department | |||
| 2 | 101 | Emma Wilson | Marketing | emma@example.com | ||
| 3 | 102 | Liam Johnson | Engineering | liam@example.com | ||
| 4 | 103 | Olivia Davis | Sales | olivia@example.com | ||
| 5 | 104 | Noah Brown | HR | noah@example.com | ||
| 6 | 105 | Ava Taylor | Engineering | ava@example.com | ||
| 7 | 106 | Ethan Moore | Marketing | ethan@example.com | ||
| 8 | 107 | Sophia White | Finance | sophia@example.com | ||
| 9 | 108 | Lucas Martin | Sales | lucas@example.com | ||
| 10 | 109 | Isabella King | Legal | isabella@example.com |
Welcome
Build Your XLOOKUP Step-by-Step
How to Do XLOOKUP — Step by Step
Follow these four steps to write your first XLOOKUP formula in Excel
Type =XLOOKUP in a Cell
Select the cell where you want the result and start typing =XLOOKUP( to begin building your XLOOKUP formula in Excel.
=XLOOKUP( Enter the Lookup Value
Specify what you are searching for. This can be a cell reference like A2 or a direct value. This is the core of how to do XLOOKUP in any Excel workbook.
=XLOOKUP(A2, Define the Lookup Array
Select the column that contains the values you want to search through. The XLOOKUP function in Excel scans this range to find your lookup value.
=XLOOKUP(A2, B3:B6, Set the Return Array
Choose the column from which the matching result should be returned. Unlike VLOOKUP, the Excel XLOOKUP return array can be to the left or right of the search range.
=XLOOKUP(A2, B3:B6, D3:D6) XLOOKUP Function in Excel — Syntax Reference
Complete breakdown of every parameter in the Excel XLOOKUP function, as documented by Microsoft Support
=XLOOKUP(
lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
| Parameter | Required | Description | Example |
|---|---|---|---|
lookup_value | Yes | The value to search for. Can be a cell reference, text, number, or logical value. | A2 or "John" |
lookup_array | Yes | The range or array to search. Must be a single row or column. | A:A or A1:A100 |
return_array | Yes | The range or array from which to return values. Must be the same size as lookup_array. | B:B or B1:B100 |
if_not_found | No | Value to return if no match is found. If omitted, #N/A is returned. | "Not Found" or "" |
match_mode | No | 0 = Exact match (default). 1 = Exact or next smaller. -1 = Exact or next larger. 2 = Wildcard match. | 0 |
search_mode | No | 1 = First to last (default). -1 = Last to first. 2 = Binary ascending. -2 = Binary descending. | 1 |
XLOOKUP vs VLOOKUP — Which Should You Use?
Wondering about VLOOKUP vs XLOOKUP in Excel? Here is why Microsoft recommends the XLOOKUP function as the modern replacement
| Feature | VLOOKUP | XLOOKUP |
|---|---|---|
| Look left (return column before search column) | ||
| Return exact match by default | ||
| Custom not-found value | ||
| Search from last to first | ||
| Return multiple columns | ||
| Horizontal and vertical lookup | ||
| Wildcard matching | ||
| Works with unsorted data |
Frequently Asked Questions About XLOOKUP
Common questions about how to use XLOOKUP in Excel and beyond