Adding Duplicates In Excel

Rubicks13

New Member
Joined
Aug 19, 2009
Messages
6
Hi all,

I have a spreadsheet about 300 rows deep with different titles of books. I want to duplicate these so that each title is shown 13 times for each book.

Example:

American Indian Tribal Law is row one on the speadsheet, I want to see it like this:

American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law
American Indian Tribal Law

So for every title (300) it would appear 13 times so i would ultimately have 3,900 rows when all said and done.

Thanks for any help!
CUBE
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
It would be your best interest to try a VBA code.
Just right click on your sheet tab and press view code and copy and paste onto the page.
Code:
Sub Copy13()
    Dim LR As Double, i As Double, count As Double, j As Double
    LR = Range("A" & Rows.Count).End(xlUp).Row
    count = 1
    For i = 1 To LR
        For j = 1 To 13
        Range("B" & count).Value = Range("A" & i).Value
        count = count + 1
        Next j
    Next i
End Sub
 
Upvote 0
Try this:-
Code:
[COLOR="Navy"]Sub[/COLOR] MG31May25
[COLOR="Navy"]Dim[/COLOR] Lst [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]Integer,[/COLOR] n, temp, Rng [COLOR="Navy"]As[/COLOR] Range
Lst = Range("A" & rows.Count).End(xlUp).row
[COLOR="Navy"]For[/COLOR] n = Lst To 1 [COLOR="Navy"]Step[/COLOR] -1
    temp = Range("A" & n)
        [COLOR="Navy"]Set[/COLOR] Rng = Range("A" & n).Resize(12)
            Rng.EntireRow.Insert
                Rng.Offset(-Rng.Count).Resize(Rng.Count) = temp
[COLOR="Navy"]Next[/COLOR] n
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Regards Mick
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,921
Latest member
BBQKING

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