How to Fix Excel SORT Function #NAME? Error on Mac
Question details
The user is encountering a #NAME? error when trying to organize data using the SORT function in Excel on a Mac.

- Product
- Microsoft Excel
- Device & OS
- Mac
- Scenario
- Attempting to dynamically sort a range or array of data using the SORT formula in a spreadsheet.
- Observed behavior
- The cell returns a #NAME? error instead of the sorted results, indicating that Excel does not recognize the function name.
Before troubleshooting your software version, double-check that you have spelled the SORT function correctly in the formula bar, as typos will also trigger a #NAME? error.
Check and Update Your Microsoft Excel Version
Verify if your current Excel installation supports dynamic array functions like SORT, and update the software if a newer version is available.
The SORT function is a dynamic array formula introduced in newer versions of Excel. It is natively supported in Microsoft 365 subscriptions and perpetual licenses starting from Excel 2021. Older standalone versions like Excel 2016 or 2019 do not support this feature.
Launch Microsoft Excel on your Mac. In the top menu bar, click on 'Excel' and select 'About Microsoft Excel' from the dropdown.
Look at the license information in the dialog box. Ensure it says 'Microsoft 365 Subscription' or 'Office 2021' (or newer).
If you have a supported license but are running an outdated build, click on 'Help' in the top menu bar and select 'Check for Updates' to install the latest patches.

Use the Built-in Data Sort Tool as an Alternative
If you cannot upgrade to a newer version of Excel, use the standard manual sorting feature available in all Excel versions.
Organize Spreadsheets Flawlessly with WPS Office
If you are restricted by unsupported functions and version incompatibility in older Microsoft Office software, consider switching to WPS Office. It is a powerful, free, and lightweight alternative that ensures seamless data management without expensive subscriptions.
- 1. Install WPS Office: Download and install the free WPS Office application for your Mac.
- 2. Open Your Workbook: Launch WPS Spreadsheet and easily open your existing Excel files.
- 3. Manage Data Easily: Utilize the extensive built-in tools under the Data tab to seamlessly sort and organize your information.

Frequently Asked Questions
Why does my SORT formula show a #NAME? error in Excel?
The #NAME? error occurs when Excel does not recognize the function name entered. This typically happens if the function is misspelled, or if you are using an older version of Excel that does not include the newer dynamic array functions.
Which versions of Excel for Mac support the SORT function?
The SORT function is supported exclusively in Microsoft 365 subscriptions and the standalone versions of Excel 2021 and newer. It is not available in Excel 2019, 2016, or older releases.
Can I add dynamic array functions to older versions of Excel?
No, dynamic array functions like SORT, FILTER, and UNIQUE are hardcoded into newer versions of the Excel computation engine. They cannot be downloaded as add-ins for older perpetual versions like Office 2019.
How can I sort data dynamically if I don't have Microsoft 365?
Without the SORT function, you can rely on the manual 'Sort' button found under the Data tab. Alternatively, you can use a complex combination of older functions (like INDEX, MATCH, and LARGE/SMALL) to mimic dynamic sorting, though this is heavily advanced and less efficient.




