Copy down 3 -> transpose until end?

HotLanta

Board Regular
Joined
Nov 3, 2005
Messages
170
Hello,

I have data in sets of three going down in column A. I could have data down to row 3 or 3000 depending on the dataset.

I want to copy A1:A3 and paste transpose in B1 then copy A4:A6 and paste transpose in B2.

Can someone help me with a loop that will loop until there is no more data in column A?

Thanks in advance!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Try

Code:
Sub test()
Dim LR As Long, i As Long, j As Long
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR Step 3
    j = j + 1
    Range("A" & i).Resize(3).Copy
    Range("B" & j).PasteSpecial Paste:=xlPasteAll, Transpose:=True
Next i
End Sub
 
Upvote 0

Forum statistics

Threads
1,203,317
Messages
6,054,706
Members
444,742
Latest member
jmartin9247

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