Excel guide · 4 min read
Can't merge cells in Excel: causes and fixes
Sample data
Every result on this page was calculated from this sheet by the same spreadsheet engine the Cellwise app uses.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Region | Rep | Sales | Region (filled) |
| 2 | North | Ana | 4200 | North |
| 3 | Ben | 3100 | North | |
| 4 | Chloe | 2750 | North | |
| 5 | South | Dev | 3900 | South |
| 6 | Emma | 4600 | South | |
| 7 | West | Femi | 2300 | West |
| 8 | Gus | 3350 | West | |
| 9 | Hana | 5100 | West |
Download this sheet as an Excel practice file (.xlsx)
1. Merge & Center is greyed out
Check these in order. The first one catches most people.
- Inside a table: Excel tables can't contain merged cells. Click in the table and choose Table Design > Convert to Range if you really need the merge, but you lose the table's filters, banding and auto-expanding formulas.
- Editing a cell: if the cursor is blinking in a cell or the formula bar, most of the ribbon is disabled. Press Enter or Esc.
- Protected sheet: go to Review > Unprotect Sheet.
- Old shared workbook: if the title bar says Shared, go to Review > Share Workbook (Legacy) and untick sharing. Modern co-authoring through OneDrive doesn't block merging.
2. "Merging cells only keeps the upper-left value"
Merge three cells that each hold a name and Excel warns that it will keep only the upper-left value and discard the others. Click OK and Ben and Chloe are gone; Ctrl+Z brings them back.
To keep everything, join the text into one cell first, paste it as values, then merge or simply widen the cell. TEXTJOIN puts a separator between the items and skips empty cells.
Result: Ana, Ben, Chloe
Ana, Ben, Chloe: all three names in one cell, ready to paste as values before merging.
3. Why merged cells cause trouble later
Merging the region labels down column A looks tidy, but only the top cell of each block holds the value; the cells under it are empty. Any formula that reads column A sees that.
Sorting a range with merges of different sizes fails with "To do this, all the merged cells need to be the same size." Copying and pasting into merged areas gives "We can't do that to a merged cell." Filtering shows only the first row of each merged block. Selecting one column selects every column a merge touches. A dynamic array formula can't spill into merged cells and shows #SPILL!. And AutoFit won't set the row height for wrapped text in merged cells.
Result: 4200
4200: only Ana's sales. Ben and Chloe sit beside empty cells in column A, so North's other two rows are missed.
4. Use Center Across Selection for titles
For a heading over several columns, Center Across Selection looks exactly like Merge & Center but leaves every cell separate, so sorting, copying and column selection keep working. Type the title in the left cell only.
It only works across columns. For labels down a column, repeat the label on every row instead (it's what formulas, filters and pivot tables need), and if the repeats look noisy, set those cells' font to light grey or use a pivot table in Tabular form.
- Select the title cell and the cells to its right, for example A1:F1.
- Press Ctrl+1 to open Format Cells and go to the Alignment tab.
- Set Horizontal to Center Across Selection and click OK.
5. Find the merged cells in a sheet
If sorting or pasting complains and you can't see why, find every merge at once, then unmerge them.
- Press Ctrl+F and click Options, then Format.
- On the Alignment tab, tick Merge cells and click OK.
- Click Find All, then press Ctrl+A to select every merged cell in the list.
- Click the arrow next to Home > Merge & Center and choose Unmerge Cells.
6. Unmerge and fill the blanks so formulas work
After unmerging column A, only the first row of each block has a label. Fill the gaps with the label above, then paste the column as values. With the labels filled, the same SUMIFS counts every rep. As a formula alternative in a helper column, LOOKUP("zzz",A$2:A2) returns the last text value in the range so far, which is the label for that row.
- Select A2:A9 and choose Home > Merge & Center (arrow) > Unmerge Cells.
- With the range still selected, choose Home > Find & Select > Go To Special > Blanks > OK.
- Type = and press the Up arrow, then press Ctrl+Enter to fill every blank with the cell above.
- Copy the column and paste it as values (Ctrl+Alt+V, then V and Enter) so the labels stay put if you sort.
Result: 10050
10050: Ana, Ben and Chloe together, once every row carries its region in column D. COUNTIF(A2:A9,"North") on the merged column returns just 1.
Keyboard shortcut: Merge cells: Alt, H, M, CPaste values
Common mistakes
Merging cells that each hold text
Combine the text with TEXTJOIN, paste as values, then merge, or skip the merge.
Merging region labels down a data column
Repeat the label on every row so SUMIFS, filters and sorting see it.
Converting a table to a range just to merge a title
Put the title above the table and use Center Across Selection.
FAQ
Why is Merge and Center greyed out in Excel?
The cells are inside an Excel table, a cell is still being edited, the sheet is protected, or the workbook uses legacy sharing. Convert the table to a range, press Esc, or unprotect the sheet.
How do I merge cells without losing data?
Excel only keeps the upper-left value, so join the text first with =TEXTJOIN(", ",TRUE,B2:B4), paste it as values, then merge.
Can you merge cells in an Excel table?
No. Tables don't allow merged cells. Convert the table to a range, or put titles above the table and center them with Center Across Selection.
How do I unmerge all cells in Excel?
Select the whole sheet with Ctrl+A, click the arrow next to Home > Merge & Center and choose Unmerge Cells. Then fill the blanks with Go To Special > Blanks.
Functions used
TEXTJOINJoins with a separatorSUMIFSAdds with several conditionsCOUNTIFCounts cells that matchLOOKUPApproximate lookup in sorted data
Related guides
- Excel sort not working: 7 fixes
- Excel wrap text not working: 6 fixes
- #SPILL! error in Excel
- CONCAT vs TEXTJOIN vs &: which should you use?
- Excel formulas cheat sheet: the 25 everyone should know
- Excel interview questions and answers
Updated