How to Fix SORT and UNIQUE #NAME? Errors in Excel for Mac
Question details
Users encounter a #NAME? error when attempting to execute the SORT or UNIQUE dynamic array functions in Excel for Mac.

- Product
- Microsoft Excel for Mac
- Device & OS
- macOS
- Scenario
- Sorting or filtering spreadsheet data dynamically using the =SORT() or =UNIQUE() formulas.
- Observed behavior
- Entering the SORT or UNIQUE formulas produces a #NAME? error instead of calculating the expected data array, typically pointing to missing feature support or application corruption.
Verify your current internet connection and save all open workbooks before checking for updates or creating a new system user profile.
Verify Microsoft 365 Subscription and Update Excel
SORT and UNIQUE are dynamic array functions exclusively available to Microsoft 365 subscribers. Standalone versions like Office 2016 or 2019 will return a #NAME? error.
If Excel does not recognize a function name, it is often because the installed software version does not support it. Ensuring you are running an active Microsoft 365 subscription on the latest update is required for dynamic arrays.
Launch Microsoft Excel on your Mac. Navigate to the top menu bar, click on 'Excel', and choose 'About Microsoft Excel'.
In the dialog box, look for the 'License' field. It must specify 'Microsoft 365 Subscription'. If it shows a standalone version (e.g., Office 2019), these functions are unsupported.
If you do have a Microsoft 365 subscription, go to 'Help' > 'Check for Updates' in the top menu to download and install the latest available build of Excel.

Test Excel Under a New macOS User Account
If you have an updated Microsoft 365 subscription but the #NAME? error persists, your local user profile or preferences may be corrupted.
Manage Spreadsheets Easily with WPS Office
If your Excel for Mac version lacks support for advanced functions without a costly Microsoft 365 subscription upgrade, WPS Office provides a free, lightweight, and highly compatible alternative. Enjoy a familiar UI and seamless data processing capabilities.
- 1. Download the Application: Visit the official WPS website to download the free WPS Office suite tailored for Mac devices.
- 2. Open Your Workbooks: Launch WPS Spreadsheet and open your existing .xlsx files directly, preserving your current formatting and layouts.
- 3. Work Seamlessly: Use the familiar interface to instantly resume editing, calculating, and organizing your data without compatibility hurdles.

Frequently Asked Questions
Why does the SORT function show a #NAME? error in Excel 2019?
The SORT function is a dynamic array formula introduced specifically for Microsoft 365. Standalone versions like Excel 2016 or 2019 do not contain the programming for these features and return a #NAME? error because they do not recognize the formula name.
Will reinstalling Excel for Mac fix the #NAME? error?
Reinstalling the application will only resolve the issue if your installation files are corrupted. If your license type does not support dynamic array functions, reinstalling the exact same standalone version will not add SORT or UNIQUE.
How can I automatically sort data without the SORT function?
If you are using an older version of Excel, you can sort data manually by selecting your range and using the 'Sort' option under the Data tab. Alternatively, you can use complex INDEX and MATCH array formulas, though upgrading your software is generally recommended for efficiency.




