Function Problems

Fix Excel for Mac Showing #NAME? for XLOOKUP and UNIQUE

Huma Ashraf ChHuma Ashraf Ch Oct 28, 2026 872 views

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.

How to Fix Excel for Mac Showing #NAME? for XLOOKUP and UNIQUE
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.
Before you start

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.

Solution 1Recommended

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.

1
Check current license

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.

2
Remove existing license files

If the license is incorrect or missing, close Excel and download the official Microsoft License Removal Tool for Mac from the Microsoft Support website.

3
Run the removal tool

Open the downloaded .pkg file and follow the on-screen instructions to clear the corrupted license data from your Mac.

4
Reactivate Office

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.

Verify and Reactivate Your Microsoft 365 License
License Synced: Once the correct license is applied, the #NAME? errors in your workbook should automatically recalculate and display the correct values.
Advanced Spreadsheet Software

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. 1. Install WPS Office: Download and install the free WPS Office suite for Mac from the official website.
  2. 2. Open your workbook: Launch WPS Spreadsheet and open the Excel file containing your XLOOKUP and UNIQUE formulas.
  3. 3. View your data instantly: WPS Spreadsheet will instantly recognize and calculate the formulas, eliminating the #NAME? error without requiring complex account troubleshooting.
Natively supports XLOOKUP, UNIQUE, and other dynamic array functions100% compatible with Microsoft Excel file formats (.xlsx, .xls)No complicated license verification or sync errorsLightweight, fast, and fully optimized for macOS
microsoft office alternative - wps office

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.