How to Move Merged Cells in Excel – 3 Methods

 

This is the sample dataset.

Embedding VBA Macro to move Merged Cells in Excel


Method 1 – Using the Paste Special Command to Move Merged Cells

Use the Paste Special command.

Steps

Move B5:E9 to the empty range G5:J9:

Using Paste Special Command to move merged cells in Excel

  • Select B5:E9 and right-click.
  • Click Copy.

Using Paste Special Command to move merged cells in Excel

  • Select G5, and right-click.
  • Go to Paste Special.
  • Click Keep Source Column Widths(W).

Using Paste Special Command to move merged cells in Excel

The merged range B5:E9 moved to G5:J9.

 


Method 2 – Move Merged Cells by Changing Text Alignment

Unmerge cells.

Steps

To move B5:E9 to the empty range G5:J9, moving cells won’t work:

  • Select B5:E9 and try to move it by dragging the selection border.

Changing Text Alignment to move merged cells in Excel

  • A warning window will be displayed.
  • Click OK.

Changing Text Alignment to move merged cells in Excel

To move cells, the source and destination cell size has to be equal.

 

  • Select B5:E5 and right-click.
  • Click ‘Merge & Center’ or go to Merge and Center in Alignment.

Changing Text Alignment to Move Merged Cells in Excel

  • After unmerging the cells, the text is only in B5.

Changing Text Alignment to Move Merged Cells in Excel

  • Select B5:E5 again and right-click.
  • Select Format Cells.

  • Go to Alignment.
  • In Text alignment, select Center Across Selection in Horizontal.
  • Click OK.

Changing Text Alignment to move merged cells in Excel

  • Repeat the same process for the rest of the merged cells.
  • Click OK.
  • Select B5:E9, right-click, and click Cut.

  • Select G5 and right-click.
  • Click Paste in Paste Options.

  • The merged range B5:E9 moved to G5:J9.

 


Method 3 – Embedding a VBA Macro in Excel

Use a VBA code to merge cells.

Steps

  • Go to the Developer tab.
  • Click Visual Basic.

Embedding VBA Macro to move Merged Cells in Excel

  • Click Insert > Module.

  • In the module window, enter the following code.
Sub move_merged_cells()
Selection.Cut Range("G5")
End Sub

Note :

Range(” G5”) in the code window, line 2 in the Selection.Cut is the destination cell. If you need to paste the cell content to another location, edit it.

  • Close the Module window.
  • Select B5:E9.
  • Go to View > Macros(Double click).

Embedding VBA Macro to move Merged Cells in Excel

  • Click View Macros, select the macro you created: move_merged_cells.
  • Click Run.

Embedding VBA Macro to move Merged Cells in Excel

  • The merged range B5:E9 moved to G5:J9.

Embedding VBA Macro to move Merged Cells in Excel

 


Download Practice Workbook

Download the practice workbook below.


 

<< Go Back to Cells | Merge | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Rubayed Razib Suprov
Rubayed Razib Suprov

Rubayed Razib, holding a BSC degree in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, serves as a devoted member of the ExcelDemy project. He has contributed significantly by authoring numerous articles and showcasing proficiency in VBA. Razib efficiently automates Excel challenges using VBA macros and actively participates in the ExcelDemy forum, providing valuable solutions for user interface challenges. Apart from creating Excel tutorials, he is interested in Data Analysis with MS Excel,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo