Quick answer

To merge cells in Excel, select them and click Home > Merge & Center. The arrow next to the button also offers Merge Across, Merge Cells and Unmerge Cells. Excel keeps only the value in the upper-left cell and deletes the others, so if they hold data, join it first with a formula such as =A2&" "&B2. To center a heading over several columns without merging, use Center Across Selection instead.

Merging turns a block of cells into one large cell, usually for a heading that spans a table. It takes one click, and the costs come later: text you didn’t mean to delete, and a range you can no longer sort or paste into.

What merging does

A merged cell takes the address of the block’s upper-left cell. Merge A1:D1 and the result is A1; B1, C1 and D1 no longer exist as far as formulas and selection go. Anything they held is deleted, and before it happens Excel warns you: “Merging cells only keeps the upper-left value and discards other values.”

Merge & Center has four commands, three of them under its arrow:

CommandWhat it does
Merge & CenterMerges the selection into one cell and centers its content
Merge AcrossMerges each selected row into a cell of its own, which suits a block of rows that each need one wide cell
Merge CellsMerges the selection into one cell and leaves the alignment as it was
Unmerge CellsSplits a merged cell back into the cells it was made from

How to merge cells

  1. Select the cells, such as A1:D1 for a title over four columns.
  2. On the Home tab, in the Alignment group, click Merge & Center. For one of the other commands, click the arrow next to it and choose Merge Across or Merge Cells.
  3. If more than one of the cells holds a value, Excel shows its warning. Click OK to merge anyway, or Cancel to keep the data.

On a Mac and in Excel for the web, Merge & Center is on the Home tab too, with the same commands under its arrow.

Merging is meant for cells where only the upper-left one holds anything. Say a colleague merges A2:B2 on a delivery list so the whole name fits in one cell. The first name was in A2 and the last name in B2:

Merging kept Dana and deleted Ortiz. Only the value in the upper-left cell survives. Undo straight away with Ctrl+Z (Cmd+Z on a Mac) to get the last name back.

Merge cells without losing data

Combine the values into one cell first, with a formula, and then merge, or skip merging altogether. The & operator joins text, and " " puts a space between the parts:

The full name, with nothing deleted. =A3&" "&B3 joins the first name, a space and the last name. Filled down, each row joins its own two cells. In C3, =A3&" "&B3 returns Luis Ferreira. Formula in C: C2 =A2&" "&B2, C3 =A3&" "&B3, C4 =A4&" "&B4.
  1. In an empty column, type =A2&" "&B2 and fill it down.
  2. Copy the new column, then paste it over the first column with Paste Special > Values (Ctrl+Alt+V on Windows, Cmd+Ctrl+V on a Mac), so it holds text instead of formulas.
  3. Delete the columns you no longer need.

For more than two cells, TEXTJOIN is shorter, and it can skip the empty ones: =TEXTJOIN(", ",TRUE,A2:D2) joins A2 to D2 with a comma and a space between them, and TRUE leaves out blank cells. CONCAT joins without a separator. Both need Excel 2019 or later, or Microsoft 365; & works in every version. The lesson Join text with CONCAT and TEXTJOIN, in the Text and Dates course, practices all three.

Unmerge cells

Select the merged cell, click the arrow next to Merge & Center and choose Unmerge Cells. The content goes back to the upper-left cell and the other cells come back empty. Text deleted by the merge doesn’t return; only Undo brings that back.

To unmerge everything on a sheet, select the whole sheet (press Ctrl+A, or Cmd+A on a Mac, until everything is selected) and choose Unmerge Cells.

Center a heading without merging

Center Across Selection gives a heading the same look as Merge & Center while every cell stays a cell of its own:

  1. Type the heading in the first cell, such as A1, and select it together with the cells it should span, such as A1:D1.
  2. Press Ctrl+1 (Cmd+1 on a Mac) to open Format Cells.
  3. On the Alignment tab, open the Horizontal list and choose Center Across Selection. Click OK.

The heading sits in the middle of A1:D1, yet B1, C1 and D1 still exist, so you can select a single column, sort, and fill formulas as usual. Keep those cells empty: if you type into one later, the heading shares the space with it. There’s no ribbon button for this one, so Ctrl+1 is the quickest way there.

The free lesson Align, wrap and center a title without merging has more, including a merged label that throws off a count.

Why merged cells cause trouble later

  • Sort a range that has merged cells of different sizes, and Excel stops with “To do this, all the merged cells need to be the same size.”
  • Filter a column with merged cells, and only the first row of each merged block can match, because that’s the only row holding the value. The other rows are hidden.
  • Paste a block that doesn’t fit the merged cells’ shape, and Excel answers “We can’t do that to a merged cell.”
  • Build a pivot table from a list with merged cells, and it trips over them: it needs one value per cell and a header on every column.

Use Center Across Selection for headings, and keep merging for printed forms and title blocks that nobody will sort or filter.

Find the merged cells in a sheet

  1. On the Home tab, choose Find & Select > Find.
  2. Click Options, then Format.
  3. On the Alignment tab, tick Merge cells and click OK.
  4. Click Find All. Excel lists every merged cell; click one in the list to go to it.

Why Merge & Center is grayed out

  • You’re still editing a cell. Press Enter or Esc first.
  • The sheet is protected. Unprotect it under Review > Unprotect Sheet.
  • The cells are in an Excel table, and tables can’t contain merged cells. Convert the table to a normal range first if you must merge (Table Design > Convert to Range).
  • The workbook uses the old shared workbook feature, which doesn’t allow merging.
  • You’re in a pivot table. Use PivotTable Options > Layout & Format > Merge and center cells with labels instead.

Frequently asked questions

How do I merge cells in Excel without losing data?

Join the values first with a formula such as =A2&" "&B2 or =TEXTJOIN(" ",TRUE,A2:C2), paste the result as values, and then merge the empty cells, or center the text across them with Center Across Selection. Merge & Center itself keeps only the upper-left value.

Why is Merge & Center grayed out in Excel?

Usually you’re still editing a cell, so press Enter or Esc. The sheet may also be protected, or the cells may be in an Excel table, which can’t contain merged cells. A workbook shared with the old shared workbook feature doesn’t allow merging either.

How do I unmerge all cells in Excel?

Select the whole sheet with Ctrl+A (Cmd+A on a Mac), click the arrow next to Merge & Center and choose Unmerge Cells. Each value goes back to the upper-left cell of its old block.

How do I merge two columns into one in Excel?

Merging cells won’t do it, because it keeps only one value. Put =A2&" "&B2 in a new column, fill it down, and paste the results over the first column as values.

Is there a keyboard shortcut to merge cells?

There’s no Ctrl shortcut for it. On Windows, press Alt to show the ribbon’s KeyTips, press H for the Home tab, and then the letters Excel shows on Merge & Center and on the command you want; you press them one after another.