Merge cells in Excel
Merge and unmerge cells in Excel
In Excel, you can merge cells using the Ribbon or the Format Cells dialog box . You can also access merge commands by right-clicking or using keyboard shortcuts. Typically, when users want to merge cells, they are trying to put longer titles in one cell (such as January Actual Sales). You can merge cells horizontally between columns or vertically between rows.
If you want to combine data from cells in one worksheet (such as first and last names) in another cell, you can use the CONCATENATE function, CONCAT function, CONCATENATE operator, TEXTJOIN function, or Flash Fill.
Cell merging options are available in the Alignment group on the Home tab in the Ribbon :
Merging cells will delete data
If you merge cells with text, only the text in the top left cell will be used, and the text in the cells to the right (and below) will be deleted. If there is data to the right or below in the cells you are merging, a dialog box appears warning that Excel will keep the upper left values and delete the other data.
Considerations when merging cells
Merged cells cause problems in lists or data sets because Excel will have difficulty associating the data with the merged headers or the merged cells in the data with the correct headers . If you have longer headings in a list or data set, it's best to create shorter headings in single cells above the linked data. You won't be able to sort or filter a range that has merged cells.
Understand merge options in Excel
Merge options in Excel include:
- Merge & Center – this will merge the selected cells into one cell and center the data from the top left cell across the selected cells (if the cell is to the right or below the top left cell in the selection contains data, it will be deleted).
- Merge Across – this will merge the selected cells into one cell from the leftmost cell through the selected cells (if the cell to the right of the leftmost cell in the selection contains data, it will be deleted) . It does not automatically center the data. Merge Across only works for selections on columns, not rows.
- Merge Cells – this will merge the selected cells into one cell from the top left cell through the selected cells (if the cell to the right or below the top left cell in the selection contains data, then that cell will be deleted). It does not automatically center the data.
- Unmerge Cells – this will unmerge an already merged cell.
- Center Across Selection (in the Format Cells dialog box) – this will center the data in the selected cells but will not merge the cells into one cell.
In the following example, cells A1 to D1 have been merged using Merge & Center :
Merge cells using the Ribbon
To merge cells using the Ribbon in Excel:
- Select the cells you want to merge by dragging across the cells or clicking the first cell and Shift-clicking the last cell. The cells must be adjacent to each other.
- Click the Home tab -> Ribbon .
- In the Alignment group , click the arrow next to Merge & Center . A drop-down menu appears.
- Select the merge option you want. The data in the top left or top cell will be merged across the selected cells. Data in other cells will be deleted.
Options for merging cells and unmerging cells appear in the Ribbon when you click the arrow next to Merge & Center:
Merge cells using keyboard shortcuts
If you want to access Ribbon commands in Excel with your keyboard, you can press Alt to display key tips and then press the displayed key(s).
To merge cells using keyboard shortcuts (key tip):
- Select the cells you want to merge by dragging across the cells or clicking the first cell and Shift-clicking the last cell. The cells must be adjacent to each other.
- Press Alt > H > M (this is a sequential shortcut so press Alt then H then M). A drop-down menu with merge options appears in the Ribbon.
- Tap the character displayed for the command you want. The data in the top left or top cell will be merged across the selected cells. Data in other cells will be deleted.
Here are the keyboard shortcuts or key tips for merging and unmerging cells:
- Merge & Center – press Alt > H > M > C.
- Merge Across – press Alt + H + M + A.
- Merge Cells – press Alt > H > M > M.
- Unmerge Cells – press Alt > H > M > U.
The main tips that appear in the Ribbon when you press Alt > H > M are as follows to display merge options:
Unmerge cells
You can unmerge a cell that has already been merged.
To unmerge a cell using the Ribbon:
- Select the merged cell.
- Click the Home tab in the Ribbon .
- In the Alignment group , click the arrow next to Merge & Center . A drop-down menu appears.
- Select Unmerge Cells .
You can also use the key trick shortcut method to unmerge a cell.
Use cross-region selection as an alternative to merging cells
You can also use the Format Cells dialog box in Excel to access the Center Cross Selection option. In this case, you are actually applying formatting and the cells are not merged. You can display the Format Cells dialog box easily by right-clicking or by pressing Ctrl + 1 (at the top of the keyboard).
To apply selection between regions using the Format cells dialog box:
- Select the cells whose data you want to center (in the leftmost cell).
- Press Ctrl + 1 or right-click the selected cells and select Format cells . A dialog box appears.
- Click the Alignment tab .
- From the Horizontal menu , choose Center Across Selection .
- Click OK .
Choose between cells that appear in the Format Cells dialog box:
Between options is actually the best choice for merged titles.
You should read it
- How to merge cells in Excel - Instructions to merge cells in Excel 2010, 2013, 2016
- How to merge cells in Excel with no data loss
- How to merge cells in Excel 2003 2007
- Merge keyboard shortcuts in Excel
- How to split cells, combine cells in Excel
- Complete tutorial of Excel 2016 (Part 5): Basics of cells and ranges
- How to combine 2 or more cells in Excel without losing data
- How to merge cells in Google Sheets
- How to merge and split cells in Word
- How to split, merge first name in Excel
- Instructions to merge multiple Excel files into 1 File
- Complete tutorial of Excel 2016 (Part 6): Change the size of columns, rows and cells
Maybe you are interested
Transparent solar cells help smartphones charge themselves with sunlight
Tips for formatting cells in Excel for professional spreadsheets
How to Justify Text in Cells on Excel - Adjust Text Spacing
Successfully developed 'indoor solar cells' with conversion efficiency up to 37%
Instructions on how to cross cells in Excel
COUNTA function in Excel, function to count cells containing data with specific usage and examples