Fix Excel for Mac Showing #NAME? for XLOOKUP and UNIQUE
Question details
The user needs to fix a #NAME? error occurring when using XLOOKUP and UNIQUE functions in Excel for Mac, even though the functions work properly in Excel for the Web with their active Microsoft 365 A5 subscription.

- Product
- Microsoft Excel
- Device & OS
- macOS
- Scenario
- Working with advanced dynamic array formulas (XLOOKUP, UNIQUE) in the desktop version of Excel for Mac.
- Observed behavior
- The formulas return a #NAME? error instead of calculating, indicating that the desktop application is failing to recognize the functions despite the active Microsoft 365 subscription.
Ensure your Mac is connected to the internet and that you have your Microsoft 365 account credentials handy, as you may need to sign in again to verify your license.
Verify and Reactivate Your Microsoft 365 License
This solution fixes the issue where Excel desktop fails to recognize your active subscription, reverting to a non-subscription state that lacks newer functions like XLOOKUP.
Dynamic array functions like XLOOKUP and UNIQUE are only available to Microsoft 365 subscribers. If Excel on your Mac fails to sync your license status properly, it may lock these features and display a #NAME? error.
Open Excel on your Mac, click on 'Excel' in the top menu bar, and select 'About Microsoft Excel'. Look at the License field to see if it correctly displays your Microsoft 365 Subscription.
If the license is incorrect or missing, close Excel and download the official Microsoft License Removal Tool for Mac from the Microsoft Support website.
Open the downloaded .pkg file and follow the on-screen instructions to clear the corrupted license data from your Mac.
Restart your Mac, open Excel, and click 'Sign In'. Enter your Microsoft 365 credentials associated with your A5 subscription to reactivate the software and unlock XLOOKUP.

Update Microsoft Excel to the Latest Version
Updating ensures your local application has the latest feature patches required to run dynamic array formulas.
Test Excel in macOS Safe Mode
Use Safe Mode to determine if background cache or conflicting add-ins are causing Excel to malfunction.
Use WPS Office for Seamless XLOOKUP and UNIQUE Formulas
Tired of dealing with complex license removal tools and activation errors? WPS Spreadsheet provides built-in support for advanced dynamic array functions like XLOOKUP and UNIQUE out of the box. Open your workbooks and calculate your data immediately without #NAME? errors.
- 1. Install WPS Office: Download and install the free WPS Office suite for Mac from the official website.
- 2. Open your workbook: Launch WPS Spreadsheet and open the Excel file containing your XLOOKUP and UNIQUE formulas.
- 3. View your data instantly: WPS Spreadsheet will instantly recognize and calculate the formulas, eliminating the #NAME? error without requiring complex account troubleshooting.

Frequently Asked Questions
What does the #NAME? error mean in Excel?
The #NAME? error appears when Excel cannot recognize text in a formula. In the context of functions like XLOOKUP or UNIQUE, it usually means your current desktop version of Excel does not support these functions, often due to an inactive, outdated, or misconfigured Microsoft 365 license.
Why do my formulas work in Excel for the Web but not on Mac Desktop?
Excel for the Web is always updated to the latest version and automatically enables all Microsoft 365 features. If your desktop app has a licensing sync issue or you are running a standalone perpetual version (like Office 2019), it will not recognize newer dynamic array functions, resulting in the #NAME? error.
How do I clear the Office license cache on a Mac?
You can clear it using the official Microsoft License Removal Tool. After downloading and running this utility, it deletes previous corrupted activation data. You can then launch Excel and sign in cleanly with your active Microsoft 365 subscription credentials.
Does WPS Office support XLOOKUP and UNIQUE?
Yes, WPS Spreadsheet fully supports modern dynamic array functions, including XLOOKUP and UNIQUE. You can open your existing Excel workbooks in WPS Office and the formulas will calculate perfectly.




