Excel does not truly merge cells — it combines them into one space

When you merge cells in Excel, you are not joining data from multiple cells. Instead, you are combining the cell boundaries so that two or more cells appear as a single, larger cell. Excel keeps only the content from the top-left cell and discards the rest. This matters because if you merge cells that contain data, you will lose whatever was in the cells to the right and below.

The most common reason to merge cells is to create a title or header that spans across multiple columns. You might also merge cells to make a form look cleaner, or to center a label above a data range. Excel offers several ways to merge, each with different behavior for keeping or losing data.

Key Takeaways

  • Merging cells in Excel combines their boundaries but keeps only the content from the top-left cell, so you will lose data from other cells unless you copy it first.
  • The Merge & Center button on the Home tab is the quickest way to merge and center text across columns at the same time.
  • If you merge cells that contain data in more than one cell, Excel will warn you that data will be deleted, and you can choose to cancel.
  • Merged cells can cause problems when sorting, filtering, or copying data, so avoid merging cells within a data table.
  • You can unmerge cells at any time by selecting them and clicking Merge & Center again, which restores the original cell boundaries.

How to merge cells using the Home tab

The fastest way to merge cells is through the ribbon at the top of Excel. Select the cells you want to merge by clicking the first cell and dragging to the last one, or by clicking the first cell, holding Shift, and clicking the last cell. The cells must form a rectangle — you cannot merge cells in an L-shape or scattered pattern.

Once your cells are selected, go to the Home tab. Look for the Merge & Center button in the Alignment group on the right side of the ribbon. Click the small arrow next to it to see your options: Merge & Center, Merge Across, Merge Cells, and Unmerge Cells. Merge & Center combines the cells and centers the text. Merge Across merges cells in each row separately, which is useful if you have multiple rows selected. Merge Cells combines them without centering.

If any of the cells you selected contain data other than the top-left cell, Excel will show a warning that says "Some of the contents of the cells being merged will be lost." You can click OK to proceed or Cancel to go back and copy the data elsewhere first.

Saving data before you merge

If you have important information in cells that will be deleted during a merge, copy that data to another location first. Select the cells containing the data you want to keep, press Ctrl+C (or Cmd+C on Mac), click an empty cell, and press Ctrl+V to paste. Then you can safely merge the original cells.

Another approach is to combine the data into a single cell before merging. For example, if you have "First" in one cell and "Name" in another, you can type "First Name" into the top-left cell, delete the content of the other cells, and then merge. This way nothing is lost.

Merging cells in a table or data range

Avoid merging cells within a data table or range that you plan to sort, filter, or analyze. Merged cells break sorting and filtering because Excel cannot move partial rows or columns. If you have a table with headers and you want to merge a header across multiple columns, merge only the header row, not the data rows below it.

If you have already merged cells within a data range and now sorting or filtering is not working, unmerge the cells first. Select the merged cells, click the Merge & Center arrow, and choose Unmerge Cells. The original cell boundaries will return, and your sorting and filtering will work again.

Unmerging cells

To unmerge cells, select the merged cell or range of merged cells. Go to the Home tab, click the Merge & Center arrow, and select Unmerge Cells. The merged cell will split back into its original separate cells. The content stays in the top-left cell, and the other cells become empty again.

You can also unmerge by selecting the merged cells and clicking Merge & Center itself (not the arrow) if that option is available in your version of Excel. The behavior depends on your Excel version, so using the dropdown arrow is more reliable.

Alternatives to merging when you want a clean layout

If you need a title or label to span across columns but you do not want the problems that come with merged cells, use center across selection instead. Select your cells, right-click, choose Format Cells, go to the Alignment tab, and select "Center Across Selection" from the Horizontal alignment dropdown. This centers text across the selected cells without actually merging them, so sorting and filtering still work.

Another option is to use a single cell with a larger font or bold formatting, positioned above your data range. This gives the visual effect of a title without the technical problems of merging. You can also adjust column widths to make a single cell appear wider, or use cell borders to group related columns visually.

Common problems with merged cells

Merged cells can cause unexpected behavior in Excel. When you copy and paste a merged cell, the paste destination must have the same merged structure, or Excel will paste only the content into the top-left cell. When you insert or delete rows and columns, merged cells may not behave the way you expect — sometimes the merge is preserved, sometimes it is broken.

If you are sharing a spreadsheet with others and they use an older version of Excel or a different spreadsheet program, merged cells may not display correctly or may cause errors. For this reason, many spreadsheet designers avoid merging cells in shared or collaborative files.

Frequently Asked Questions

What happens to the data in cells I merge?

Excel keeps only the content from the top-left cell and deletes the content of all other cells in the merge. If those cells contain important data, copy it elsewhere before you merge. Excel will warn you that data will be lost and give you a chance to cancel.

Can I merge cells that are not next to each other?

No. You can only merge cells that form a rectangle — a continuous block of rows and columns. You cannot merge cells in different parts of the spreadsheet or in an irregular shape.

Why does sorting not work on my data?

If you have merged cells within your data range, sorting will not work correctly. Unmerge the cells first by selecting them, clicking the Merge & Center arrow on the Home tab, and choosing Unmerge Cells. Then sorting will function normally.

Can I merge cells and keep all the data?

Not with a standard merge. You can combine data from multiple cells into one cell using a formula like =A1&" "&B1 to join text, then merge the result. Or copy the data you want to keep to another location before merging the original cells.

How do I undo a merge?

Select the merged cell, go to the Home tab, click the Merge & Center arrow, and choose Unmerge Cells. The cell will split back into its original separate cells, with the content remaining in the top-left cell.