Excel cannot merge cells when the selection includes part of a table, a protected sheet, a shared workbook, or cells that are already merged in a way that conflicts with the new selection. The Merge & Cells button also greys out when the sheet is in edit mode, when the workbook is grouped, or when the selection is inside a PivotTable. The fix is almost always to unmerge the existing cells, convert the table back to a normal range, or unprotect the sheet, then merge again. The steps below walk through each cause in order, from the quickest check to the ones that need a setting change.

What You'll Need

  • Excel for Microsoft 365, Excel 2021, 2019, or 2016 on Windows or Mac. The steps below use the desktop ribbon; Excel for the web has a reduced Merge & Cells menu.
  • The workbook open with the sheet you want to edit visible.
  • Edit permission on the file if it is stored on OneDrive, SharePoint, or a network share.
  • The sheet password if it is protected. You cannot merge on a protected sheet without it.

Step-by-Step

  1. Press Esc to leave edit mode. If you double-clicked a cell and the cursor is blinking inside it, the ribbon is partly disabled. Press Esc once, then click a single cell and try selecting the range again. The Merge & Cells button only works when Excel is not in cell-edit mode.
  2. Select the range you actually want to merge. Click the first cell, hold Shift, and click the last cell. Merging works on a rectangular block only. If you select two separate blocks with Ctrl, the button greys out because Excel cannot merge a non-rectangular selection.
  3. Check whether the cells are already merged. Click inside the block. If the Name Box (top left, above column A) shows something like A1:D1 for a single cell, that cell is part of a merged area. Go to Home > Merge & Cells > Unmerge Cells, then reselect and merge again. Merging over a partially merged block is the most common reason the button appears broken.
  4. Convert the table to a normal range. If your data is formatted as an Excel Table (the ribbon shows a Table Design tab when you click inside it), Merge & Cells is disabled. Click any cell in the table, open Table Design, and choose Convert to Range. Confirm the prompt. The table formatting stays, but the merge button becomes available again. Note that merged cells inside a table break sorting and filtering, so convert first and merge only after you have finished sorting.
  5. Unprotect the sheet. If the Review tab shows Unprotect Sheet in red text, the sheet is protected and merging is blocked. Click Unprotect Sheet, enter the password if prompted, then merge. Re-protect the sheet afterwards if you need the protection back. Protection is often left on by whoever built the template.
  6. Turn off shared workbook mode. On the Review tab, look at Share Workbook. If the Allow changes by more than one user box is ticked, clear it. Legacy shared workbooks do not support merged cells. If the button is greyed out because the file is shared, the workbook must be unshared before merging. Modern co-authoring through OneDrive or SharePoint does not have this limitation.
  7. Ungroup the sheets. If the sheet tabs at the bottom are highlighted together (the title bar says [Group]), right-click any tab and choose Ungroup Sheets. Merging while sheets are grouped applies the change to every selected sheet and Excel disables it to prevent that.
  8. Step outside the PivotTable. You cannot merge cells inside a PivotTable. Click a cell outside the PivotTable, or copy the values you need to a blank area of the sheet and merge there. If you need the layout to look merged, use Center Across Selection instead (see Tips).
  9. Check for a locked or read-only file. If the title bar says Read-Only or Protected View, click Enable Editing on the yellow bar. A file opened from an email attachment or downloaded from the internet opens in Protected View, where almost every ribbon command is disabled.
  10. Merge the cells. With the range selected and the button active, go to Home > Merge & Cells and pick Merge & Center, Merge Across, or Merge Cells. Merge & Center keeps the top-left value and centres it; the other cells' contents are deleted, so copy anything important first.

Common Mistakes

  • Merging before sorting or filtering. Merged cells break sort and filter ranges. Sort and filter first, then merge only the final layout.
  • Merging data you still need to calculate. Only the top-left value survives a merge. If the other cells held numbers you need, they are gone unless you undo (Ctrl+Z) immediately.
  • Using Merge & Center for headings inside a data table. This is the classic cause of "Excel cannot merge" later, because the table itself blocks the command. Keep data tables unmerged and put headings above the table.
  • Forgetting the sheet is protected. People often protect a sheet and then hand it on; the next person sees a greyed-out button and assumes Excel is broken.
  • Selecting non-adjacent cells. Ctrl-click selections cannot be merged. Select one rectangular block.

Tips

  • Use Center Across Selection instead of merging. Select the cells, press Ctrl+1 (Format Cells), open the Alignment tab, and set Horizontal to Center Across Selection. It looks identical to Merge & Center but keeps every cell separate, so sorting, filtering, and formulas keep working.
  • Merge only for presentation. Keep the working data on one sheet and build a merged, print-ready layout on another sheet that references it.
  • Unmerge before pasting. Pasting a block into merged cells throws a "This operation requires the merged cells to be identically sized" error. Unmerge the target area first, paste, then merge again.
  • Keyboard shortcut. Alt+H, M, C merges and centres on Windows. On Mac, the ribbon shortcut is Ctrl+Option+M in recent versions; the menu path Home > Merge & Cells is more reliable across versions.
  • Menu labels differ slightly between Excel versions, platforms, and regions. If you cannot find a command, look for the closest equivalent on the Home or Review tab.

Troubleshooting

If the button is still greyed out after all ten steps, work through these checks in order. First, close and reopen Excel; a stuck edit mode or an add-in can disable ribbon commands until restart. Second, check File > Info for Protected View or Read-Only and click Enable Editing. Third, look at the status bar at the bottom; if it says Shared, the workbook is still in legacy shared mode. Fourth, try the same merge in a brand-new blank workbook. If it works there, the problem is in the file, not Excel, and the likely culprits are sheet protection, a table, or a PivotTable overlapping the selection. Fifth, if the file came from someone else, ask whether they protected the sheet or shared the workbook; those settings travel with the file. If the merge button works but the result looks wrong, you probably merged a block that already contained merged cells. Unmerge everything in the area (select the whole block and choose Unmerge Cells), then merge once.

Frequently Asked Questions

Why is Merge & Cells greyed out in Excel?

The usual causes are: the sheet is protected, the range is inside an Excel Table or PivotTable, the workbook is in legacy shared mode, sheets are grouped, or Excel is in cell-edit mode. Press Esc, then check the Review tab for protection and sharing.

Can I merge cells in Excel for the web?

Yes, basic merging is available on the Home tab in Excel for the web, but the menu is smaller than on the desktop. Some restrictions, such as merging inside tables, apply the same way.

How do I merge cells without losing the other data?

You cannot keep multiple values in one merged cell. Copy the other values to a helper column or another sheet first, then merge. Alternatively, use Center Across Selection, which keeps every cell's value intact.

Why does Excel say "This operation requires the merged cells to be identically sized"?

You are pasting or formatting a block whose merged pattern does not match the target. Unmerge the target area, paste, then reapply the merge.

Does merging cells break formulas?

Merging does not change references to the top-left cell, but references to any other cell in the merged block return blank. This is why merged cells cause #VALUE! and lookup errors in data ranges.

Can I merge cells across multiple sheets at once?

No. Merging applies to one sheet at a time. If sheets are grouped, Excel disables the command to prevent changes on every sheet.