How to Change the Order of an Excel Data Table When Ribbon is Disabled
Question details
The user needs to change the order of an Excel data table but is unable to do so because table controls and most ribbon commands are disabled.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Attempting to sort or rearrange data within an existing Excel data table.
- Observed behavior
- Most of the ribbon commands are disabled or greyed out, preventing the user from using standard sorting arrows or data movement controls.
Verify if you have the correct password for the worksheet, as you will need it to remove sheet protection before modifying the data table order.
Unprotect the Worksheet to Enable Table Sorting
Use this method to restore disabled ribbon commands by removing worksheet protection, allowing you to freely sort your data table.
When an Excel worksheet is protected, most editing tools, including sorting commands and table controls, are disabled to prevent accidental or unauthorized changes. Removing this protection is necessary to rearrange the data.
Open your Excel workbook and click on the 'Home' tab located in the top ribbon.
Locate the 'Cells' group on the ribbon and click on the 'Format' drop-down button.
Look for 'Unprotect Sheet' in the drop-down menu. If you see it, click it. (Note: If it says 'Protect Sheet', the worksheet is already unprotected and another issue is causing the disabled ribbon).
If a dialog box appears asking for a password, type the correct password and click 'OK'.
Now that the ribbon commands are enabled, click inside your data table, navigate to the 'Data' tab, and use the sorting commands to change the data order as needed.

Sort and Manage Data Tables Easily in WPS Spreadsheet
WPS Spreadsheet provides a highly compatible and user-friendly interface for managing data. You can easily unprotect sheets, sort tables, and organize your data securely and efficiently.
- 1. Open your File in WPS Office: Launch WPS Office and open your protected Excel file.
- 2. Unprotect the Worksheet: Navigate to the 'Review' tab on the top ribbon and click on 'Unprotect Sheet'. Enter the password if prompted.
- 3. Sort the Data: Select the data table, go to the 'Data' tab, and click the 'Sort' icon to instantly rearrange your information.

Frequently Asked Questions
Why are all my Excel ribbon commands greyed out?
Ribbon commands usually become greyed out when a worksheet is protected to prevent unauthorized editing. Unprotecting the sheet via the Format menu will restore full functionality.
Can I sort an Excel table without unprotecting the sheet?
Generally, no. Unless the person who protected the sheet specifically checked the boxes to allow 'Sort' and 'Use AutoFilter' in the protection settings, you must unprotect the sheet to change the data order.
How do I sort a data table after unprotecting the worksheet?
Once unprotected, click anywhere inside the data table, go to the 'Data' tab, and use the 'Sort A to Z', 'Sort Z to A', or 'Custom Sort' buttons to organize your data.




