This page describes how to merge cells in Excel, so that two or more cells become one larger cell that spans across multiple rows and/or columns. We then discuss the limitations of merging cells in Excel.
For example, in the following spreadsheet:
A | B | C | |
---|---|---|---|
1 | Date | Number of Visitors | |
2 | Male | Female | |
3 | 01-Jan-2015 | 20 | 15 |
4 | 02-Jan-2015 | 32 | 23 |
In order to merge cells in Excel:
Select the Merge & Center button .
This button is located in the 'Alignment' group, on the Home tab of the Excel ribbon:
As the name suggests, if you click on the Merge & Center button, the currently selected cells will be merged, and their contents will be centered horizontally and vertically.
Recent versions of Excel also provide a drop-down menu on the Excel ribbon (see rightabove), which offers further options, such as Merge cells (without centering), Unmerge cells, etc.
In order to unmerge cells in Excel:
Select the Merge & Center shortcut button .
When merging cells in Excel, you should be aware of the following limitations:
Excel can't merge the contents of two or more cells.
If only one of the original cells contains data, the merged cell will keep this data. However, if more than one of the original cells contains data, the merged cell will only keep the data from one of the original cells (generally the left upper cell in the range). You will be presented with a warning message about this, before Excel completes the merge.