+ Reply to Thread
Results 1 to 4 of 4

Totals from worksheets on a totals sheet

  1. #1
    Registered User
    Join Date
    05-16-2008
    Posts
    2

    Totals from worksheets on a totals sheet

    The company I work for wants me to create a spreadsheet on some of the larger jobs I work on to keep track of quantities, part numbers, etc.
    I will create the individual work sheets from the various areas with the quantities, part numbers, and descriptions.
    What I would like to do is to make a "totals" sheet that lists the total quantity of the different part numbers, listing the part number only once.
    I.E. I have a quantity of 3 pcs. of part number 123-456 on work sheet one(along with other parts), and I have 2 pcs. of part number 123-456 on work sheet two.
    On my totals sheet, I would like to see a quantity of 5 pcs. for part number 123-456.
    I have gone through the help and have not found anything that this easy enough for a little kid to do.
    I have attached a small example of what I would like to accomplish.
    Thank you so much for your help and suggestions.
    Attached Files Attached Files
    Last edited by tongy66086; 05-16-2008 at 03:10 PM. Reason: Title change

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    well this will do it but ive had to use manualy put part nos &descriptions on totals sheet, formula in col a uses part number to extract info from other sheets, but it is long!!!!
    there must me a shorter way.
    perrhaps version 2 is easier to manage with a helper sheet thrown in
    Attached Files Attached Files
    Last edited by martindwilson; 05-16-2008 at 07:54 PM.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello tongy66086,

    The attached workbook will automatically total the part numbers and place the quantity, part number, and description onto the total worksheet. The following code modules are in the project. Module1 contains the macro GetTotals. The other other two module Class modules create an new collection object called PartNumbers and a new object called PartNumber. I added a button to run the macro on the Total worksheet.

    Module1 code
    Please Login or Register  to view this content.
    PartNumber Class Module Code
    Please Login or Register  to view this content.
    PartNumbers Class Module Code
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-16-2008
    Posts
    2

    Smile Thanks so much for the help

    Thank you so much for your help.
    I had almost resigned myself to the fact that what I was trying to do was not able to be done.
    Shows how wrong I was.
    Thanks again for your help. I really do appreciate it.

+ 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