XLOOKUP G U I D E www.fmworldcup.
com
The XLOOKUP function in Excel is a powerful and versatile tool for searching a
range, returning corresponding values, and handling various lookup scenarios.
• XLOOKUP Function Syntax
• Arguments
a) lookup_value: The value you want to find in the lookup_array.
b) lookup_array: The range of cells containing possible lookup values.
c) return_array: The range of cells containing the values to be returned.
d) [if_not_found]: Optional. Specifies the value to return if the
lookup_value is not found. If omitted, #N/A is returned.
e) [match_mode]: Optional. Specifies the type of match: 0 for an exact
match, -1 for less than, and 1 for greater than.
f) [search_mode]: Optional. Specifies the search mode: 1 for first to
last, 2 for last to first, and 3 for a binary search.
• Examples
1. Basic XLOOKUP
Searches for lookup_value in the range A2:A10 and returns
the corresponding value from B2:B10.
XLOOKUP G U I D E www.fmworldcup.com
• Examples
2. Handling not found
Returns "Not Found" if the lookup_value is not found in the
specified range.
3. Approximate Match
Performs an exact match lookup. Use 1 for greater than
or -1 for less than.
4. Reverse Lookup
Searches for lookup_value in the range B2:B10 and returns
the corresponding value from A2:A10.
5. Handling Errors
Uses IFERROR to handle errors and return a custom message
for not found values.
XLOOKUP G U I D E www.fmworldcup.com
• Examples
6. Binary Search
Performs a binary search for faster results (requires sorted data).
• Tips
1. Wildcard Characters:
• Use wildcard characters like * and ? in lookup_value
for partial matches.
2. Array Mode:
• XLOOKUP supports array mode, allowing you to
handle multiple lookup values at once.
3. Dynamic Arrays:
• XLOOKUP automatically spills results into adjacent
cells for dynamic array functionality.
4. Error Handling:
• Use IFERROR or other error-handling functions to
manage situations where values are not found.