+ Reply to Thread
Results 1 to 9 of 9

Quicker way to copy and paste a lot of rows?

  1. #1
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    2010
    Posts
    101

    Quicker way to copy and paste a lot of rows?

    I've uploaded a worksheet. It has three tabs, 'Locations' and 'Sample' and 'Desired'. What I need to figure out is if there is a quicker way to add 1176 rows of data from the 'Sample' tab to the 'Locations' tab.

    So, for the 'Locations' tab, row 2, I need to add the info from the Sample tab for column C, D, and E. I need to insert 1176 rows so that it looks like the 'Desired' tab. I then need to do this for all the rest of the locations.

    I could do this by copying and pasting it - but is there an easier way?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    30,900

    Re: Quicker way to copy and paste a lot of rows?

    I must be missing something here, but in C2 copied across and down:

    =Sample!A2

    I know I'm missing something!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    2010
    Posts
    101

    Re: Quicker way to copy and paste a lot of rows?

    Thanks AliGW, I probably didn't explain properly, my apologies. My expectation is that the total rows on the 'Locations' tab will be somewhere in the neighborhood of 150,000.

    So, when it's complete, the 'Locations' tab will have 1176 rows where column A will have 'Loc 1' and column B will have 'Loc 1 irrelevant detail'. Columns C-E will have different information. It will look like how the 'Desired' tab looks.

    What is currently in row 3 on the Locations Tab will have 1176 rows too. Column A and B will be 'Loc 2' and 'Loc 2 irrelevant detail'. Column C-E will be different.

    It's kind of look like this (although MANY more rows for each loc):

    Location Loc Descr Category Type Range
    Loc 1 Loc 1 irrelevant detail 1 A 1
    Loc 1 Loc 1 irrelevant detail 1 A 2
    Loc 1 Loc 1 irrelevant detail 1 A 3
    Loc 1 Loc 1 irrelevant detail 1 A 4
    Loc 1 Loc 1 irrelevant detail 1 A 5
    Location Loc Descr Category Type Range
    Loc 2 Loc 2 irrelevant detail 1 A 1
    Loc 2 Loc 2 irrelevant detail 1 A 2
    Loc 2 Loc 2 irrelevant detail 1 A 3
    Loc 2 Loc 2 irrelevant detail 1 A 4
    Loc 2 Loc 2 irrelevant detail 1 A 5

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    30,900

    Re: Quicker way to copy and paste a lot of rows?

    OK ...

    I'm not having my best day today, sorry.

  5. #5
    Forum Expert
    Join Date
    09-10-2017
    Location
    Chippenham
    MS-Off Ver
    365
    Posts
    5,082

    Re: Quicker way to copy and paste a lot of rows?

    How about
    Please Login or Register  to view this content.
    It will take a few seconds to run

  6. #6
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    2010
    Posts
    101

    Re: Quicker way to copy and paste a lot of rows?

    Thank you Fluff13 - this worked!

    Unfortunately I am a complete novice with VBA. I might have some follow up questions when I transfer this to what I'm working on.

  7. #7
    Forum Expert
    Join Date
    09-10-2017
    Location
    Chippenham
    MS-Off Ver
    365
    Posts
    5,082

    Re: Quicker way to copy and paste a lot of rows?

    You're welcome & thanks for the feedback

  8. #8
    Forum Contributor
    Join Date
    05-02-2017
    Location
    NoVa, United States
    MS-Off Ver
    2010
    Posts
    101

    Re: Quicker way to copy and paste a lot of rows?

    I was able to manipulate the formula to get it to work - thank you so much Fluff13!

  9. #9
    Forum Expert
    Join Date
    09-10-2017
    Location
    Chippenham
    MS-Off Ver
    365
    Posts
    5,082

    Re: Quicker way to copy and paste a lot of rows?

    My pleasure & glad to hear you were able to modify it.

+ 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