+ Reply to Thread
Results 1 to 5 of 5

How to insert duplicate rows

  1. #1
    Registered User
    Join Date
    08-23-2007
    Posts
    27

    How to insert duplicate rows

    Interesting scenario -

    I have a spreadsheet with one column - 35,000 unique item numbers

    Example:

    item a
    item b
    item c
    item d
    item e

    I need to duplicate each row - making a spreadshhet with one column 70,000 rows as such:

    item a
    item a
    item b
    item b
    item c
    item c
    item d
    item d
    item e
    item e

    I tried a formula - couldn't come up with anything - looked for some kind of merge type functionality - did find anything........

    Any guidance would be appreciated........

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to insert duplicate rows

    Does it need to be in the same order?
    You can copy your range (i.e. A2:A1000) and paste it below the original and then Sort by that column to get the duplicate values back together again. Would that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-23-2011
    Location
    Exeter, England
    MS-Off Ver
    Excel 2003 (Work), 2007 (Home)
    Posts
    18

    Re: How to insert duplicate rows

    Here's a simple VBA solution
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-23-2007
    Posts
    27

    Re: How to insert duplicate rows

    I tried your solution and ran into the following: Copied my rows (38,365 rows)

    I tried to paste my selected at the 1st blank row after my last record - get that ugly message that I cannot paste and that I must select a single cell (which I did) or I must choose a range equivalent to my selected range.........

    My range is 38,365 rows - so I try to select a range below my range with 38,375 rows (76,730 total) - the spreadsheet maxes at 65,000 - I am on 2007 - how to change the default of 65,000 rows available?

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to insert duplicate rows

    how to change the default of 65,000 rows available
    Save the file as an xlsx (or xlsm) and then close and reopen the file. Did that fix the problem?
    Last edited by ChemistB; 08-31-2011 at 02:31 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1