+ Reply to Thread
Results 1 to 10 of 10

Consolidating data from several worksheets to one master sheet in excel 2010

  1. #1
    Registered User
    Join Date
    07-30-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Consolidating data from several worksheets to one master sheet in excel 2010

    Hello,
    I am currently trying to consolidate information from several sheets (about 44) into one master sheet that will summarize the data. The template will be the same as the other sheets, but the information on the master sheet should be able to automatically update when new information is added on subsheets.

    The workbook itself is not, in my opinion, formatted in the most user friendly/ appropriate way. The workbooks function is to be a place where several individuals can enter data for their particular state and we (the workbook administrators) keep track of the reports and its due date. I was given the task to find a way to consolidate the data into one master sheet (I will re-work the formating later).

    I have searched several forums and many of them have either gone unanswered or have a VBA code that does not work for my data.
    I am highly unfamiliar with VBA and do not understand the coding process. Any help would be appreciated. Thank you.

    *Please see attached document.MASTER GRID.xlsNote: Names and information have been changed to reflect innaccurate data*

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Consolidating data from several worksheets to one master sheet in excel 2010

    See if you can work with this. Everytime you click on the Master Sheet Tab it will be updated from all the other worksheets.



    Attachment 171235

  3. #3
    Registered User
    Join Date
    07-30-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Talking Re: Consolidating data from several worksheets to one master sheet in excel 2010

    Wow, Thats perfect.
    Thank you so much, words cannot express how impressed I am by your speed and help.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Consolidating data from several worksheets to one master sheet in excel 2010

    @ ospenc

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Registered User
    Join Date
    07-30-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Consolidating data from several worksheets to one master sheet in excel 2010

    Attachment 171235[/QUOTE]

    Mike,
    For the attachment file, I noticed there was a runtime error 438. Do Macro errors occur when translated from 2010 to 2007? Also, For column C row 3, can I do a SUM function on this page or will it ruin the macro? (The sum would be taken from column W). Thank you.
    Last edited by ospenc; 07-30-2012 at 02:03 PM.

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Consolidating data from several worksheets to one master sheet in excel 2010

    ospenc

    I added the sum of column W to cell C3. I dont think there should be any difference in code for 2007 and 2010. What line of code is highlighted when it errors?
    Try this updated version. I noticed a few bugs in the first version.

    Attachment 171338

  7. #7
    Registered User
    Join Date
    07-30-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Consolidating data from several worksheets to one master sheet in excel 2010

    A run time error does not appear in the 2010 version, but when using the 2007 version there is a run time error for

    lastRow = Range("A" & Rows.CountLarge).End(xlUp).Row

  8. #8
    Registered User
    Join Date
    04-18-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Consolidating data from several worksheets to one master sheet in excel 2010

    @ospenc,
    I saw your spreadsheet, now is the modified by multiple people or just yourself? If you are updating all the information, I know writing a code within the file will do the trick, however, if you are sharing then that code can become brittle in a hurry.

  9. #9
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Consolidating data from several worksheets to one master sheet in excel 2010

    @ospenc

    Both 2007 and 2010 use Rows.CountLarge, however 2003 does not. 2003 uses Rows.Count. I have 2007 and I get no errors..

    ---------- Post added at 09:59 AM ---------- Previous post was at 09:56 AM ----------

    @mperrine,

    I wrote the macro for the OP, Post number 6 should be the latest version of the code.

  10. #10
    Registered User
    Join Date
    07-30-2012
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Consolidating data from several worksheets to one master sheet in excel 2010

    The document is modified by several individuals on a share drive. The most anyone will add is a new row to a certain state.

    @mike

    The document is working very well. You have found a solution to my dilemma. Thank you!

+ Reply to 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