+ Reply to Thread
Results 1 to 21 of 21

Lookup values from a pivot table and mutiply them with their match from another sheet.

  1. #1
    Registered User
    Join Date
    01-22-2017
    Location
    Melbourne, AUS
    MS-Off Ver
    Office 2007
    Posts
    17

    Lookup values from a pivot table and mutiply them with their match from another sheet.

    Hi guys,

    I would like to lookup specific values like A01 (horizontal) and 0-1 (vertical) from a Pivot table and multiply the value such as 0.6 with their matching value from another table (December 2016, 0-1 "value") . I tried to illustrate the data in the attached excel spreadsheet. The "RESULT" table is the preferred result (red values). The formula should be applied to a large set of data, so that I could adjust the selected months.

    Thanks for your time and help.
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    As per your file, your original data & required data (figures) is mismatch. Can you explain how comes those value. What is criteria. (Refer Dec17 & Oct17 values)


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    So, which CODE is correct and where?

  4. #4
    Registered User
    Join Date
    01-22-2017
    Location
    Melbourne, AUS
    MS-Off Ver
    Office 2007
    Posts
    17

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    Sorry for the confusion. I would like to get the sum of the data if it matches with the related figure of the pivot table. So the product code is A01 and it is linked to the other code 0-2,0-3 and 0-4 but not for the rest like 0-1 and 0-5. Then the related figure of for e.g. 0-2 (which is 0.6) will get multiplied with the matching code 0-2 of the second spreadsheet (Data, which is 20) and so on for the other values and its related matches. The goal is to get a sum of all the 0-xxxx where A01 is part of and get a sum for every month.

    See new attachment.
    Attached Files Attached Files

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    What about this?
    Please Login or Register  to view this content.
    Last edited by sandy666; 02-07-2017 at 03:50 AM.

  6. #6
    Registered User
    Join Date
    01-22-2017
    Location
    Melbourne, AUS
    MS-Off Ver
    Office 2007
    Posts
    17

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    This would be perfect. Is it a Pivot-table which includes some functions?

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    here is attachment, but your description still is not clear to me
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-22-2017
    Location
    Melbourne, AUS
    MS-Off Ver
    Office 2007
    Posts
    17

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    Thanks, I could somehow work with it but my goal is to create a table with lots of data and to calculate only the sum of the amount in which the product code ( like A01) is a part of like 0.6 for 0-2. It might be easier to say that 0-1 is the finished product and A01 is an ingredient. The table should show how much of A01 was used for every month in all the finished product it is part of. The if function could do the matching but It would create a lot of rows and data which are not important like if A01 is not in the finished product xy.

    Thanks again for your time and support!

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    Would be fine if you can create manually example xlsx to show how you want to see result for A01 and A02. E.g. full table for 2017. I do not think it is possible to multiply A01 0-1 and A02 0-1 by values from the main table in the same time and place it in the same place so I did it with different tables. It is initial step of course

  10. #10
    Registered User
    Join Date
    01-22-2017
    Location
    Melbourne, AUS
    MS-Off Ver
    Office 2007
    Posts
    17

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    ok, I'm not sure whether a lookup or match function with some if conditions might be able to calculate the sums for each product code. I might need to use your if formulas as a first step and calculate the sum for every product code from that or do you think that there is somehow a way to create one table for all codes from the pivot table and the data table?
    Attached Files Attached Files

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    How you got
    Please Login or Register  to view this content.
    Dec A01 = 22, =I$3*SUM(B3:B7)
    but the rest? I can't find a reproducible method
    How you count 10, 16 or 38, 6, 36 ?

  12. #12
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    I think data structure not as per rules. Needs to changes in structure with all releated respect. No continuity in data.

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    @avk
    Do you think the results are from the ceiling? (random)
    Last edited by sandy666; 02-09-2017 at 02:30 AM.

  14. #14
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,477

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    In condition that the code list between Pivot sheet and Data sheet is exactly the same in order: 0-1,0-2,...

    See attachment.
    Attached Files Attached Files
    Quang PT

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    bebo, do you think it was OP mistake with the RESULT D2 and J3 ?

  16. #16
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,477

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    Quote Originally Posted by sandy666 View Post
    bebo, do you think it was OP mistake with the RESULT D2 and J3 ?
    which file? there are several versions...

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    Reslut tab #10 where result was produced by OP

  18. #18
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,477

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    Quote Originally Posted by sandy666 View Post
    bebo, do you think it was OP mistake with the RESULT D2 and J3 ?
    Maybe, just guess... LOL

  19. #19
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    we will see after OP's comment

  20. #20
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    Ref attach file. I have some modification with helper columns.
    As per logic in code : A02 > May : is 55.5. [where as result mentioned is 49.]
    plz clarify.
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    01-22-2017
    Location
    Melbourne, AUS
    MS-Off Ver
    Office 2007
    Posts
    17

    Unhappy Re: Lookup values from a pivot table and mutiply them with their match from another sheet.

    Thanks for your help so far and sorry for the late reply.

    I tried out your suggested approaches and would go with bebo's one as I don't want to create a new table. 55 was right.

    However, I tried to convert it to my real excel spreadsheet but I always get #Value or #N/A. I tried a few ways but I must have missed something. My thought is that the match between the month might be missing although I included this one.

    I attached a similar worksheet where I illustrated my problem (see results calculation for each array.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. List all values that match a lookup table
    By cworkman123 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-19-2015, 01:34 PM
  2. Replies: 6
    Last Post: 07-26-2015, 03:43 AM
  3. Pulling from a pivot table with two lookup values
    By culpepper in forum Excel General
    Replies: 0
    Last Post: 11-12-2014, 02:06 PM
  4. [SOLVED] Match multiple substrings in a cell against a lookup table and return concatenated values
    By stevewc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2013, 10:50 AM
  5. Replies: 2
    Last Post: 04-01-2010, 11:19 AM
  6. Match or Lookup multiple approximate values from a table
    By fasih in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2009, 11:01 AM

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