XLOOKUP Google Sheet Formula
Generate Google Sheet XLOOKUP Formulas in seconds
Interactive Formula Generator
Formula Generator
Create complex Google Sheets formulas with natural language. Simply describe what you want to calculate.
Upgrade to Sheet Alchemy Pro
Get advanced formulas, batch processing, and priority support
Input
Result
Your formula will be displayed here:
Your formula will appear here
Describe what you want to calculate and click Generate
Pro Features Available
Sheet Alchemy Pro includes additional advanced features to enhance your formula generation.
Advanced Formulas
Complex array formulas and dynamic ranges
Batch Processing
Generate multiple formulas at once
Unlimited History
Save and organize all your formulas
XLOOKUP Formula Syntax
Example Use Case
Looking up values with enhanced flexibility and control
Understanding the XLOOKUP Formula
The XLOOKUP function in Excel is a modern, flexible replacement for VLOOKUP and HLOOKUP, searching for a match in a range and returning a corresponding value from another range. It's a powerful lookup tool without the limitations of older functions—like being able to look in any direction or return multiple values.
XLOOKUP("Smith", A2:A20, C2:C20, "Not Found", 0, 1) finds "Smith" in A2:A20 and returns the corresponding value from C2:C20, or "Not Found" if not matched. It takes lookup_value, lookup_array, return_array, and optional arguments for if_not_found, match_mode (0=exact, others for approximate), and search_mode (1=first-to-last, etc.).
Why Use XLOOKUP?
XLOOKUP offers superior flexibility—think complex lookups or multi-column returns. Its advanced feature set overcomes limitations of VLOOKUP/HLOOKUP, with the lookup array being anywhere, the ability to search in any direction, and support for multiple return values.
Example with Sample Data
Scenario | Formula | Result |
---|---|---|
Basic lookup with fallback | =XLOOKUP("Smith", A2:A20, C2:C20, "Not Found") | $50,000 (or "Not Found") |
Return multiple columns | =XLOOKUP("ABC123", A2:A20, C2:E20) | [3 values as array] |
Two-way lookup (intersection) | =XLOOKUP("Smith", A2:A20, XLOOKUP("2023", B1:F1, B2:F20)) | [Smith's value for 2023] |
XLOOKUP modernizes lookups: finds "Smith" in any column, returns from any other column, with fallbacks and search options. It's the ultimate lookup evolution.
Explore More Google Sheet Formulas
ASINH
Calculating the inverse hyperbolic sine for logarithmic or exponential modeling
Learn moreERROR.TYPE
Returning a number corresponding to a specific Excel error type
Learn moreSUMIF
Summing numbers based on a single condition for filtered totals
Learn moreIMPOWER
Raising a complex number to a power
Learn moreISNA
Checking if a value is the #N/A error
Learn moreNPV
Calculating the net present value of an investment based on a series of cash flows
Learn moreHLOOKUP
Looking up a value in the top row and returning a value from a specified row
Learn moreROW
Returning the row number of a reference for position-based calculations
Learn moreUnlock the Full Power of Sheet Alchemy
Get access to all our formula generators, script generators, and conversion tools with a free Sheet Alchemy account.