Results 1 to 3 of 3

Generating summary calculations from multiple worksheets within the same workbook

Threaded View

remix7196 Generating summary... 09-05-2012, 05:26 PM
WorldBridge Re: Generating summary... 09-07-2012, 04:52 PM
remix7196 Re: Generating summary... 09-14-2012, 08:10 AM
  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:

      If WkSht.Name <> "Summary" Then
                
                Worksheets("Summary").Range("A" & lastrow + 1).Value = WkSht.Range("C4").Value         ' Date
                Worksheets("Summary").Range("B" & lastrow + 1).Value = WkSht.Range("A4").Value         ' Case Ct
                Worksheets("Summary").Range("C" & lastrow + 1).Value = WkSht.Range("B4").Value         ' Pounds
                lastrow = lastrow + 1
                
            End If
    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

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