How to Merge Cells in Excel Table (7 Ways)

 

Consider the following data set of a list of names. Let’s merge the first cell to make it a proper header.

Merge Cells in Excel Table


Method 1 – Apply the Merge & Center Command to Merge Cells in an Excel Table

Here’s the starting dataset.

Apply the Merge & Center Command to Merge Cells in Excel Table

Steps:

  • Select the cells.

Apply the Merge & Center Command to Merge Cells in Excel Table

  • From the Home tab, select Merge & Center

Apply the Merge & Center Command to Merge Cells in Excel Table

  • You will see that cells B4:B9 are merged.

Apply the Merge & Center Command to Merge Cells in Excel Table


Method 2 – Use a Keyboard Shortcut to Merge Cells in an Excel Table

Steps:

  • Select the cells.
  • Press Alt + H.
  • Press M twice.

Use Keyboard Shortcut to Merge Cells in Excel Table

  • The cells will be merged.

Use Keyboard Shortcut to Merge Cells in Excel Table


Method 3 – Merge Cells in an Excel Table Using Format Cells

We’ll use the same dataset as before.

Merge Cells in Excel Table Using Format Cells

Steps:

  • Press Ctrl + 1 to open the Format Cell Dialog Box.
  • Choose Alignment.
  • Mark Merge cells.

Merge Cells in Excel Table Using Format Cells

  • Press Enter to see the result.

Merge Cells in Excel Table Using Format Cells


Method 4 – Apply the Copy & Paste Option to Merge Cells

Here we have two tables where the first has the proper formatting, which we’ll copy.

Apply the Copy & Paste Option to Merge Cells in Excel Table

Steps:

  • Select the cell B4.
  • Press Ctrl + C to copy.

Apply the Copy & Paste Option to Merge Cells in Excel Table

  • Select E4.
  • Press Ctrl + V.

Apply the Copy & Paste Option to Merge Cells in Excel Table

  • Here’s the result.

Apply the Copy & Paste Option to Merge Cells in Excel Table

Read More: How to Merge Datasets in Excel


Method 5 – Run VBA Code to Merge Cells in an Excel Table

Steps:

  • Press Alt+ F11 to open the VBA window.
  • Click on the Insert option from the tab.
  • Select Module from the options available.

Run a VBA Code to Merge Cells in Excel Table

  • Paste the following VBA into the Module.
Sub MergeCells_Names()
Range("B4:B9").Merge
End Sub

Run a VBA Code to Merge Cells in Excel Table

  • Run the code with F5.
  • You will get the following result.

Run a VBA Code to Merge Cells in Excel Table


Method 6 – Merge Cells in Excel Inside a Pivot Table

Steps:

  • Select a cell in the Pivot Table.

Inside a Pivot Table

  • Select Design from the tab.
  • Choose Report Layout.

Inside a Pivot Table

  • Choose Show in Tabular Form.

Inside a Pivot Table

  • Go to PivotTable Analyze and select Options.

Inside a Pivot Table

  • After opening the box, go to Layout & Format.
  • Mark the check box named Merge and Center cells with labels.
  • Press Enter.

Inside a Pivot Table

  • You will get the following result.

Inside a Pivot Table


Method 7 – Merge Multiple Ranges of Cells in an Excel Table

Step 1:

  • Select all cell ranges. Hold the Ctrl button while selecting.

Multiple Ranges of Cells

  • Click on Merge & Center.

Multiple Ranges of Cells

  • You will have multiple cells merged at once.

Multiple Ranges of Cells


Download the Practice Workbook


<< Go Back to Cells | Merge | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Bhubon Costa
Bhubon Costa

Bhubon Costa, B.Sc. in Naval Architecture & Marine Engineering from Bangladesh University of Engineering & Technology, has worked with the ExcelDemy since 2021. Currently, he has been working as a reviewer. Notably, he has written over 90 articles and led several VBA content development teams. He has a great passion for the fields of data analytics and data science. His areas of expertise include Excel VBA, Power Query, Pivot Table, Power BI, MySQL, PostgreSQL, machine learning, and Python... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo