Merging cells in Excel joins two or more selected cells into one larger cell, which is the standard way to build a title row, a banner across several columns, or a label that spans a group of related columns. The fastest route is to select the cells, then choose Merge & Center on the Home tab. Before you start, know one critical limitation: Excel keeps only the value in the upper-left cell of the selection and permanently deletes the contents of every other merged cell. So always check what is in the rest of the range first, and back up the file if the data matters.
One more thing to get out of the way: adding a title row a few new rows deep into an existing table can ruin the layout below. If your sheet is a data table you plan to sort or filter, avoid merging inside it at all (more on that in the mistakes section). Menu labels and the exact position of the Merge & Center dropdown can differ slightly by Excel version, platform, and region, but the control has stayed on the Home tab for years.
What You'll Need
- Excel for Windows, Excel for Mac, Excel on the web, or the Excel mobile app.
- A workbook you can edit (not read-only or protected). If the sheet is protected, you must unprotect it first; the Merge commands are greyed out on protected sheets.
- A clear idea of which cell holds the text you want to keep, because everything else in the range will be discarded.
Step-by-Step
- Save a copy first. Use File > Save As and give the file a new name, or press Ctrl+S (Cmd+S on Mac) so you have a recent version. Merging is not easy to undo once you have saved and closed the file, and it destroys the contents of non-anchor cells.
- Type your text into the upper-left cell of the range. For example, if you plan to merge A1 through D1, put the heading in A1. Leave B1, C1, and D1 empty. If those cells already contain data, cut and paste it somewhere safe before merging.
- Select the cells you want to combine. Click the first cell, hold the mouse button, and drag to the last cell. For a non-adjacent shape you cannot merge anyway; Excel only merges a single rectangular block. To merge across a row, drag horizontally. To merge down a column, drag vertically.
- Go to the Home tab. The Merge commands live in the Alignment group, toward the right side of the ribbon.
- Click the arrow next to Merge & Center to open the dropdown. You will see four choices: Merge & Center, Merge Across, Merge Cells, and Unmerge Cells.
- Pick the option that matches your goal. Merge & Center combines the cells and centers the text, which is what most people want for a title. Merge Cells combines them but keeps the existing alignment. Merge Across merges each row of the selection separately, so if you select A1:D3 and choose Merge Across, you get three merged cells, one per row, which is the correct choice for a label column next to a multi-row block.
- Confirm the result. The selected cells become one wide cell with a single set of borders. The text sits in it according to the alignment you chose. If any cells you selected held data, Excel shows a warning first: it will say only the upper-left value is kept. Read it, then click OK only if you are sure.
- Adjust formatting. With the merged cell still selected, use the Bold button, the font size box, or the Fill Color button on the Home tab to make a heading stand out. Because the merged cell behaves like one cell, a center alignment now places text in the middle of the whole span rather than the middle of a single column.
- Consider Center Across Selection instead. If you only want text to look centered across several columns without actually combining them, select the range, open Format Cells (Ctrl+1), go to the Alignment tab, and set Horizontal to Center Across Selection. This looks nearly identical to Merge & Center but keeps every cell independent, so sorting, filtering, and formulas all keep working. Note that this option exists in the desktop versions; the mobile app is more limited.
- Undo if it went wrong. Press Ctrl+Z (Cmd+Z on Mac) immediately. Undo restores the individual cells and their contents, but only in the current session. Once you save and close, the discarded values are gone, which is why step 1 matters.
Common Mistakes
Merging a column inside a data table. This is the single most damaging mistake. Excel needs one clean header per column to sort, filter, and run PivotTables. A merged cell anywhere in the header row, or a merged block running down a column, causes sort errors like "This operation requires the merged cells to be identically sized" and makes filters skip rows. Keep merges outside the data range, above it or to the side.
Expecting Excel to combine the text. Merge keeps only the top-left value. If you have "John" in A1 and "Smith" in B1 and you merge them, you get "John" and lose "Smith." To genuinely combine text, use a formula such as =A1&" "&B1 in a spare cell, then copy the result and use Paste Special > Values to replace the originals if needed.
Merging before checking the range. People often select a whole row by clicking the row number and then hit Merge & Center, wiping an entire line of data. Select cell by cell, not by row header, when merging.
Forgetting that merged cells break copy-paste and fill. You cannot paste a block of data into a range containing merged cells of a different shape; Excel throws an error. Unmerge first, do the paste, then merge again if you still need to.
Using merges for layout in tables meant for automation. Any sheet that feeds a Power Query import, a mail merge, or a dashboard should stay merge-free. Use Center Across Selection or a wider column instead.
Tips
- Use Merge Across when you need to label a block that is several rows tall. Merging the whole selection with Merge & Center would create one giant cell spanning all rows and columns, which is almost never what you want.
- Keyboard shortcut: Alt, H, M, C is the classic sequence on Windows for Merge & Center, then C again for Merge & Center or M for Merge Cells depending on the version. On Mac, try Ctrl+Option+Return via the ribbon's access keys; it varies, so the dropdown is the reliable route.
- To find every merged cell in a workbook, use Home > Find & Select > Go To Special, choose Merged Cells, and Excel highlights them all. Unmerge from there in one pass.
- Merged cells can still hold formulas and number formats, but references to the individual cells inside the merged area behave as if every position points at the anchor cell. Expect duplicated values if you copy a formula across them.
- For print headers and section dividers, merge a full row above the table rather than inside it, and freeze panes below it so it stays visible.
Troubleshooting
The Merge buttons are greyed out. Most often the sheet is protected: go to Review > Unprotect Sheet, enter the password if required, and try again. It can also happen if you are editing a cell rather than a range; press Enter or Esc first, then select the cells again. In Excel on the web, some merge options are limited and you may need the desktop app.
I lost text after merging. Press Ctrl+Z right away. If you have already saved, check File > Info > Version History for an earlier autosaved copy, or look in your OneDrive or SharePoint recycle bin for the previous file version.
Excel says "cannot change part of a merged cell." You are likely trying to sort, paste, insert, or delete inside a range that overlaps a merge. Find the merges with Go To Special > Merged Cells, unmerge them, perform your operation, and merge again afterward only if needed.
The merged title does not line up with the columns. Excel centers text in the merged span, but if some columns are wider than others the visual center may look off. Widen or equalize columns, or switch to Center Across Selection with a range that matches the visual block.
Unmerge only partially restores things. Unmerging restores cells but not the lost values. Only the undo command and a recent saved version bring back deleted content.
Frequently Asked Questions
Can I merge cells without losing data?
Not directly. Merge always keeps only the upper-left value. To preserve everything, combine the text with a formula such as =A1&" "&B1 in a spare cell, copy it, and paste the result as values before merging.
What is the difference between Merge & Center, Merge Across, and Merge Cells?
Merge & Center combines the selection and centers the text. Merge Cells combines it but keeps the current alignment. Merge Across merges each row of the selection separately, producing one merged cell per row.
Why can't I sort or filter after merging?
Excel requires equal, unmerged cells for sorting and filtering. Any merge inside the data range causes errors. Unmerge the affected cells or use Center Across Selection instead.
Does merging work in Excel on the web and mobile?
Yes for basic merging. Excel on the web and the mobile apps offer the main merge options from the Home tab, though Center Across Selection and some advanced alignment controls are more complete in the desktop versions.
How do I unmerge cells?
Select the merged cell, open the Merge & Center dropdown on the Home tab, and choose Unmerge Cells. Every original cell returns, but only the anchor cell keeps a value.
Can I merge cells across two separate sheets?
No. Merging only works within a single worksheet. To show text from another sheet, use a formula reference in the cell where you need it.