How to Fix Excel Filtering When Merged Cells Hide Rows
Question details
The user needs to correctly filter a dataset where merged cells or blank rows under a category label prevent all related rows from being displayed.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Applying an AutoFilter to a column that contains merged cells acting as category headers for multiple rows.
- Observed behavior
- The AutoFilter only returns the first row associated with the merged cell, effectively hiding the rest of the related rows because they are treated as blank.
Identify which columns contain the merged cells and clear any active filters in your spreadsheet so that no hidden rows are accidentally excluded from the data update.
Unmerge Cells and Fill Blanks with Go To Special
This is the most reliable method to ensure every row has a filterable value. By unmerging the cells and copying the category label to all corresponding blank rows, AutoFilter will function perfectly.
Excel's AutoFilter evaluates each row individually. When cells are merged, only the top-left cell retains the data, leaving the subsequent rows empty. Filling these empty rows is required for the filter to recognize them.
Select the column containing the merged cells. Go to the Home tab and click 'Merge & Center' to unmerge them.
With the column still selected, press F5 or Ctrl+G to open the Go To dialog. Click 'Special', select 'Blanks', and click OK.
Type an equals sign (=) and press the Up arrow key on your keyboard to reference the cell directly above the first blank cell (e.g., =A2).
Press Ctrl+Enter simultaneously. This applies the formula to all selected blank cells, filling them with the correct category labels.
Select the entire column, copy it (Ctrl+C), right-click, and select 'Paste as Values' to remove the formulas and keep the static text.

Seamlessly Fix Data Filtering Issues with WPS Spreadsheet
WPS Spreadsheet provides powerful tools like Go To Special and AutoFilter, allowing you to quickly unmerge cells, fill missing data, and accurately filter complex datasets without hassle.
- 1. Open Your Spreadsheet: Launch WPS Office and open your Excel document containing the merged cells.
- 2. Unmerge and Locate Blanks: Select the column, click 'Merge and Center' to unmerge, then press Ctrl+G to open the Go To dialog and select 'Blanks'.
- 3. Fill the Blank Rows: Type '=' and press the Up arrow key, then press Ctrl+Enter to fill the empty rows with the category values.
- 4. Filter the Data: Select your header row, navigate to the Data tab, and click the Filter icon to display all related rows flawlessly.

Frequently Asked Questions
Why does AutoFilter fail when applied to merged cells?
When cells are merged in Excel, only the topmost left cell physically contains the data. The other cells within the merged block become blank. Because AutoFilter evaluates row by row, it only finds the value in the first row and hides the blank ones.
Can I filter data without unmerging the original cells?
Yes, you can create a 'Helper Column' next to your dataset. In this new column, use a formula to extract or reference the values from the merged column, fill it down, and apply your filter to the helper column instead.
How can I make unmerged cells look like they are still merged?
After unmerging and filling the blank cells, you can apply Conditional Formatting to hide duplicated text, or simply change the font color of the repeated text to match the white background of the cell.




