What is XLOOKUP?
XLOOKUP is the modern replacement for VLOOKUP, available in Excel 365, Excel 2021, and Google Sheets (2022+). Unlike VLOOKUP, XLOOKUP can search in any direction, handles 'not found' cases natively, and won't break when you insert columns. It's the recommended lookup function for any spreadsheet built today.
How to Use This Generator
- Go to the ExcelForm tool on the homepage
- Click the Generate tab (or the relevant tool tab for your task)
- Describe what you want in plain English — be specific about column names, sheet names, and conditions
- Select your environment (Excel, Google Sheets, or Both)
- Click Generate Formula and copy the result directly into your spreadsheet
Example: XLOOKUP Formula Generator in Action
"Find the price in column C of Sheet2 where the product name in column A matches my search in cell A2. Show 'Not found' if missing."
=XLOOKUP(A2,Sheet2!A:A,Sheet2!C:C,"Not found")
Common Mistakes to Avoid
- Using XLOOKUP in Excel 2019 or older — it's only available in Excel 365 and Excel 2021+
- Forgetting that lookup_array and return_array must be the same size
- Not using the if_not_found argument — always add a fallback value like 'Not found' to avoid #N/A errors
- Mismatching the size of return_array when spilling multiple columns
XLOOKUP vs VLOOKUP — Key Differences
XLOOKUP requires no column index number (error-prone in VLOOKUP), can return values to the left of the search column, supports wildcard matching natively, and has a built-in fallback for missing values — no IFERROR needed. If you're on Excel 365 or Google Sheets, use XLOOKUP. ExcelForm auto-selects XLOOKUP for Optimal and Advanced complexity settings.
Who Uses the XLOOKUP Formula Generator?
XLOOKUP is the most powerful lookup function in Excel 365 and Google Sheets, and ExcelForm's free XLOOKUP formula generator makes it accessible to anyone — whether you've never written a formula or just can't remember the argument order.
Finance analysts use XLOOKUP to replace complex VLOOKUP and INDEX MATCH combinations — fetching budget figures, account codes, and exchange rates from reference tables with cleaner syntax and native error handling. Data teams use XLOOKUP's ability to return multiple columns at once, eliminating repetitive nested formulas. HR teams use it to look up employee records from left-to-right or right-to-left — something VLOOKUP cannot do.
If you work in Excel 365, Excel 2021, or Google Sheets and you're still writing VLOOKUP, it's time to upgrade. XLOOKUP handles everything VLOOKUP does, plus reverse lookups, multi-column returns, wildcard matching, binary search, and cleaner error fallbacks. ExcelForm's AI generates the exact XLOOKUP syntax you need — including horizontal lookups and multi-criteria matching — from a plain English description.
XLOOKUP vs VLOOKUP: Key Differences
XLOOKUP was introduced in Excel 365 (2019) and Google Sheets (2022) specifically to fix VLOOKUP's limitations. Here is when to use each:
You have Excel 365, Excel 2021, or Google Sheets 2022+. You need to look left. You want cleaner error handling. You need to return multiple columns at once. You want wildcard matching built in.
Your file must open in Excel 2019 or older. You are sharing files with users who may not have Office 365. The lookup column is always the leftmost column and the formula is simple.
XLOOKUP With Multiple Criteria
To match on two or more columns simultaneously, use the & operator to combine lookup values and arrays:
This is significantly cleaner than the VLOOKUP+helper column workaround. ExcelForm generates this pattern automatically when you describe a multi-condition lookup.