Table of Contents
- ้ฆ้กต
- Excel Functions Guide & Examples
- Lookup & Reference Functions
- How to Use XLOOKUP in Excel
How to Use XLOOKUP Function in Excel
Complete guide to Excel's most versatile lookup function with practical examples
Try XLOOKUP Online
Test XLOOKUP function directly in your browser - faster and easier than Excel
Drop Excel or CSV files here
XLOOKUP Function Guide
Comprehensive instructions for mastering XLOOKUP
Function Syntax
=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
Steps to Use
Select the cell where you want the result
Enter =XLOOKUP( to start the function
Specify what you want to look up (lookup_value, can be a cell reference like A2)
Select the column or range to search in (lookup_array, e.g. B2:B20)
Choose the column or range containing the return values (return_array, e.g. C2:C20)
Optional: Add a custom value for when no match is found, like "Not found"
Optional: Specify match mode (0=exact, -1=less than, 1=greater than, 2=wildcard)
Optional: Set search order (1=first-to-last, -1=last-to-first)
Press Enter to complete the formula
Use Cases
Two-Way Lookups
Search data in any direction without column restrictions
Multiple Condition Matching
Look up values based on multiple criteria
Error Handling
Customize responses when no match is found
Tips & Notes
- 1XLOOKUP can search in any direction - left, right, up, or down with no restrictions
- 2Lookup and return arrays can be different sizes as long as they're aligned properly
- 3When using wildcards (* and ?) for partial matches, set match_mode to 2
- 4Avoid #N/A errors by setting an appropriate [if_not_found] parameter
- 5Match mode 0 (exact match) is suitable for most cases and offers best performance
- 6For date or numeric lookups, use -1 or 1 to find the nearest value
- 7Set search_mode to -1 to find the last occurrence instead of the first
- 8XLOOKUP can return multiple values as an array - ensure cells to the right or below are empty
Frequently Asked Questions about XLOOKUP
Common questions and solutions for Excel XLOOKUP function