Fix Excel Protected Worksheet Does Not Allow Sorting
Question details
The user is unable to sort data in an Excel worksheet even after enabling the 'Sort', 'Use AutoFilter', and select cell permissions during worksheet protection.
- Product
- Microsoft Excel (Microsoft 365)
- Device & OS
- not provided
- Scenario
- Attempting to sort a data range on a protected worksheet where edit ranges and sort permissions were explicitly configured beforehand.
- Observed behavior
- Sorting remains blocked, and Excel reports that the sheet cannot be sorted, which has been identified as a Microsoft 365 feature limitation.
Verify that your worksheet data does not contain merged cells within the sort range, as merged cells can prevent sorting independently of worksheet protection settings.
Temporarily Unprotect Worksheet and Submit Feedback
Since this is a confirmed feature limitation in Microsoft 365, the most reliable workaround is to temporarily remove protection to sort the data, and report the issue to Microsoft.
Excel sometimes prevents sorting on a protected worksheet even when the 'Sort' permission is explicitly checked in the protection dialog. This is a known ongoing feature limitation in Microsoft 365.
To successfully sort your data, you must temporarily remove the worksheet protection, perform your sorting operation, and then reapply the protection.
Navigate to the 'Review' tab on the Excel ribbon and click 'Unprotect Sheet'. If a password was set, enter it and click 'OK'.
Highlight the data range you wish to sort. Go to the 'Data' tab and click 'Sort' to arrange your data as needed.
Return to the 'Review' tab and click 'Protect Sheet'. Re-check the necessary permissions (including Sort and Use AutoFilter), enter your password, and confirm.
To help prioritize a fix, go to 'Help' > 'Feedback' in Microsoft 365. Report that 'Sort' permissions on protected sheets are failing, and include your exact worksheet protection settings.
Try WPS Office for Reliable Spreadsheet Management
If Microsoft Excel feature limitations and unexpected permission bugs are slowing down your workflow, WPS Office offers a highly compatible and free alternative. With WPS Spreadsheet, you can manage worksheet protections, filter, and sort data efficiently.

Frequently Asked Questions
Why can't I sort even though I checked 'Sort' in the Protect Sheet dialog?
This is a known feature limitation in Microsoft 365. Excel may still block sorting operations on protected sheets even if the correct permissions are checked and edit ranges are defined prior to protection.
Can I use VBA macros to sort a protected worksheet?
Yes. You can write a VBA macro that temporarily unprotects the worksheet (using your password in the code), sorts the specified data range, and then immediately reprotects the worksheet in the background.
Does AutoFilter work on a protected sheet?
AutoFilter typically works on a protected sheet if 'Use AutoFilter' was checked during protection and the filter dropdowns were enabled before protecting the sheet. However, applying a 'Sort' via the AutoFilter dropdown might still be blocked due to the same limitation.
How do I edit my worksheet if I forgot the protection password?
If you forget the worksheet protection password, you cannot natively recover it within Excel. You will need to restore an older, unprotected version of the file from your backups or use specialized third-party password recovery tools.




