+ Reply to Thread
Results 1 to 7 of 7

Sumifs with multiple lookups with multiple results to lookup other values

  1. #1
    Registered User
    Join Date
    01-31-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Sumifs with multiple lookups with multiple results to lookup other values

    I hope I can explain this correctly. I need to lookup one value and return multiple values which then in turn sum values from a different schedule. I have tried index and match / sumifs without much luck. I have attached example to explain better.

    TIA for any assistance!
    Malise
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Sumifs with multiple lookups with multiple results to lookup other values

    hi Malise, welcome to the forum. it's a little complex so i'm not sure if you know how to fit it to your actual situation. try this array formula in B2 of Totals sheet:
    =SUM((INDEX(Co!$B$2:$D$5,,MATCH(VLOOKUP(A2,State!$A$1:$B$3,2,0),Co!$B$1:$D$1,0))="X")*('Mod Amts'!$B$2:$E$5)*(TRANSPOSE(INDEX(Mods!$B$2:$D$5,,MATCH(A2,Mods!$B$1:$D$1,0)))="X"))

    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again. drag down the formula

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-31-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Sumifs with multiple lookups with multiple results to lookup other values

    WOW! PERFECT! I will figure out for actual model but I have been beating my head against the wall on this one.

    Thanks very much for your time and expertise! It is greatly appreciated!

  4. #4
    Registered User
    Join Date
    01-31-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Sumifs with multiple lookups with multiple results to lookup other values

    I was able to convert to actual schedule easily. I forgot one other item that changes the calculation. I tried to modify without any success. In some cases, no combos are required so it would just be the mods, state criteria of which to add. I have attached revised test model.

    TIA for any assistance!
    Regards,
    Malise
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-31-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Sumifs with multiple lookups with multiple results to lookup other values

    Revised file with more detail.
    Attached Files Attached Files

  6. #6
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Sumifs with multiple lookups with multiple results to lookup other values

    there should be a shorter way, but you can try this use this long formula for now in C2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-31-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Sumifs with multiple lookups with multiple results to lookup other values

    Perfect! Thanks TONS!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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