logo
search
Office Settings & Configuration

How to Fix Excel Filter and Sort Commands Grayed Out

Kushani NimanthikaKushani Nimanthika Sep 29, 2026 870 views

Question details

The user needs to restore the Filter and Sort commands in Excel, which are currently unavailable or disabled after adding data.

How to Fix Excel Filter and Sort Commands Grayed Out
Product
Excel
Device & OS
not provided
Scenario
Attempting to sort or filter data within a worksheet.
Observed behavior
The Filter and Sort commands on the Data tab are grayed out and cannot be clicked.
Before you start

Make sure you have selected the correct worksheet and that multiple sheets are not currently grouped, as grouping sheets can automatically disable data commands.

Solution 1Recommended

Remove Worksheet Protection

Worksheet protection can prevent users from applying filters or sorting data. Unprotecting the sheet will restore these commands.

When a worksheet is protected to prevent accidental edits, certain features like Sorting and Filtering are often locked by default. Removing this protection is the most common way to re-enable the tools.

1
Go to the Review Tab

Open your Excel workbook and click on the 'Review' tab located in the top ribbon.

2
Unprotect the Sheet

Click on 'Unprotect Sheet'. If a password was previously set by the author, you will be prompted to enter it.

3
Allow AutoFilter (Optional)

If you need to keep the sheet protected but still want to filter data, click 'Protect Sheet', scroll through the 'Allow all users of this worksheet to' list, and check the boxes for 'Use AutoFilter' and 'Sort' before applying the protection.

Remove Worksheet Protection
Password Required: You will need the correct password if the worksheet was protected with one. Without it, the sheet cannot be unprotected.
Free Microsoft Office alternative

Edit, Sort, and Filter Excel Files Easily with WPS Office

Experiencing issues with grayed-out commands in Microsoft Excel? Try WPS Office. It provides a lightweight, free alternative that is highly compatible with Microsoft Excel files, allowing you to easily manage worksheet protection, unmerge cells, and apply advanced data filters without hassle.

  1. 1. Download and Install: Download WPS Office Free and follow the on-screen instructions to install it on your device.
  2. 2. Open Your File: Launch WPS Spreadsheet and open your problematic Excel file.
  3. 3. Edit and Filter: Navigate to the Data tab to seamlessly sort and filter your information.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Easily manage worksheet protection and unmerge cells to restore filtering.Lightweight installation with a familiar, easy-to-navigate interface.Free to use for basic spreadsheet editing and advanced data analysis.
QA img-9

Frequently Asked Questions

Why is the Filter button grayed out when multiple sheets are selected?

When multiple worksheets are grouped together, Excel disables certain data management tools, including Sort and Filter, to prevent unintended bulk changes across all sheets. Right-click any sheet tab at the bottom and select 'Ungroup Sheets' to restore the commands.

Can I use filters on a shared workbook?

In older versions of Excel, sharing a workbook using the legacy 'Share Workbook' feature restricts certain actions, which can cause the Filter button to gray out. Unshare the workbook from the Review tab to regain full functionality, or upgrade the document to use the modern Co-authoring feature instead.

How do I fix a grayed-out Sort command if my file is in Read-Only mode?

If an Excel file is opened in Read-Only mode or Protected View (which often happens when downloading files from the internet), editing and data commands are disabled for security. Click the 'Enable Editing' button in the yellow warning banner at the top of the screen to activate the Sort and Filter tools.