Merging two or three cells together along the top of an Excel spreadsheet looks tidy at first glance—until you try to sort a column alphabetically, copy a narrow column of figures, or paste data somewhere else, and Excel abruptly halts with an error saying To do this, all the merged cells need to be the same size.
Fortunately, Microsoft Excel hides a cleaner formatting trick right inside Format Cells called Centre Across Selection. It spans your heading visually across several columns cleanly while leaving every individual cell underneath unlocked, sortable, and easy to copy.
Why Merged Cells Cause So Many Everyday Spreadsheet Errors
When you click Merge & Centre across cells A1 through D1, Excel deletes the separate boundaries between them and treats all four columns as one oversized brick. Because sorting and filtering expect neat rectangular columns of uniform width, a single merged title sitting above your table often causes Excel to highlight all four columns when you click just Column B—breaking simple tasks like sorting dates, copying one column, or summing a vertical list.
Use Centre Across Selection Instead of Merging Cells
This setting looks completely identical on screen and on printed pages, without gluing separate cells together behind the scenes.
- If your heading cell is already merged, select it first and click Merge & Centre on the Home tab once to unmerge it back to normal cells.
- Type your title into the leftmost cell of the group (for example, cell
A1). - Highlight that cell plus the empty cells to the right that you want the title centred across (for example,
A1:D1). - Right-click the highlighted cells and choose Format Cells (or press Ctrl + 1 on Windows, Cmd + 1 on Mac).
- Click the Alignment tab at the top of the window.
- Open the drop-down menu marked Horizontal and select Centre Across Selection.
- Click OK.
Your heading now sits centred cleanly across columns A to D, yet clicking cell B2 or selecting column C selects only that single column as normal—zero sorting errors, zero copy-paste warnings.
Quickly Hunt Down Hidden Merged Cells in an Inherited Workbook
If someone else sent you a massive spreadsheet that refuses to sort and you cannot spot which row has a rogue merged cell hiding inside it, Excel’s Find tool locates all of them in seconds.
- Press Ctrl + F (Cmd + F on Mac) to open Find and Replace, then click Options >>.
- Click Format… next to the empty Find what box (ignore the text input itself).
- Go to the Alignment tab, tick Merge cells until it shows a solid checkmark, and click OK.
- Click Find All—Excel lists every merged cell in the sheet at the bottom of the box so you can click each one and swap it cleanly over to Centre Across Selection.
Replacing merged headings with Centre Across Selection keeps every spreadsheet neat for printing while keeping formulas, sorting, and filtering trouble-free. If your workbook is also throwing locked-cell messages when trying to tidy up layout, read our fix for why Excel won’t let you edit cells and how to unlock them.