How to Filter Excel Rows Without Hiding Related Data in Merged Cells
Question details
The user needs to filter a dataset properly without Excel hiding related action rows, a problem triggered by the use of merged cells for categories like case numbers and statuses.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Filtering a structured dataset where primary columns (like case numbers and statuses) use merged cells spanning across multiple related secondary action rows.
- Observed behavior
- When applying an Excel filter, only the first row of the merged range remains visible, while the related action rows are hidden because Excel treats the underlying cells of the merged range as blank.
Before proceeding, save a copy of your worksheet. Ensure you have identified all the columns containing merged cells that need to be separated and filled for accurate filtering.
Unmerge Cells and Fill Data to Enable Accurate Filtering
The most reliable way to filter related rows is to remove merged cells, fill the newly empty rows with the repeated data, and convert the range into a Table.
Merged cells are not suitable for structured data because only the top-left cell contains the actual value. To make filters work correctly across all related action rows, the data must be repeated on every single row.
Select the columns containing the merged case numbers and statuses. Go to the Home tab and click the 'Merge & Center' button to unmerge them.
Keep the unmerged cells selected. Press F5 to open the Go To dialog box, click 'Special', select 'Blanks', and click OK to highlight only the empty cells.
Type an equals sign (=) and press the Up arrow key on your keyboard to reference the cell directly above. Press Ctrl + Enter to fill all selected blank cells with the repeated values.
Copy the entire column, right-click, and select 'Paste as Values' to remove the formulas and keep the static text.
Select your entire dataset and press Ctrl + T to convert it into an Excel Table. You can now use the header dropdowns or Slicers to filter the data without losing related action rows.

Use a PivotTable to Summarize and Filter Data
If you want to keep the visual hierarchy without altering the original raw data structure too much, generating a PivotTable is an excellent alternative.
Easily Filter Complex Data Sets in WPS Spreadsheet
WPS Spreadsheet provides powerful data formatting and filtering tools. You can easily unmerge cells, fill blank cells in bulk, and convert data ranges to Tables or PivotTables for accurate data analysis.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing the merged cells.
- 2. Unmerge the cells: Select the target columns and click the 'Merge and Center' button on the Home tab to separate the cells.
- 3. Fill the blanks: Press Ctrl+G to open the Go To dialog, choose 'Blanks', and fill them using the formula referencing the cell above (=Up Arrow) followed by Ctrl+Enter.
- 4. Apply Filters: Select your corrected data range and click 'AutoFilter' under the Data tab to filter rows properly without losing related records.

Frequently Asked Questions
Why do merged cells mess up Excel filters?
Merged cells only store the data value in the top-left cell of the merged range. When you apply a filter, Excel only registers the value in that first row, evaluating the remaining rows of the merged range as blank, which causes them to be hidden.
Can I filter data while keeping the cells merged?
No, standard filtering does not work correctly with merged cells. You must unmerge them and repeat the data for accurate filtering. If you prefer a cleaner look, you can use Conditional Formatting to hide repeated values visually while keeping the data intact.
What is the fastest way to fill blank cells after unmerging?
The fastest method is using the 'Go To Special' feature (Ctrl+G > Special > Blanks), typing an equals sign (=) followed by the up arrow key, and pressing Ctrl+Enter to fill all selected blank cells with the value directly above them.
Does formatting as an Excel Table help with filtering?
Yes, converting your raw data into an Excel Table (Ctrl+T) automatically adds filter dropdowns to the headers and ensures that your dataset is treated as a single cohesive block of structured data, making filtering and sorting much more reliable.




