+ Reply to Thread
Results 1 to 10 of 10

Three Sheet Data Problem

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Three Sheet Data Problem

    I have information on three different sheets.

    On one sheet I have a list of products, identified by a product number. This sheet contains a products price.

    On a second sheet I have purchase orders, also identified by a bill number, this sheet indicates what products have been ordered and what amount of the product was ordered.

    On a third sheet I have billing numbers and an empty column where the total cost of the bill will go.

    I need to multiply the number of products ordered (product number and amount ordered on sheet 2) by the cost of the product (product number and cost on sheet 1). These amounts then need to be summed together if they are a part of the same bill.

    A B
    drug_id whole_sale_price
    1 1.95
    2 2.25

    A B C
    bill_no drug_id units_purchased
    1 1 1000
    1 2 500

    A B
    bill_no cost
    1

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Three Sheet Data Problem

    Can you upload example workbook?

  3. #3
    Registered User
    Join Date
    06-12-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Re: Three Sheet Data Problem

    I'm figuring out how to do that now... just a second

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Three Sheet Data Problem

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    06-12-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Re: Three Sheet Data Problem

    I don't think I uploaded the way you intended me to, but the sheets are named drugs, purchases_amount, and purchase_date
    Attached Files Attached Files

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Three Sheet Data Problem

    OK, in what sheet now you want to sum what?

  7. #7
    Registered User
    Join Date
    06-12-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Re: Three Sheet Data Problem

    In Purchase Date I need the total cost of the bill.

    All of the purchases for the bill, the drugs bought and the amount bought, are found in the "Purchase_Amount" tab

    The cost of each unit of a drug is found on the "Drugs" tab, under the "whole_sale_unit_price" column

  8. #8
    Registered User
    Join Date
    06-12-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Re: Three Sheet Data Problem

    My data tables aren't complete, I'm still playing with them. I'm looking to find the total for "bill_no" 1 in the "purchase_date" worksheet.

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: Three Sheet Data Problem

    Here. I've added helper column (yellow) named total
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    06-12-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Re: Three Sheet Data Problem

    That's great, thank you so much!

    How do I go about thanking you?

+ 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