How to Restore Missing SORT and UNIQUE Functions in Excel 365
Question details
Users need to restore the SORT and UNIQUE dynamic-array functions that have disappeared from Microsoft Excel 365 despite having an active subscription.

- Product
- Microsoft Excel 365 ProPlus
- Device & OS
- Windows
- Scenario
- Attempting to use dynamic-array functions to organize or filter data in Excel, only to find the functions are missing or returning errors.
- Observed behavior
- The SORT and UNIQUE functions are missing from the Excel formula library and return a #NAME? error when manually typed, likely due to a licensing sync error.
Ensure you have your Microsoft 365 account email and password ready, as you will need to sign back in after resetting your Office credentials.
Reset Office Credentials and Activation State
Clearing old cached credentials and resetting the Microsoft 365 activation state is the most effective way to restore dynamic array functions if your license sync is stuck.
Sometimes Excel fails to recognize an active Microsoft 365 subscription, temporarily disabling premium features like dynamic arrays. Forcing a complete sign-out and clearing the local credential cache will prompt Excel to re-verify your license and restore the missing functions.
Open Excel, navigate to File > Account, click Sign out for all connected Microsoft 365 accounts, and then completely close all Office applications.
Open the Windows Control Panel, go to User Accounts > Credential Manager > Windows Credentials, and remove all saved credentials that mention Microsoft Office.
Follow the official Microsoft guidelines to reset the Office 365 ProPlus activation state. This typically involves running a command line script or using the Microsoft Support and Recovery Assistant.
Restart your computer, open Excel, sign back into your Microsoft 365 account, and verify if the SORT and UNIQUE functions are now available.

Use SORT and UNIQUE Functions Seamlessly in WPS Office
WPS Spreadsheet fully supports modern dynamic array functions like SORT and UNIQUE out of the box, allowing you to organize data without worrying about complex subscription licensing errors or activation states.
- 1. Open your file in WPS Spreadsheet: Launch WPS Office and open your existing spreadsheet or create a new blank workbook.
- 2. Select the target cell: Click on the cell where you want the dynamic array results to start spilling.
- 3. Use the UNIQUE function: Type =UNIQUE(range) and press Enter to instantly extract distinct values from your selected data set.
- 4. Use the SORT function: Type =SORT(range) and press Enter to automatically sort your data array in ascending or descending order.

Frequently Asked Questions
Why did SORT and UNIQUE suddenly disappear from my Excel?
These dynamic-array functions are exclusive to Microsoft 365 and Excel 2021. If your Office activation state falls out of sync or downgrades to a non-subscription cache, Excel hides these premium functions.
Can I use SORT and UNIQUE in Excel 2019 or 2016?
No, the SORT and UNIQUE functions are not available in Excel 2019 or earlier standalone versions. You must upgrade to Microsoft 365 or use Excel for the Web to access dynamic arrays.
How do I know if my version of Excel supports dynamic arrays?
Open a blank workbook and type '=UNIQUE(' into a cell. If the autocomplete suggestion appears with a formula tooltip, your version supports dynamic arrays. If it throws a #NAME? error, it does not.




