logo
search
Function Problems

Fix Excel SORT Function Replaced by _xlfn._xlws.SORT After Update

Huda QurayshiHuda Qurayshi Oct 14, 2026 868 views

Question details

The user needs to restore the normal functionality of the SORT function after an Office update caused it to break and display an unsupported function prefix.

How to Fix Excel SORT Function Replaced by _xlfn._xlws.SORT After an Update
Product
Microsoft Excel 2019
Device & OS
not provided
Scenario
Using dynamic array functions like SORT in an Excel workbook after a recent Microsoft Office version update.
Observed behavior
The SORT formula is unexpectedly replaced by {_xlfn._xlws.SORT()}, indicating that the installed Office build no longer recognizes the dynamic array function.
Before you start

Before modifying your Microsoft Office installation, ensure you save all open workbooks and close any running Office applications. You will need administrative privileges to roll back your Office version.

Solution 1Recommended

Roll Back Microsoft Office to a Previous Version

Reverting to an older, stable version of Office is the official workaround to restore dynamic array functions broken by a recent update.

The issue is caused by a bug in the recent Office update (such as Current Channel Version 2311). Rolling back to an earlier stable build (like Monthly Enterprise Channel Version 2309) will restore the SORT function's native behavior.

1
Open Command Prompt as Administrator

Type 'cmd' into your Windows search bar, right-click on the Command Prompt app, and select 'Run as administrator'.

2
Navigate to the ClickToRun Folder

In the Command Prompt window, type 'cd %programfiles%\Common Files\Microsoft Shared\ClickToRun' and press Enter.

3
Execute the Rollback Command

Type 'officec2rclient.exe /update user updatetoversion=16.0.16827.20278' (or your previously working build number) and press Enter. Wait for the Office update dialog to download and apply the older version.

4
Disable Automatic Updates

Open Excel, navigate to File > Account > Update Options, and select 'Disable Updates' to prevent Office from automatically reinstalling the problematic build.

Roll Back Microsoft Office to a Previous Version
Temporary Workaround: Remember to occasionally check for new Office updates and re-enable them once Microsoft releases a permanent patch for the dynamic array compatibility issue.
Free Microsoft Office alternative

Try WPS Office to Avoid Frustrating Update Issues

If rolling back Microsoft Office updates feels overly complicated or fails to work, WPS Office offers a lightweight, completely free alternative. It seamlessly supports dynamic arrays and Excel formulas without forcing unstable updates on your system.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free office suite.
  2. 2. Open Your Workbook: Launch WPS Spreadsheets and open your affected .xlsx file.
  3. 3. Use Formulas Seamlessly: Enjoy native support for functions like SORT without encountering the _xlfn._xlws error prefix.
Free and lightweight alternative to Microsoft ExcelHighly compatible with .xlsx formats and dynamic array functions like SORTFamiliar user interface requiring zero learning curveStable updates that won't unexpectedly break your existing formulas
microsoft office alternative - wps office

Frequently Asked Questions

What does _xlfn. mean in an Excel formula?

The _xlfn. prefix appears when a workbook contains a function that is not natively supported by the version of Excel currently running. It stands for 'Excel Function' and serves as a placeholder to preserve the formula's data until it is opened in a compatible version.

Why did the SORT function suddenly stop working in Excel 2019?

Dynamic array functions like SORT are typically available in Microsoft 365. Occasionally, an Office update can introduce a compatibility bug in standalone versions like Excel 2019, causing the software to fail to recognize these newer functions.

Is it safe to disable Microsoft Office updates?

While temporarily disabling updates is a common and safe workaround to avoid buggy software releases, it is highly recommended to re-enable them once Microsoft issues a permanent fix. This ensures your software receives necessary security patches.

Will my spreadsheet data be lost if I roll back the Office update?

No, rolling back your Office installation only affects the application files. It will not delete or modify your personal documents or spreadsheets. However, it is always a best practice to save your work before performing any system changes.