+ Reply to Thread
Results 1 to 7 of 7

Copy the same two columns from 5 sheets into one sheet?

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    3

    Copy the same two columns from 5 sheets into one sheet?

    Can anyone help with a macro to do the following?
    1. Copy data from Column A3 down to the last entry point (last entry will increase further down every week).
    2. Copy data from Column AM3 down to last entry point (last entry will increase further down every week).
    3. Copy column data 1 & 2 from more than one sheet, sheets "01" , "02" , "03" , "04" , "05" .
    THEN
    4. Put into a new sheet on same worksheet called "SUMMARY" A3 combined data in column A, and all AM3 combined data in column B.

    Thank you,

    Working on this as you read this but have yet to figure it out.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy the same two columns from 5 sheets into one sheet?

    Give this a try:

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 10-29-2012 at 09:43 AM. Reason: corrected 3rd line of code
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Copy the same two columns from 5 sheets into one sheet?

    The below code is lengthy when comparing to JBeaucaire's code. But me too tried to get solution for your query and spent some time in writing the below code. So posting the code even though you got the shorter code.

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    10-29-2012
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Copy the same two columns from 5 sheets into one sheet?

    Thank you, that worked good but only grabbed column A3 down from Sheet 01. It grabbed all columns AM3 perfectly, just it was missing the corresponding A column once we got to sheet 02. So I had a lot of "0"s at on the final Column A towards the bottom.

    Can you set it to grab the data but only paste values for column A3, maybe that was the issue? As the original Column A3 is a blend of data using other functions.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy the same two columns from 5 sheets into one sheet?

    Who are you talking to? If me:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-29-2012
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Copy the same two columns from 5 sheets into one sheet?

    JBeaucaire, thank you, that did it. Awesome.

    Now, I ran into a problem where this new data combined is too long for the database we work with. It needs to be broken up into sheets totaling no more than 3,500 rows. This generated 16,300 rows =) when combined. So Summary1, Summary2, Summar3, etc as needed worksheets is my next step. Thank you, this is a huge relief as is. In the meantime, I check with the website software and see if they can't change limits.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy the same two columns from 5 sheets into one sheet?

    'ROWS TO SHEETS
    Here's a macro for taking a sheet and splitting into multiple sheets based on X-rows per sheet.


    The original question has been resolved, so this thread should really be closed. Please select Thread Tools from the menu above and mark the thread as solved. Thanks.
    Last edited by JBeaucaire; 12-27-2019 at 10:43 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