Excel Filter Not Working on All Rows: How to Fix It
In this article
Excel filters usually stop working on all rows because of blank rows or columns that break the continuous data range, or because the filter was applied to a specific selection rather than the entire dataset. To fix this immediately, clear all existing filters, select your entire data range manually (Ctrl + A or click and drag), and then re-apply the filter from the Data tab.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- The spreadsheet containing the data that is not filtering correctly.
- Administrative permissions to edit the workbook.
Step-by-Step
- Remove Existing Filters: Before attempting to fix the range, you must clear the current filter settings. Go to the Data tab on the top ribbon and click the Filter button to toggle it off. This removes the dropdown arrows from your header row and resets the data view.
- Identify Blank Rows: Scroll through your dataset to look for completely empty rows. Excel's "AutoFilter" feature identifies the data range by looking for contiguous cells. If there is a completely blank row (where every cell in that row is empty), Excel assumes the data set ends there, and any rows below that gap will be ignored by the filter.
- Remove or Fill Blank Rows: To ensure the filter covers everything, you have two choices. You can either delete the blank rows entirely by right-clicking the row number and selecting Delete, or you can enter a placeholder value (like "N/A" or "0") in at least one column of that blank row to maintain the connection between the top and bottom of your list.
- Manually Select the Entire Data Range: Instead of clicking a single cell and hitting filter, manually define the area. Click the top-left cell of your data (usually the header). Hold the Shift key and click the bottom-right cell of your entire dataset. Alternatively, click and drag your mouse to highlight every row and column you want included.
- Re-Apply the Filter: With the entire range highlighted, go back to the Data tab and click Filter. You will now see the dropdown arrows on the header row, and because you manually selected the range, Excel is forced to include every row within that selection, regardless of blank gaps.
- Convert Data to an Official Table: For a permanent fix that expands automatically as you add new data, convert your range into an Excel Table. Select your data, go to the Insert tab, and click Table. Ensure the box "My table has headers" is checked. Tables treat the entire block as a single object, meaning filters will always apply to every row within the table boundaries.
Common Mistakes
One of the most frequent mistakes is relying on the "one-click" filter method. When you click a single cell and press the filter button, Excel uses an algorithm to guess where your data ends. If you have a blank row at row 50 and data continuing down to row 100, Excel will only filter rows 1 through 49. Users often assume the filter is broken when, in reality, Excel simply didn't realize the data continued past the gap.
Another common error is filtering data that contains merged cells. Merged cells are notorious for breaking the structural integrity of a spreadsheet. If your header row or any of your data rows contain merged cells, the filter may skip rows, display incorrect results, or refuse to activate on certain columns. Always unmerge cells in your data area before applying a filter.
Users also frequently forget to check for hidden rows. Sometimes a filter is actually working, but previous manual hiding of rows (Right Click > Hide) makes it appear as though the filter is skipping data. To resolve this, select the entire sheet and right-click any row header, then select Unhide before applying your filter.
Tips
To keep your data clean and filter-ready, avoid using empty rows as visual separators. If you need visual space between sections, use cell borders or change the row height instead of leaving a row completely blank. This keeps the data contiguous and ensures that any automated tool, including filters and pivot tables, recognizes the full range.
Use keyboard shortcuts to speed up the process. Pressing Ctrl + Shift + L (Windows) or Cmd + Shift + F (Mac) is the fastest way to toggle filters on and off. This is much quicker than navigating the ribbon menu every time you need to reset your view.
If you are working with massive datasets, consider using "Slicers" if you have converted your data into a Table. Slicers provide a visual interface for filtering that is much more intuitive than the dropdown menus and makes it immediately obvious which data is being excluded from the view.
Troubleshooting
If the filter still isn't working after following the steps above, check if the worksheet is protected. If a sheet is protected, certain data manipulation features, including filtering, may be disabled. Go to the Review tab and check if it says Unprotect Sheet. If it does, click it (and enter the password if required) to regain full control over the filter settings.
Check for "Ghost" data or formatting. Sometimes cells look empty but contain a space character or a non-printing character. This can confuse Excel's range detection. To clear this, select the columns that seem empty, go to the Home tab, click Clear (the eraser icon), and select Clear All. This ensures the cells are truly empty, allowing you to either delete the row or properly fill it.
Verify that you aren't in "Edit Mode." If your cursor is blinking inside a cell, many ribbon options, including the Filter button, will be greyed out or non-functional. Press Enter or Esc to exit the cell and try applying the filter again.
If you are using a shared workbook or a file stored on OneDrive/SharePoint, ensure that another user hasn't applied a "Sheet View." In the View tab, check if you are in a temporary view. Sheet Views allow users to filter data without affecting what others see, but if you are in a restricted view, you might not see the changes you expect across the entire row set.
Frequently Asked Questions
Why does my filter stop at a certain row?
This happens because there is a completely blank row in your data. Excel interprets a blank row as the end of the data region. To fix this, either delete the blank row or manually select the entire range before clicking the Filter button.
Can I filter a range that has merged cells?
While you can technically apply a filter to a range with merged cells, it often leads to unpredictable behavior, such as skipping rows or failing to display all matching values. It is highly recommended to unmerge all cells in the data range for the filter to work accurately.
Does converting data to a Table fix filter issues?
Yes. Converting your range to a Table (Insert > Table) creates a defined object. This tells Excel exactly where the data starts and ends, meaning the filter will apply to every row within that table regardless of whether there are blank cells inside.
Why is the Filter button greyed out?
The Filter button is usually greyed out for one of three reasons: the worksheet is protected, you are currently editing a cell (cursor is blinking inside a cell), or the workbook is shared in a legacy mode that restricts certain structural changes.
How do I clear all filters at once?
Instead of clearing each column one by one, go to the Data tab and click Clear (located next to the Filter toggle). This removes all active filter criteria across all columns but keeps the dropdown arrows active for future use.
Will filtering delete my data?
No, filtering only hides rows that do not meet your specified criteria. The data is still there; it is simply not visible. To see all your data again, you can either click Clear in the Data tab or toggle the Filter button off and on again.