+ Reply to Thread
Results 1 to 3 of 3

Generating summary calculations from multiple worksheets within the same workbook

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Generating summary calculations from multiple worksheets within the same workbook

    Hello, I have attached a dummy file to illustrate my point exactly, but I'll try my best to briefly describe what I'm trying to do.

    I have multiple worksheets in one workbook, all of the same format (i.e. data located in same cells consistently). On the "Summary" worksheet I'd like to compile a summary list of data with each row representing data picked from each worksheet in the book.

    I'm just now familiarizing myself with vb syntax, but I'm thinking an if-statement like the following example may be able to cycle through the worksheets and add data row by row on the summary table:

    Please Login or Register  to view this content.
    However, this code is obviously incomplete, and this would only report values from other worksheets and not make calculations. I'm trying to accomplish 2 things:

    1) The "fish" and "mix" data are sometimes flipped on 2 different rows in different sheets, as seen in the dummy file. The script would need to check to see which row contains the "fish" data and "mix" data and report them in the appropriate summary columns.
    2) I'm trying to do more than simply report the values - I need to do some simple calculations with some of the values, while only reporting the values in others. You can the calculation formulas I'm trying to do in the example summary table on the Summary sheet in the workbook.


    Any help would be appreciated, and thanks in advance, guys!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-16-2011
    Location
    San Diego, California
    MS-Off Ver
    2007
    Posts
    78

    Re: Generating summary calculations from multiple worksheets within the same workbook

    Here is what I threw together for you.

    Run the CompileList macro in this file:
    tutorial-example(1).xlsm

    I took care of most of the heaavy lifting when it comes to the coding.
    The rest should be easy for you to figure out, just a matter of deciding what cell values go where.
    Plus any calculations you want to do.

    Let me know if you have any follow up questions.
    ** I'll get you next time Gadget! **

  3. #3
    Registered User
    Join Date
    09-05-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Generating summary calculations from multiple worksheets within the same workbook

    It's been a week or so since you replied, WorldBridge, and I'm just now getting around to reviewing the code. This is a huge help. I added rep for you as well, thnks so much!!!!

+ 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