Separate data in columns to match a specific number of rows

zgsharon

New Member
Joined
May 19, 2016
Messages
3
Had no Idea how to title this, so to start with if anyone has a better title please help me out. New to Mr.Excel and hoping someone knows what I'm attempting to do. I am trying separate a specific number of rows in multiple columns to match another set of data with a greater number of rows. So I want to take the data in columns A, B, and C (see example below) and make the same data match the number of rows in D, E, and F with blank cells filling in the extra rows. So basically I need to spread a specific column of data into a new column with a set range of rows.


A B C D E F
666554
454545644523
44443423
555234234
64465
234645
24243
33434
5423
6561
42332

<tbody>
</tbody>

Hoping that it would look something like this.

ABCDEF
666554
644523
43423
234234
45454564465
234645
24243
33434
4445423
6561
42332
55523412

<tbody>
</tbody>


I know the number of rows in the first three columns won't always be a multiple of the other three columns, I just need it to keep the first and last values of each set of data lined up with each other in the same row. The values in between can be spaced randomly, as they are above.

I have found this code, and it helps a little, but I don't know how to make the code do multiple columns at once.
Sub MG28Sep05()
Dim Last As Integer, n
' Change "A" Below To another column Letter
Last = Range("A" & Rows.Count).End(xlUp).row

For n = Last To 2 Step -1
' Change "7" Below To No of Blank Rows Required
Cells(n, 1).Resize(7).Insert shift:=xlDown
Next n
End Sub


Thanks for any help in advance. I apologize for the terrible explanation, just hoping someone has wanted to attempt to do the same thing. I am using Office 365 on windows. Let me know if you need any more information
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,216,122
Messages
6,128,967
Members
449,480
Latest member
yesitisasport

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