Formula Errors

How to Fix SORT and UNIQUE #NAME? Errors in Excel for Mac

Jason MillerJason Miller Oct 29, 2026 873 views

Question details

Users encounter a #NAME? error when attempting to execute the SORT or UNIQUE dynamic array functions in Excel for Mac.

How to Fix SORT and UNIQUE #NAME? Errors 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.
Before you start

Verify your current internet connection and save all open workbooks before checking for updates or creating a new system user profile.

Solution 1Recommended

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.

1
Open Excel Information

Launch Microsoft Excel on your Mac. Navigate to the top menu bar, click on 'Excel', and choose 'About Microsoft Excel'.

2
Check the License Type

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.

3
Check for Updates

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.

Verify Microsoft 365 Subscription and Update Excel
Free Microsoft Office alternative

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. 1. Download the Application: Visit the official WPS website to download the free WPS Office suite tailored for Mac devices.
  2. 2. Open Your Workbooks: Launch WPS Spreadsheet and open your existing .xlsx files directly, preserving your current formatting and layouts.
  3. 3. Work Seamlessly: Use the familiar interface to instantly resume editing, calculating, and organizing your data without compatibility hurdles.
Completely free to use with a lightweight installation process.High compatibility with Microsoft Excel formats including .xlsx, .xls, and .csv.Familiar user interface ensuring seamless migration and zero learning curve.Powerful spreadsheet capabilities to manage formulas and complex datasets effectively.
microsoft office alternative - wps office

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.