Duplicating call contents down a single column

jrman1

New Member
Joined
Jul 1, 2014
Messages
3
Hey all,

I have about 400 rows of data in Column A in a spreadsheet, and I need to take each individual row (in A) and copy/duplicate it twice, directly below the originals.

For instance:

OLD COLUMN A

1
2
3
...

NEW COLUMN A

1
1
1
2
2
2
3
3
3
...
...
...

Additionally, in Column B I have three different rows that need to be duplicated together, similar to column A. But, Column B should only be "extended" as far as Column A goes.

OLD COLUMN B

X
Y
Z

NEW COLUMN B

X
Y
Z
X
Y
Z
X
Y
Z
...
...
...

Thank you very much for your help!!!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I wrote a small macro to help you extend column A as required
Code:
Sub ExtendData()
    For I = Range("A" & Rows.Count).End(xlUp).Row To 1 Step -1
        Rows(I + 1).Resize(2).Insert
        Cells(I + 1, "A") = Cells(I, "A")
        Cells(I + 2, "A") = Cells(I, "A")
    Next I
End Sub

Once A is extended, all you need do is go to column B, highlight from row(1) to the end(last used row), then using the cross at the bottom right corner of the bottom cell, double click and it should fill the data down as required like


Excel 2010
AB
11x
21y
31z
42x
52y
62z
73x
83y
93z
104x
114y
124z
135x
145y
155z
166x
176y
186z
Sheet2
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,843
Members
449,471
Latest member
lachbee

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