If you cannot use XLOOKUP in Excel, the most common cause is that you are running a version that does not include it. XLOOKUP is available only in Microsoft 365, Excel 2024, Excel 2021, and Excel for the web, plus the Excel apps for iPhone, iPad, and Android. It is not available in Excel 2019, 2016, 2013, or earlier, and it is not in perpetual-license Excel editions older than 2021. If your version supports it but the function still fails, the usual culprits are a typo in the function name, a missing comma between arguments, or a formula entered in a cell formatted as Text. This guide walks through checking your version, fixing common formula errors, and using VLOOKUP or INDEX/MATCH as a fallback when XLOOKUP is genuinely unavailable.

What You'll Need

  • Excel open on your computer or in a browser, with the workbook you want to edit.
  • Permission to edit the workbook (a read-only file will not accept formulas).
  • A basic grasp of which column holds the lookup value and which column holds the result you want.

Step-by-Step

  1. Confirm your Excel version. On Windows, open Excel and go to File > Account, then look under Product Information. On Mac, go to the Excel menu > About Microsoft Excel. If the version line says Microsoft 365, Excel 2024, or Excel 2021, XLOOKUP should be available. If it says Excel 2019, 2016, or 2013, XLOOKUP is not supported and you will need an alternative (see step 7). Menu labels can differ slightly by version, device, and region.
  2. Check that you are not in Excel for the web with a restricted file. XLOOKUP works in Excel for the web, but some older workbooks opened in the browser may be in a compatibility mode that limits newer functions. If you see a Compatibility Mode banner, save a copy as an .xlsx file and reopen it.
  3. Verify the function name is spelled exactly XLOOKUP. Excel will not recognise XLOOKUP, XLOOKUP(), or XLOOKUP with a space. Type it in uppercase or let Excel auto-capitalise it; if the name stays lowercase after you press Enter, Excel did not recognise it as a function.
  4. Check the argument order. The syntax is =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode]). The first three arguments are required and must be separated by commas. A missing comma or a stray semicolon (common in some regional settings) will produce a #NAME? or #VALUE! error.
  5. Make sure the cell is not formatted as Text. Select the cell, right-click, choose Format Cells, and set the category to General. A Text-formatted cell displays the formula as text instead of calculating it.
  6. Press Enter and check for the #NAME? error. If you still see #NAME?, Excel does not recognise the function at all, which points back to an unsupported version. Move to step 7.
  7. Use VLOOKUP as a fallback. In a cell, type =VLOOKUP(lookup_value, table_array, col_index_num, FALSE). The lookup column must be the first column of the table_array, and col_index_num is the number of the column containing the result, counting from the left of the table. This works in every Excel version.
  8. Or use INDEX and MATCH for more flexibility. Type =INDEX(return_range, MATCH(lookup_value, lookup_range, 0)). This lets the lookup column sit anywhere in the table, not just the first column, and works in all modern Excel versions.
  9. If you need XLOOKUP specifically, upgrade the file or the app. Saving the workbook in a Microsoft 365 or Excel 2021+ environment and reopening it will make XLOOKUP available. If your organisation controls the Excel version, ask your IT administrator whether an update is possible.

Common Mistakes

  • Assuming XLOOKUP is a free add-in. It is built into newer Excel versions only and cannot be installed separately into Excel 2019 or earlier.
  • Forgetting the fourth argument. Without [if_not_found], a missing match returns #N/A, which looks like a broken formula.
  • Using a semicolon instead of a comma as the argument separator. Some regional Excel settings use semicolons; match whatever your Excel uses consistently.
  • Pointing lookup_array and return_array at ranges of different heights. They must be the same size, or XLOOKUP returns a #VALUE! error.
  • Leaving the cell formatted as Text, so the formula appears as plain text.

Tips

  • Use absolute references (for example $A$2:$A$100) for the lookup and return ranges so the formula copies cleanly down a column.
  • Add the [if_not_found] argument, such as "Not found", so missing values are obvious rather than showing #N/A.
  • If you share the workbook with people on older Excel versions, stick to VLOOKUP or INDEX/MATCH so the file opens cleanly for everyone.
  • Test one formula in a blank cell before filling it down a whole column; it is easier to spot a range error on a single row.

Troubleshooting

  • #NAME? error: Excel does not recognise XLOOKUP. Check the spelling, then check your version. If the version is older than 2021, use VLOOKUP or INDEX/MATCH.
  • #VALUE! error: The lookup_array and return_array are different sizes, or an argument is the wrong type. Verify both ranges cover the same number of rows.
  • #N/A error: No match was found. Check for leading or trailing spaces in the lookup value, and confirm the lookup column contains the value you expect.
  • Formula shows as text: The cell is formatted as Text. Change the format to General and re-enter the formula.
  • Formula works on one computer but not another: The other computer is likely running an older Excel version. Confirm the version on that machine and switch to a compatible function if needed.

Frequently Asked Questions

Can I install XLOOKUP in Excel 2019?

No. XLOOKUP is built into Excel and cannot be added to versions that do not include it. Use VLOOKUP or INDEX/MATCH instead.

Does XLOOKUP work in Excel for the web?

Yes, in current Excel for the web. Very old workbooks opened in the browser may run in a compatibility mode that limits newer functions; save as .xlsx and reopen.

Why does XLOOKUP return #N/A when the value clearly exists?

Usually a hidden space or a number stored as text. Trim the lookup value and check the data type in the lookup column.

Is XLOOKUP faster than VLOOKUP?

For large workbooks XLOOKUP can be more efficient because it does not scan the whole table, but the difference is minor for everyday sheets.

Can I use XLOOKUP on a Mac?

Yes, in Microsoft 365 for Mac and Excel 2021 or later for Mac. Older Mac Excel versions do not include it.

What is the simplest replacement for XLOOKUP?

INDEX with MATCH: =INDEX(return_range, MATCH(lookup_value, lookup_range, 0)). It works in every modern Excel version and does not require the lookup column to be first.