Create repeating rows?

anantathaker

Board Regular
Joined
Jan 7, 2005
Messages
71
Hi all,
I'm wondering if there is a quick way to create repeating rows without losing their order, that is:

A
B
C
D

into

A
A
B
B
C
C
D
D

Only, instead of repeating them twice, I'd like to repeat them 100 times

Thanks!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Someon may be able to suggest a formula, but try this macro

Code:
Sub Test()
    Dim x As Long
    For x = 1 To 26 Step 1
        If x > 1 Then
            With Range("A" & 100 * x, Range("A" & 100 * (x + 1)))
                .Value = Chr(64 + x)
            End With
        Else
            With Range("A" & 1 * x, Range("A" & 100 * x))
                .Value = Chr(64 + x)
            End With
        End If
    Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,673
Members
452,937
Latest member
Bhg1984

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