Lookup Formulas for Excel 2019 Without XLOOKUP
How to look up values in Excel 2019 without XLOOKUP, with INDEX/MATCH and VLOOKUP formulas and fallbacks for FILTER and UNIQUE.

If XLOOKUP or FILTER returns #NAME? in Excel 2019, the formula is not mistyped: those functions do not exist in that version. For a lookup, use INDEX/MATCH or VLOOKUP, which work everywhere. The Excel Formula Generator writes the formula for your version when you pick Excel 2019 or older, and warns you when your request needs a newer function.
Which functions Excel 2019 lacks
Excel 2019 does not include the dynamic-array and other recent functions, among them FILTER, UNIQUE, SORT, XLOOKUP, LET, LAMBDA and VSTACK. They are available in Excel 365, and XLOOKUP also in Excel 2021. LibreOffice has the same gap for several of them.
When a workbook that uses these functions is opened in Excel 2019, the cells show #NAME? because the name is not recognised. The formula text is usually fine. The function is missing from the version, so the fix is a different formula, not a correction of the typing. Tips for the other causes of #NAME? are in Fix #NAME? in Excel: Typos, Quotes and New Functions.
Pick your Excel version in the generator
- Open the Excel Formula Generator.
- In the request box, describe the lookup, for example: Look up the price in column C for the product code in F2, where the codes are in column A.
- Enter the columns, for example A: Product code, B: Name, C: Price, rows 2 to 300.
- Pick Excel 2019 or older as the version.
- Press Generate formula.

The tool does not calculate results, so paste the formula into a copy of your data and compare one lookup by hand. If you are new to writing requests, see Turn a Plain-English Request into an Excel Formula.
The INDEX/MATCH and VLOOKUP answers
For Excel 2019 the generator returns a formula built from functions the version has. For the price lookup it is:
=INDEX(C2:C300,MATCH(F2,A2:A300,0))
MATCH finds the row where F2 appears in A2:A300, and the 0 asks for an exact match. INDEX then returns the value from the same row of C2:C300. This works for lookups in any direction, including to the left of the lookup column.
A VLOOKUP gives the same result when the price is to the right of the code:
=VLOOKUP(F2,A2:C300,3,FALSE)
If you already have an XLOOKUP formula, the XLOOKUP vs INDEX-MATCH Generator converts it. Its note for the XLOOKUP version reads "Not available in Excel 2019 or 2016", so you know which of the three to keep. For a comparison of the styles, read XLOOKUP vs INDEX/MATCH: Which One to Use.
Warnings for dynamic-array functions
Some requests cannot be answered with a single classic function. When your request would normally use FILTER, UNIQUE, SORT, XLOOKUP, LET, LAMBDA, VSTACK or a similar function and you picked Excel 2019 or LibreOffice, the AI is told to give a fallback built from older functions. If the formula it returns still contains a function your version lacks, the generator shows a version warning above it. A request to list every row where the region is North, for example, comes back as an AGGREGATE formula instead of FILTER, with its assumptions listed.

Typical fallbacks, to check against your data:
- FILTER: an array formula built from INDEX, SMALL and IF, entered with Ctrl+Shift+Enter and filled down, or the built-in Filter and Advanced Filter commands on the Data tab.
- UNIQUE: Data > Remove Duplicates on a copy of the column, or a PivotTable with the field in the rows area.
- SORT: the Sort command on the Data tab. It changes the data in place, so work on a copy.
These fallbacks are less compact than the new functions. If the version can be upgraded, that may be the simpler answer.
Converting an existing XLOOKUP
Paste the XLOOKUP formula into the XLOOKUP vs INDEX-MATCH Generator. It shows the VLOOKUP, XLOOKUP and INDEX/MATCH versions side by side, with your formula first. For a left lookup such as =XLOOKUP(F2, $C$2:$C$200, $A$2:$A$200), VLOOKUP is marked not possible and the INDEX/MATCH version is the one that works in Excel 2019.

Copy the INDEX/MATCH formula into a copy of your sheet and compare a few results with the original. If the new formula returns an error, paste it into the Excel Formula Debugger and pick the error shown.
Microsoft lists the availability of the function on its support page XLOOKUP function. For the older pair, see Look up values with VLOOKUP, INDEX, or MATCH.
Do it with your own data
Open the Excel Formula Generator, describe your lookup, pick Excel 2019 or older and press Generate formula. Read the warnings first, then paste the formula into a copy of your data and check one result by hand.