+ Reply to Thread
Results 1 to 4 of 4

Copy and Paste every other line (thousands of times)

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    65

    Copy and Paste every other line (thousands of times)

    ........A..........B..........C.........
    1...*-7.5*....*12*....*-32*....(paste)
    2....-7.5........12........-32......(copy)
    3....*12*......*-7*.....*19*....(paste)
    4.....12.........-7.........19.......(copy)


    I am trying to complete a huge copy and paste job where I copy the three sets of numbers in the even lines and paste them in the blank lines above them. The problem is that I need to do this for thousands of lines and doing it manually (i.e. arrowing down and manually hitting paste every other row) will take me hours. Is there a quicker way for me to do this?

    Thanks in advance!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Copy and Paste every other line (thousands of times)

    Instead of copying, use =A1 (or whatever the cell ref is), then just copy that down as needed?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Copy and Paste every other line (thousands of times)

    Hi all- Paste the following formula in D1.

    =OFFSET(D1,ISODD(ROW()),-3)

    1) Copy D1 into E1:F1, then copy D1:F1 down as far as required.
    2) Select and copy ALL the columns D:F cells you pasted the formula in.
    3) Select A1, right-click, and Paste Values

    Row\Col
    A
    B
    C
    D
    E
    F
    1
    2.1
    2.2
    2.3
    2
    2.1
    2.2
    2.3
    2.1
    2.2
    2.3
    3
    4.1
    4.2
    4.3
    4
    4.1
    4.2
    4.3
    4.1
    4.2
    4.3
    5
    6.1
    6.2
    6.3
    6
    6.1
    6.2
    6.3
    6.1
    6.2
    6.3


    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee

  4. #4
    Registered User
    Join Date
    11-15-2012
    Location
    Tampa
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    65

    Re: Copy and Paste every other line (thousands of times)

    That's what I'm looking for! Thanks, Leelnich!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copy a whole row and paste it n times downwards
    By buhnen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-27-2016, 07:47 AM
  2. Copy and Paste 42k times
    By JessecGolden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-26-2016, 11:10 AM
  3. Replies: 3
    Last Post: 02-07-2014, 03:22 AM
  4. Replies: 0
    Last Post: 06-25-2013, 09:46 AM
  5. [SOLVED] Copy/Paste a row x times
    By Choppo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-14-2013, 10:20 AM
  6. Replies: 0
    Last Post: 09-26-2012, 11:26 AM
  7. copy and paste in one-go instead of performing 20 times copy & paste?
    By cyli2423 in forum PowerPoint Formatting & General
    Replies: 1
    Last Post: 08-24-2012, 06:06 AM

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