Move two rows at the same time to adjacent columns

Gogators

New Member
Joined
Apr 12, 2016
Messages
15
Hi, please help.

My original table is:


Row
1Title 1
2Description1
3Title 2
4Description 2
5Title 3
6Description 3

<tbody>
</tbody>


I need the following result:


ABC
Title1Title 2Title 3
Description 1Description 2Description3

<tbody>
</tbody>

I appreciate your help, thanks in advance.

Joe
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try this

Code:
Sub Move_two_rows()
    Dim i As Long, j As Long
    j = 2
    For i = 3 To Range("A" & Rows.Count).End(xlUp).Row Step 2
        Range("A" & i).Resize(2, 1).Cut Destination:=Cells(1, j)
        j = j + 1
    Next
End Sub
 
Upvote 0
Thank you. I can't get to run this macro on my Excel for Mac, it hangs. Something's off, not the VBA, it's on my end.

Joe
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,449
Members
448,966
Latest member
DannyC96

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top