Closed Thread
Results 1 to 6 of 6

Copying data from multiple worksheets to a master worksheet

  1. #1
    Registered User
    Join Date
    06-17-2009
    Location
    Connecticut
    MS-Off Ver
    Excel 2007
    Posts
    7

    Question Copying data from multiple worksheets to a master worksheet

    Hi, I'm a beginner at Excel, so please bear with me.

    I have a workbook with multiple worksheets. Each worksheet is a set o data from a certain year. I want to create a macro that automatically copies the data from these worksheets into a master worksheet that can easily be used to make a pivot table. How can I do this? (I included a sample workbook in the attachments.)
    Attached Files Attached Files
    Last edited by Michael.H.; 06-23-2009 at 08:34 PM.

  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: Copying data from multiple worksheets to a master worksheet

    If every sheet has the exact same column headers, all the data is already in the correct place and you just want "Summary" report created, then this basic macro does that:
    Please Login or Register  to view this content.
    Run the SummaryReport macro (press Alt-F8)

    If you run it successively, it erases the existing report and creates a new one.

    If you don't want the old report erased but want new data appended to the bottom of the existing report, comment out or erase the "optional" line of code in the macro.
    Attached Files Attached Files
    _________________
    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
    Registered User
    Join Date
    06-17-2009
    Location
    Connecticut
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Copying data from multiple worksheets to a master worksheet

    Thanks a million! This is great!

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

    Re: Copying data from multiple worksheets to a master worksheet

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

  5. #5
    Registered User
    Join Date
    09-16-2014
    Location
    West Chester PA
    MS-Off Ver
    2010
    Posts
    1

    Re: Copying data from multiple worksheets to a master worksheet

    Hi Jerry, this is so great. Is there a way to tweak this so that it only brings the values from all the sheets in? I have some formulas that are messing things up a bit. Thanks!

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Copying data from multiple worksheets to a master worksheet

    jmrendel. Welcome to the forum. Unfortunately:

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

Closed Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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