Merge and Unmerge Cells in Excel
by Avantix Learning Team | Updated September 7, 2023
Applies to: Microsoft® Excel® 2013, 2016, 2019, 2021 and 365 (Windows)
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 a user wants to merge cells, they are trying to place longer headers in one cell (such as January Actual Sales). You can merge cells horizontally across columns or vertically across rows.
If you want to combine data from cells in a worksheet (such as first name and last name) in another cell, you can use the CONCATENATE function, the CONCAT function, the CONCATENATE operator, the TEXTJOIN function or Flash Fill.
Recommended article: How to Combine Cells in Excel using Concatenate (3 Ways)
Do you want to learn more about Excel? Check out our virtual classroom or in-person Excel courses >
Merge cells options are available in the Alignment group on the Home tab in the Ribbon:
If you merge cells with text, only the text in the upper leftmost cell will be used and text in cells to the right (and below) will be removed. If there is data to the right or below in the cells that you are merging, a dialog box appears warning that Excel will keep the upper left values and remove other data.
Excel merge options include:
- Merge & Center – this will merge the selected cells into one cell and center the data from the upper leftmost cell across the selected cells (if cells to the right or below the upper leftmost cell in the selection contain data, it will be removed).
- Merge Across – this will merge the selected cells into one cell from the leftmost cell across the selected cells (if cells to the right of the leftmost cell in the selection contain data, it will be removed). It does not automatically center the data. Merge Across only works for selections across columns, not rows.
- Merge Cells – this will merge the selected cells into one cell from the upper leftmost cell across the selected cells (if cells to the right or below the upper leftmost cell in the selection contain data, it will be removed). It does not automatically center the data.
- Unmerge Cells – this will unmerge a cell that has been merged.
- 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.
Merge cells using the Ribbon
To merge cells using the Ribbon in Excel:
- Select the cells you want to merge by dragging over the cells or click in the first cell and Shift-click in the last cell. The cells must be adjacent to each other.
- Click the Home tab in the Ribbon.
- In the Alignment group, click the arrow beside Merge & Center. A drop-down menu appears.
- Select the merge option you want. The data in the top leftmost cell or uppermost cell will be merged across the selected cells. Data in the other cells will be removed.
Options to merge cells and unmerge cells appear in the Ribbon when you click the arrow beside Merge & Center:
In the following example, cells A1 to D1 have been merged using Merge & Center:
Merge cells using keyboard shortcuts
If you want to access commands on the Ribbon in Excel using your keyboard, you can press Alt to display key tips and then press the displayed key(s).
To merge cells using keyboard shortcuts (key tips):
- Select the cells you want to merge by dragging over the cells or click in the first cell and Shift-click in 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.
- Press the displayed letter for the command you want. The data in the top leftmost cell or uppermost cell will be merged across the selected cells. Data in the other cells will be removed.
The following are the keyboard or key tips shortcuts 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.
Key tips appear in the Ribbon when you press Alt > H > M as follows to display merge options:
Unmerge cells
You can unmerge a cell that has 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 beside Merge & Center. A drop-down menu appears.
- Select Unmerge Cells.
You can also use the key tips shortcut method to unmerge a cell.
Merge cells issues
Merged cells cause problems in lists or data sets as Excel will have difficulty associating data with merged headers or merged cells in the data with the correct headers. If you have longer headers in lists or data sets, it's best to create shorter headers in single cells above the associated data. You will not be able to sort or filter a range with merged cells.
It's usually better to use Center Across Selection rather than Merge Cells because Excel will not merge the selected cells into one cell, it will simply center the data. This command is available through the Format Cells dialog box. If you are want to merge a title across the top of a worksheet, this is usually the best choice.
Use Center Across Selection as an alternative to merge cells
You can also use the Format Cells dialog box in Excel to access the Center Across 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 Center Across Selection using the Format Cells dialog box:
- Select the cells with the 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 drop-down menu, choose Center Across Selection.
- Click OK.
Center Across Selection appears in the Format Cells dialog box:
Center across selection is really the best option for merged titles.
Subscribe to get more articles like this one
Did you find this article helpful? If you would like to receive new articles, JOIN our email list.
More resources
How to Remove Duplicates in Excel (3 Easy Ways)
How to Lock Cells in Excel (Protect Formulas and Data)
3 Excel Strikethrough Shortcuts to Cross Out Text or Values in Cells
Use Conditional Formatting in Excel to Highlight Dates Before Today (3 Ways)
How to Replace Blank Cells in Excel with Zeros (0), Dashes (-) or Other Values
Related courses
Microsoft Excel: Intermediate / Advanced
Microsoft Excel: Data Analysis with Functions, Dashboards and What-If Analysis Tools
Microsoft Excel: Introduction to Power Query to Get and Transform Data
Microsoft Excel: New and Essential Features and Functions in Excel 365
Microsoft Excel: Introduction to Visual Basic for Applications (VBA)
Our instructor-led courses are delivered in virtual classroom format or at our downtown Toronto location at 18 King Street East, Suite 1400, Toronto, Ontario, Canada (some in-person classroom courses may also be delivered at an alternate downtown Toronto location). Contact us at info@avantixlearning.ca if you'd like to arrange custom instructor-led virtual classroom or onsite training on a date that's convenient for you.
Copyright 2024 Avantix® Learning
You may also like
What is Power Query in Excel?
Power Query in Excel is a powerful data transformation tool that allows you to import data from many different sources and then extract, clean, and transform the data. You will then be able to load the data into Excel or Power BI and perform further data analysis. With Power Query (also known as Get & Transform), you can set up a query once and then refresh it when new data is added. Power Query can import and clean millions of rows of data.
How to Stop or Control Green Error Checking Markers in Excel
In Microsoft Excel, errors are flagged with small green marker or triangle in the upper left corner of the cell. However, these indicators display when there may be an error but is, in fact, not an error.
Excel Shortcuts to Zoom In and Out in Your Worksheets (4 Shortcuts)
There are several mouse and keyboard shortcuts you can use to zoom in and out in Excel worksheets. Some of these shortcuts are built-in and others can be created by customizing Excel Options.
Microsoft, the Microsoft logo, Microsoft Office and related Microsoft applications and logos are registered trademarks of Microsoft Corporation in Canada, US and other countries. All other trademarks are the property of the registered owners.
Avantix Learning |18 King Street East, Suite 1400, Toronto, Ontario, Canada M5C 1C4 | Contact us at info@avantixlearning.ca