Split a column into several columns formula/macro

Spiru

Board Regular
Joined
May 10, 2016
Messages
68
Hi everyone,

Every month I'm exporting in excel a column with ~ 8000 rows and I need to split this column into several columns - each column having 1000 rows. E.g. Copy from column A first 1000 rows and paste them in column B, copy again from column A from row 1001-2000 and post in column C, etc.

1660023583493.png


I've looked online but I couldn't find a formula for this. I'm thinking that also a macro could help in copy the first 1000 rows and paste them in column B, after copy next 1000 rows and paste in column C (from row 1001 to 2000) and if the last column is less than 1000 then copy until it finds the last row with data in and paste in column I:

"
Sub Splitcolumn()

Dim Last_Row_Copy, Last_Row_Paste, Last_Row, lr As Long

Application.ScreenUpdating = False

Worksheets(1).Activate

Last_Row_Copy = Cells(Rows.Count, 1000).End(xlUp).Row

Range("A1:A" & Last_Row_Copy).Copy
Sheets(1).Select
Range("B1" & Last_Row_Paste).PasteSpecial Paste:=xlPasteAll
"
Could you please help with a solution?


Thank you
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,214,918
Messages
6,122,249
Members
449,075
Latest member
staticfluids

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