To merge cells in Excel, select the range, open the Home tab, choose Merge & Center, and pick Merge Cells (or press Alt, H, M, C). Merging keeps only the upper-left cell's content and deletes the rest, so this works in Excel for Microsoft 365, Excel 2021, 2019, and 2016 on both Windows and Mac.
How to Merge Cells in Excel
- Select the adjacent cells you want to combine by dragging across them or holding
Shiftand clicking the last cell in the range. - Confirm the text you want to keep sits in the upper-left cell of a left-to-right sheet (upper-right for right-to-left sheets). Copy anything in the other cells to a safe location first, because it will be deleted.
- Open the Home tab on the ribbon.
- In the Alignment group, click the arrow next to Merge & Center to reveal the full menu, or click the button itself to merge and center in one action.
- Choose Merge & Center, Merge Across, or Merge Cells depending on whether you want centering or a simple block merge. Keyboard users can press
Alt,H,M,Cfor Merge & Center orAlt,H,M,Mfor Merge Cells. - Verify the result: the selection collapses into one larger cell spanning the former range, and the Name Box shows only the anchor cell (for example,
A1). If adjacent text vanished, undo immediately withCtrl + Z(Cmd + Zon Mac) before doing anything else.
The menu offers three distinct merges. Merge & Center combines cells and centers the content horizontally. Merge Across merges each row of the selection separately, which is useful for building header rows across several columns. Merge Cells joins the range without changing alignment. All three behave the same way regarding content: the anchor cell keeps its value, and the others are cleared.
A confirmation prompt may appear if the range contains data outside the anchor cell. Read it and cancel if you haven't copied that data elsewhere.
Unmerge cells
Select the merged cell, open the Merge & Center arrow, and choose Unmerge Cells. The original grid returns, but the previously deleted content does not reappear because merging destroyed it; only the anchor value remains. If you need to locate merges you've forgotten about, use Home > Find & Select > Find, choose Format, then Alignment > Merge cells > OK, and run Find All to list every merged range in the sheet.
What Happens to the Other Cells' Content
Merging is destructive to data placement, not just formatting. Only the value, formula, or note in the upper-left cell survives; everything else in the range is removed. To preserve all values, combine them before merging with a formula such as =TEXTJOIN(" ", TRUE, A1:C1) in a helper column, then paste the result back as values. Alternatively, pack text manually into the anchor cell. This is the single most common source of lost work, so copy the range elsewhere before you merge if there's any doubt.
Why the Merge Button Is Grayed Out or Fails
The Merge & Center controls disable or misbehave in a few predictable situations, and each has a clear fix.
| Symptom | Likely Cause | Fix |
|---|---|---|
| Merge & Center dimmed | You're editing inside a cell, or the range is formatted as an Excel table | Press Enter to exit edit mode; convert the table to a normal range via Table Design > Convert to Range |
| Merge option missing entirely | The workbook is protected or shared | Unprotect via Review > Unprotect Sheet, or stop sharing |
| Merge succeeds but reverts | The sheet is a protected structure or a co-authoring session conflicts | Unprotect the workbook (Review > Protect Workbook), refresh, and retry |
| Sort or filter refuses to run | Columns contain merged cells | Find and unmerge them, then sort again |
Excel tables disallow merged cells by design because they break structured references. Converting the table to a plain range restores the merge options. For shared workbooks, a coauthor editing the same sheet can block structural changes until their session syncs.
Merged Cells and Sorting, Filtering, and Formulas
Merged cells cause problems far beyond formatting. Excel won't sort a column that contains merges, and filters can behave unpredictably when headers are merged across columns. Formulas referencing a merged range return the value from the anchor cell only, which can silently break lookups. If a worksheet misbehaves, unmerge before troubleshooting anything else, and use the Find > Format > Merge cells method above to sweep the whole sheet.
Excel for Mac and Excel for the Web
The steps are nearly identical across platforms, with minor label placement differences. On Excel for Mac, select the range, go to the Home tab, and click Merge & Center (or its arrow for the full menu). The Merge & Center button may be disabled while you're editing a cell or when the range is formatted as a table, matching Windows behavior.
In Excel for the web, the same Home > Merge & Center options appear in the Alignment group, and the same data-retention rule applies: only the upper-left content survives. The official merge and unmerge reference documents the identical Merge & Center, Merge Across, and Merge Cells choices for these editions.
When to Avoid Merging and What to Use Instead
Merging suits titles, labels, and report headers that span columns. It's a poor fit for data tables you'll sort, filter, pivot, or feed into formulas. For centering a heading across columns without destroying the grid, use Home > Alignment > Center Across Selection (open Format Cells with Ctrl + 1, then the Alignment tab, and set Horizontal to Center Across Selection). This centers text over multiple columns while keeping each cell intact and sortable, and it's the preferred approach for anything that will be analyzed.
For combining text from several cells into one, use TEXTJOIN or the ampersand operator in a helper cell:
=TEXTJOIN(", ", TRUE, A1:A5)
That keeps all content, unlike merging. Apply the merge only after the combined text is where you want it.
Frequently Asked Questions
Can I merge cells without losing the other data?
Not through the merge command itself—it always keeps only the anchor cell's content. Copy the other values out first, combine them with TEXTJOIN or the & operator in a helper cell, paste the result into the upper-left cell, then merge. Undo with Ctrl + Z if a merge deletes data by mistake.
Why can't Excel split a single cell into two?
Excel's row-and-column grid can't divide an individual cell, so the split command applies only to cells you previously merged. To make a cell appear split, unmerge the surrounding range or merge the cells above it so borders form the visual divide.
Does merging work the same in Excel 2010 and older versions?
The Merge & Center menu lives on the Home tab from Excel 2007 onward, and older copies place it under Format > Cells. The content-retention rule—upper-left cell keeps its value—applies across every modern version on Windows and Mac.
Can merged cells break my formulas or pivot tables?
Yes. References to a merged range read only the anchor cell, and pivot tables and sorts reject merged columns. Unmerge suspect ranges, or rebuild them with Center Across Selection to keep the look without the structural problems.