Merged cells wreck my sort and filter
The result sorts and filters row by row.
A filter on Department should return every Home & Kitchen order. In a sheet where the department name sits in one merged cell above two order rows, it returns one. The second order is still in the file, with its order number and its amount, but its department cell is empty, so the filter passes over it and a sort drops it somewhere it does not belong.
- Upload an XLSX workbook with merged cells.
- Merged cells need no settings. Under Options, you can limit the run to one worksheet, or list column letters and a first row to fill other blanks too. Select Unmerge cells and check the preview. Filling down stops at blank rows and formula-only rows.
- Download the result and compare it with the original workbook.
A filter that skips the rows under a merged cell
A merged cell holds its value in the top cell of the range and leaves the cells below it blank. Filters, sorts, pivot tables and imports all read one row at a time, so a row with an empty department cell reads as a row with no department at all. The same thing happens wherever a label was stretched across rows to make a sheet look tidy.
Excel's own unmerge leaves the blanks empty
In Excel, you select the merged cell, open the Merge & Center menu and choose Unmerge Cells. The value goes back to the top-left cell and the other cells stay empty. So the second Home & Kitchen order still has no department after unmerging, and the filter still misses it. You still have to copy the value down into every blank the merge left behind. This tool unmerges and fills those blanks in one step.
- Excel unmerge: Merge and unmerge cells in Excel
Put in an order sheet, get one department per row
Take an order sheet with Department, Order ID and Amount columns. Home & Kitchen is merged across two orders, OR-20481 ($1,249.50) and OR-20482 ($89.95), and Electronics sits on OR-20483 ($2,050.00). Press Unmerge cells and the screen says "Done: unmerged 1 range and filled 1 blank". The preview shows:
| Department | Order ID | Amount |
|---|---|---|
| Home & Kitchen | OR-20481 | 1249.5 |
| Home & Kitchen | OR-20482 | 89.95 |
| Electronics | OR-20483 | 2050 |
The preview shows plain numbers such as 1249.5. Check the amount format in the downloaded file, because cell formatting is not guaranteed to carry over.
If the workbook has more than one sheet, pick one under Worksheets to process or choose All worksheets. Sheets you leave out stay as they are. A West label merged across three order rows comes back as West on all three: "Done: unmerged 1 range and filled 2 blanks". Try an example loads a sheet with three store names, each merged over three rows, and gives "Done: unmerged 3 ranges and filled 6 blanks".
An old .xls file won't open. The screen says "Could not read the workbook. Save the original as XLSX and try again." Password-protected workbooks can't be opened either. The tool takes XLSX files up to 10 MB and 500,000 cells in total, with at most 50,000 rows by 200 columns per sheet. Everything is processed in the browser the file was opened in.
If the workbook has no merged cells, you see "Done: unmerged 0 ranges and filled 0 blanks" and "No merged cells or fillable blanks were found. Choose a workbook that contains merged cells." Nothing in the file was changed. If the labels look merged, check whether they really are merged cells or only centered across them.
What a CSV upload does to dates and numbers
Once the sheet is flat, the usual next step is saving it as CSV or moving it into an accounting upload form. When Excel opens a CSV, it guesses each column's format from its default settings, so dates, long numbers and leading zeros can change. Microsoft's help page points to the Import Text Wizard when you need more control, for example to keep the leading zeros in a column of numbers.
- CSV import: Import or export text (.txt or .csv) files
If the file is headed for an accounting import, run it through Prevent Excel Data Loss: CSV Value Check first to find the cells that would change when the file is opened.
Check past the fiftieth row
The preview shows the first 50 rows and no more. After downloading, open the cleaned workbook and scroll past row 50 to check that each value landed on the right rows, especially where a merged range sat low in the sheet.
Files and personal information
Files and anything you enter are not sent to a server. They are processed only in the browser you are using now, and closing the window clears what you entered.
The problem this tool solves: Merged cells break sorting and filtering.