+ Reply to Thread
Results 1 to 7 of 7

How do I copy and paste multiple times with a new code every 5th row.

Hybrid View

  1. #1
    Registered User
    Join Date
    12-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    How do I copy and paste multiple times with a new code every 5th row.

    Hi there, I wondered how I could copy and paste the following code for 4 rows and then start the new code and copy that for 4 rows and so on and so forth. I have 1000's of rows to do this with so I would like this automated if possible.
    Thanks!

    631610
    row
    row
    row
    row
    611310
    row
    row
    row
    row
    611610

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do I copy and paste multiple times with a new code every 5th row.

    i cant see any sequence there
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    12-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How do I copy and paste multiple times with a new code every 5th row.

    Hi Martin,

    its like this


    612130



    612220




    612230




    612110




    There are 4 rows in between each sequence and I need to copy and paste them down but I have thousands of lines.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do I copy and paste multiple times with a new code every 5th row.

    use another column assuming your data starts in say a2 in say b2 put =a2 in b3 put
    =IF(A3="",B2,A3) fill down to end. you can copy and paste special/ values over the original then delete the column
    Attached Files Attached Files
    Last edited by martindwilson; 12-15-2012 at 05:07 PM.

  5. #5
    Registered User
    Join Date
    12-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How do I copy and paste multiple times with a new code every 5th row.

    Thanks Martin, Perhaps I am doing it wrong, I have a circular reference....

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do I copy and paste multiple times with a new code every 5th row.

    you wont if you follow the instructions! what have you put and in what cells
    Attached Files Attached Files
    Last edited by martindwilson; 12-15-2012 at 05:11 PM.

  7. #7
    Registered User
    Join Date
    12-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: How do I copy and paste multiple times with a new code every 5th row.

    Thanks Martin, it was me being an idiot, it works!!! Thank you so much!

+ 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