How to Filter Excel Data That Contains Merged Cells
Question details
The user needs to correctly filter a dataset that includes merged cells without losing the subsequent rows associated with the merged value.
- Product
- Excel / WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Filtering a spreadsheet dataset where certain columns group data visually using merged cells.
- Observed behavior
- When applying a filter, Excel only displays the first row of a merged range, hiding the rest of the rows because the underlying cells are technically blank.
Identify the columns containing merged cells and decide whether you want to permanently unmerge them for better data structure or use a temporary helper column to preserve your visual layout.
Unmerge Cells and Fill Blank Rows
This is the most reliable method for data management. By unmerging the cells and filling the empty rows with the correct values, standard filters will work perfectly.
When you merge cells in Excel, only the upper-left cell retains the data. The rest become blank. Unmerging and populating these blanks ensures data integrity.
Select the column containing the merged cells. On the Home tab, click the 'Merge & Center' button to unmerge them.
Keep the unmerged range selected. Press F5 (or Ctrl+G) to open the Go To dialog. Click 'Special', select 'Blanks', and click OK.
With the blank cells highlighted, type '=' and press the Up Arrow key on your keyboard to reference the cell immediately above it.
Press Ctrl + Enter to fill all selected blank cells with the formula. You can now apply your filter normally.
Create a Helper Column with an IF Formula
If you must keep the original merged cells for presentation purposes, you can create an adjacent helper column to handle the filtering logic.
Easily Filter and Manage Merged Cells in WPS Spreadsheet
WPS Spreadsheet provides powerful and intuitive tools for unmerging cells, filling blank data, and applying advanced filters, helping you organize complex datasets effortlessly.
- 1. Open your file: Launch WPS Spreadsheet and open the document containing the merged cells.
- 2. Unmerge cells: Select the merged data, go to the Home tab, click the 'Merge and Center' dropdown, and choose 'Unmerge Cells'.
- 3. Fill blanks: Use the shortcut Ctrl+G to open the Go To dialog, select 'Blanks', type '=', press the Up Arrow key, and press Ctrl+Enter.
- 4. Apply filters: Navigate to the Data tab and click 'AutoFilter' to accurately filter your newly structured data.

Frequently Asked Questions
Why does Excel only show the first row when filtering merged cells?
When cells are merged, Excel only stores the data value in the top-left cell of that merged block. The subsequent rows become entirely blank in the system's backend, which is why the filter excludes them when searching for specific data.
Can I filter merged cells directly without unmerging them?
Directly filtering a column with merged cells will always yield incomplete results because of the hidden blank rows. To keep the visual merged layout, you must use a helper column with an IF formula to duplicate the values for filtering purposes.
How do I quickly find all merged cells in my spreadsheet?
You can locate all merged cells by pressing Ctrl+F to open the Find dialog. Click 'Options', then click 'Format', navigate to the 'Alignment' tab, and check the 'Merge cells' box. Click 'Find All' to display a list of all merged locations.




