+ Reply to Thread
Results 1 to 4 of 4

Duplicating X number of rows Y times automatically

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Duplicating X number of rows Y times automatically

    Does anyone know if this is possible?

    I want to paste a string into a number of rows, the number of rows it is inserted into depends on the number in the cell to the right of the string. I would do this manually but as a result I need to produce around 100,000 rows.

    I'd imagine the solution is rather simple but struggling to get my head around it. Does anyone have any ideas?

    Example:
    A1 = Help B1 = 3
    A2 = Me B2 = 2
    A3 = Please B3 = 4

    Result:
    Help
    Help
    Help
    Me
    Me
    Please
    Please
    Please
    Please

  2. #2
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: Duplicating X number of rows Y times automatically

    Perhaps
    Please Login or Register  to view this content.
    regards

    johnjohns

    When you are not sure where to go, every road takes you there!

  3. #3
    Registered User
    Join Date
    02-21-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Thumbs up Re: Duplicating X number of rows Y times automatically

    Brilliant! Thank you!

    One more question

    If B1 was '2' for example, how could I modify the macro to copy it 20, 200 times, or even 2000 times?

  4. #4
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: Duplicating X number of rows Y times automatically

    You can enter 20,200 or 2000 in cell B2 and no changes in the macro, to the extent I understood your query

+ 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