How to Fix XLOOKUP #NAME? Error After Filtering in Excel
Question details
The user encounters a #NAME? error in cells containing XLOOKUP formulas immediately after filtering columns in an Excel worksheet.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Filtering columns in a worksheet that relies on XLOOKUP formulas to fetch and display data.
- Observed behavior
- The XLOOKUP formulas fail and display a #NAME? error upon filtering, which typically indicates an unrecognized function name, syntax issue, or version compatibility problem rather than an issue with the filter itself.
Ensure you save a backup copy of your workbook before modifying formulas or removing structured references to prevent accidental data loss during troubleshooting.
Verify Excel Version Compatibility
The #NAME? error most commonly occurs if the spreadsheet is opened in a version of Excel that does not support the XLOOKUP function.
XLOOKUP is a relatively modern function. It is only supported in Microsoft 365, Excel 2021, and newer versions. If you or a colleague open the file in Excel 2019 or older, the application will not recognize the XLOOKUP function and will instantly return a #NAME? error.
Open Excel, click on 'File' in the top-left corner, and select 'Account' (or 'Help' in older versions). Look under 'Product Information' to see your exact version.
If you are using an unsupported version like Excel 2016 or 2019, you must replace the XLOOKUP formula with an INDEX and MATCH combination or a standard VLOOKUP.

Check Formula Syntax and Regional Settings
A simple typo in the function name or incorrect regional separators can cause Excel to interpret the formula as an undefined text name.
Isolate the Issue from Worksheet Filters
Since the error appears after filtering, it is important to test the formula in a clean environment to see if external links or broken structured tables are at fault.
Use XLOOKUP Flawlessly in WPS Office
WPS Office fully supports modern functions like XLOOKUP, ensuring that your dynamic tables and filtered data calculate perfectly. It offers an intuitive interface and high compatibility with complex Excel formulas, eliminating frustrating #NAME? errors.
- 1. Open Your Spreadsheet: Launch WPS Spreadsheet and open your .xlsx file containing the data you want to analyze.
- 2. Input the XLOOKUP Formula: Select the target cell, type =XLOOKUP(, and follow the on-screen syntax guide to select your lookup value, lookup array, and return array.
- 3. Apply Data Filters: Go to the Data tab and apply your column filters. WPS Spreadsheet dynamically recalculates the XLOOKUP results without generating compatibility errors.

Frequently Asked Questions
Why does XLOOKUP show #NAME? only when I send the file to a colleague?
Your colleague is likely opening the file in an older version of Excel (such as Excel 2016 or 2019) that does not support the XLOOKUP function. Because the function doesn't exist in their version, Excel treats the formula as an unrecognised text string, resulting in the #NAME? error.
Can applying a filter directly cause a #NAME? error in Excel?
Filtering rows itself does not inherently cause a #NAME? error. However, applying a filter forces Excel to recalculate formulas on the sheet. If an XLOOKUP formula contains a typo, references a missing defined name, or includes a broken external link, the recalculation triggered by the filter will expose the error.
How do I fix the #NAME? error if I cannot upgrade my Excel version?
If you must use a version of Excel that does not support XLOOKUP, you need to rewrite the formula. The most robust alternative is using the INDEX and MATCH functions together, which offer similar flexibility to XLOOKUP and are fully supported across all versions of Excel.




