Shortcut for Merge and Center in Excel (3 Examples)

To illustrate, we have a data table with two columns and the title of the table in a single cell.


Example 1 – Shortcut for Merge & Center in Excel

❶ Select the two cells to merge.

❷ Press the ALT key.

The keyboard shortcut hints will display as shown in the image below.

Shortcut for Merge & Center in Excel: cell selection

❸ Press H to select the Home menu.

❹ Press M to go to the Merge & Center group.

Shortcut for Merge & Center in Excel: Merge & Center command under HOME Menu

❺ Press C to apply the Merge & Center command.

All Shortcut keys for Merge & Center in Excel

The shortcut keys for the Merge & Center are ALT > H > M > C. Select the cells and press the keys in sequence. Pressing the final key (C) will center-align as shown in the image below.

Read More: How to Combine Cells Using Excel Formula (6 Methods)


Example 2 – Shortcut for Merge Across in Excel

❶ Select the cell row to merge.

❷ Press ALT > H > M > A in sequence.

Shortcut for Merge Across in Excel: cell selection

A warning box will open.

❸ Hit OK.

Shortcut for Merge Across in Excel: Warning dialog box

The selected cells will merge as shown in the image below.

Read More: How to Combine Two Cells in Excel (6 Quick Methods)


Example 3 – Shortcut for Merge Cells in Excel

❶ Select the cells to merge.

❷ Press ALT > H > M > M in sequence.

Shortcut for Merge Cells in Excel: Cell Selection

A warning box will open.

❸ Hit OK.

Shortcut for Merge Cells in Excel: Warning Box

The cells will merge vertically as shown in the image below:

Read More: Excel Shortcut to Merge Cells (3 Methods + Bonus)


How to Unmerge Cells

❶ Select the cell where you have applied the Merge & Center command.

❷ Press ALT > H > M > U in sequence.


Add Merge & Center to the Quick Access Toolbar

❶ Go to the Home menu from the main ribbon.

❷ Under the Alignment group, right-click on Merge & Center.

❸ Select Add to Quick Access Toolbar.

Add Merge & Center to the Quick Access Toolbar for shortcut way

The Merge & Center icon will be added to the quick access toolbar.

Merge & Center in the quick access toolbar


Make a Custom Shortcut Key for Merge & Center Using VBA

❶ Right-click on the worksheet name and select View Code, or press ALT + F11, to open the VBA editor.

❷ Go to Module from the Insert ribbon.

❸ Enter the following VBA code,

Sub MergeAndCenter()

With Selection

.HorizontalAlignment = xlCenter

.Merge

End With

End Sub

❹ Save the code and return back to the worksheet.

❺ Press ALT + F8 to open up the Macro dialog box.

❻ Select the MergeAndCenter function and go to Options.

Macro to Make a Custom Shortcut Key for Merge & Center Using VBA

A new dialog box named Macro Options appears.

❼ Set your preferred shortcut key.

❽ Click OK.

Macro Options to Make a Custom Shortcut Key for Merge & Center Using VBA

Wherever you want to apply the Merge & Center command, select the cells and press the shortcut key(s) you set.

Read More: How to Combine Cells in Excel (4 Methods + Shortcut)


Download Practice Workbook


Related Articles

Get FREE Advanced Excel Exercises with Solutions!
Mrinmoy Roy
Mrinmoy Roy

Mrinmoy Roy, a dedicated professional with a BSc in Electronics and Communication Engineering from Khulna University of Engineering & Technology, Bangladesh, brings over two years of expertise to the ExcelDemy project. As a prolific contributor, he has authored around 180 articles, showcasing his deep knowledge and passion for Microsoft Excel, Data Analysis, and VBA. His unwavering commitment to continuous learning, combined with versatile skills, renders him well-suited for roles in data management and spreadsheet solutions. He has interest... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo