Skip to content

How to Merge Cells in Excel Without Losing Data (and Why Center Across Selection Is Better)

Select the cells and choose Home > Merge & Center > Merge Cells. Excel keeps only the upper-left value and deletes the rest. Here are the four merge options, how to combine text with & or TEXTJOIN first, how to unmerge, and the alternative that avoids merged cells.

Tech Talk News Editorial

7 min read

Share

Key takeaways

  • To merge cells in Excel, select them and choose Home > Merge & Center > Merge Cells; Excel keeps only the content of the upper-left cell and deletes the content of every other merged cell.
  • To merge text without losing it, join it first with =A2&" "&B2 or =TEXTJOIN(" ",TRUE,A2:B2), paste the result as values into the upper-left cell, then merge; TEXTJOIN works in Excel 2019 and later but errors with #VALUE! if the result passes 32,767 characters.
  • Center Across Selection, set in Format Cells > Alignment > Horizontal, centers a title across several cells without merging them, so sorting and selecting keep working and no data is deleted.
  • Sorting a range that contains merged cells of different sizes fails with the message "This operation requires the merged cells to be identically sized", and Microsoft says to unmerge them or make them all the same size.
  • To unmerge, select the merged cell and choose Merge & Center > Unmerge Cells; the contents move to the left cell, and Ctrl+Z undoes a merge you just made.
On this page7 sections

To merge cells in Excel, select the cells, go to the Home tab and choose Merge & Center, then Merge Cells. Excel joins them into one cell and keeps only the content of the upper-left cell, deleting everything in the others.[1]

That data loss is the whole story of merging, and it's why I'll show you how to keep your text first, and then a way to get the same centered look without merging at all.

The steps follow Microsoft's current Support pages for Excel for Microsoft 365 on Windows, Mac and the web, checked November 29, 2026.

Merge cells in Excel: the steps

  1. Copy any text you want to keep out of the cells you're about to merge. Microsoft warns that the content of the other merged cells is deleted.[1]
  2. Select the cells you want to join. They can run across columns, down rows or both.
  3. On the Home tab, select Merge & Center.
  4. Choose Merge Cells to merge without centering, or leave it on Merge & Center to merge and center.

On Mac, select the cells and use Home > Merge & Center > Merge Cells.[1]

The four options, and what each does

Open the arrow next to Merge & Center and you see these.[1]

  • Merge & Center. Combines the selection into one cell and centers the content. This is the big button.
  • Merge Across. Combines each row of the selection into its own merged cell, without centering. Select three rows by four columns and you get three merged cells, not one.
  • Merge Cells. Combines the whole selection into a single cell, without centering.
  • Unmerge Cells. Splits a merged cell back into separate cells.

Behind the scenes, a merged cell uses the upper-left cell of the original range as its reference.[2] If you merged B2:D2, the merged cell is B2, and C2 and D2 are empty. For right-to-left languages, Microsoft says the upper-right cell is the one kept.[1]

Merge cells without losing data

Excel can't merge the contents of cells, only the cells. If A2 holds Jane and B2 holds Rivera, merging A2:B2 leaves you with Jane. To get Jane Rivera, join the text first.

  1. In a spare cell, type =A2&" "&B2 and press Enter. It returns Jane Rivera. For a longer range or a separator, use =TEXTJOIN(" ",TRUE,A2:B2).
  2. Copy the result and paste it into A2 with Paste Special > Values, so it's text and not a formula that points at cells you're about to empty.
  3. Select A2:B2 and merge them. Only the upper-left value is kept, and it's the full name.

TEXTJOIN takes a delimiter, an ignore_empty setting that skips blank cells when TRUE, and the text to join. It handles up to 252 text arguments, and if the result passes 32,767 characters it returns the #VALUE! error.

It works in Excel for Microsoft 365, Excel 2024, Excel 2021 and Excel 2019, so Excel 2016 users need the & version.[3]

Often you don't need to merge at all. If the goal was a full-name column, the formula in its own cell is the finished product. Merging adds a risk and nothing else.

Center Across Selection: the better default

If you merged cells to put a title above a table, there is a way to get the same look without a merged cell. Center Across Selection centers a cell entry across the selected cells, and every cell stays separate.[2]

  1. Type the title in the left-most cell and select that cell plus the empty cells to its right.
  2. Press Ctrl+1 to open Format Cells.[4]
  3. Open the Alignment tab. Under Horizontal, choose Center Across Selection.
  4. Select OK.

It has three catches. There's no ribbon button, so you go through Format Cells. It works across columns only, not down rows. And the other cells in the selection need to be empty, or the text has nothing to spread over. For a heading row, those catches rarely matter.

Why this matters

Merged cells break features that expect a grid. Excel's own troubleshooting page describes a sort that refuses to run with the message "This operation requires the merged cells to be identically sized." It happens when only some of the cells in the sort range are merged, or when all are merged but at different sizes. Microsoft's fix is to unmerge them or make them the same size.[5] Center Across Selection never triggers that, because nothing is merged.

My rule: merge only on a finished form or a print layout nobody will sort, filter or feed into a formula. In any range that holds data, use Center Across Selection.

Unmerge cells in Excel

  1. Select the merged cell.
  2. On the Home tab, select the arrow next to Merge & Center.
  3. Choose Unmerge Cells.[1]

The content moves to the left cell, and the others come back empty.[1] If you merged a moment ago, press Ctrl+Z and you get the original cells and their data back.

To clear merges across a whole range, select it, open the Alignment dialog launcher on the Home tab and clear the Merge cells check box.[5]

Find merged cells. Microsoft says the Find command locates them quickly.[1] Press Ctrl+F, select Options, choose Format, open the Alignment tab, tick Merge cells, then select Find All. It lists every merged cell on the sheet, which is how you find the one that's breaking a sort.

Takeaway

Merge deletes data, and Center Across Selection doesn't. When all you want is a centered heading, pick the one that can't hurt anything.

If you can't merge cells

  • Merge & Center is grayed out. Microsoft lists two causes: you're editing a cell, or the cells are in an Excel table.[1] Press Enter to leave edit mode. For a table, convert it to a range (Table Design > Convert to Range) and try again, or skip the merge and use Center Across Selection.
  • Excel warns about losing data. More than one selected cell has content. Cancel, and use the & or TEXTJOIN steps above.
  • Sort says the cells must be identically sized. Unmerge the range, or merge every row the same way.[5]
  • Everything is dimmed. The sheet may be protected. Unprotect it from the Review tab, then try again.

If you're building a lookup table, never merge inside it. A merged key column leaves empty cells that make XLOOKUP in Excel return blanks or #N/A for every row except the first. And the list of choices behind a drop-down list should be one value per cell for the same reason.

Primary sources

  1. 1.PrimaryMerge and unmerge cells. Microsoft Support. Merge options, data loss, table limit, unmerge and Find.
  2. 2.PrimaryControl settings in the Format Cells dialog box. Microsoft Learn. Center Across Selection, Merge cells and the merged-cell reference.
  3. 3.PrimaryTEXTJOIN function. Microsoft Support. Syntax, limits and the versions that include it.
  4. 4.PrimaryKeyboard shortcuts in Excel. Microsoft Support. Ctrl+1 opens the Format Cells dialog box.
  5. 5.PrimaryAn error message when you sort a range that contains merged cells in Excel. Microsoft Learn. The sort error, its causes and the workaround.

Frequently asked questions

6 questions

How do I merge cells in Excel?

Select the cells, go to the Home tab and choose Merge & Center, then Merge Cells. Excel combines them into one cell and keeps only the content of the upper-left cell. Copy anything you need from the other cells first, because their content is deleted.

How do I merge cells in Excel without losing data?

Combine the text in a formula first, such as =A2&" "&B2 or =TEXTJOIN(" ",TRUE,A2:B2). Copy the result and paste it as values into the upper-left cell, then merge. Or skip the merge: put the formula in a new cell and the combined text exists without deleting anything.

What is the difference between Merge & Center, Merge Across and Merge Cells?

Merge & Center joins the selection into one cell and centers the content. Merge Cells joins the selection into one cell without centering. Merge Across joins each row of the selection into its own merged cell, without centering. All three delete everything except the upper-left value in each merged cell.

How do I unmerge cells in Excel?

Select the merged cell, open the Merge & Center menu on the Home tab and choose Unmerge Cells. The content moves to the left cell, and the other cells come back empty. If you merged a moment ago, Ctrl+Z restores the original cells and their data.

Why is Merge & Center grayed out in Excel?

You may be editing a cell, or the cells may be inside an Excel table. Microsoft says merging is not available for cells formatted as a table. Press Enter to finish editing, or convert the table to a range from the Table Design tab, then try again.

What is a better alternative to merging cells in Excel?

Center Across Selection. Select the cells, press Ctrl+1, open the Alignment tab, set Horizontal to Center Across Selection and select OK. The text appears centered across the selection while every cell stays separate, so sorting, filtering and selecting columns keep working.

Keep reading

Written by

Tech Talk News Editorial

Computer engineering background. Writes about software, AI, markets, and real estate, and the places where the three meet.

About Tech Talk News