+ Reply to Thread
Results 1 to 7 of 7

Return a value from a multiple criteria table

  1. #1
    Registered User
    Join Date
    12-25-2011
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Return a value from a multiple criteria table

    I try to look for a formula that I can return a value from a table matching with multiple criteria. The attached file is the sample problem what I want to solve. Please someone help me on this. Thanks.

    Sample Problem.xlsx

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Return a value from a multiple criteria table

    Hello, Welcome to the forum.

    Try this,

    =VLOOKUP(F12,$B$6:$J$9,MATCH(C12,C$3:J$3,0)+MATCH(E12,INDEX(C$5:J$5,MATCH(D12,INDEX(C$4:J$4,MATCH($C12,C$3:J$3,0)):INDEX(C$4:J$4,COLUMNS($C4:$J4)),0)):INDEX(C$5:J$5,COLUMNS($C5:$J5)),0))

    EDIT: Use this one. Added a MATCH+

    =VLOOKUP(F12,$B$6:$J$9,MATCH(C12,C$3:J$3,0)+MATCH(D12,$C$4:$J$4,0)+MATCH(E12,INDEX(C$5:J$5,MATCH(D12,INDEX(C$4:J$4,MATCH($C12,C$3:J$3,0)):INDEX(C$4:J$4,COLUMNS($C4:$J4)),0)):INDEX(C$5:J$5,COLUMNS($C5:$J5)),0)-1)

    copy down.
    Last edited by Haseeb Avarakkan; 12-25-2011 at 11:21 PM. Reason: Added a MATCH
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Return a value from a multiple criteria table

    Hi cktung and welcome to the forum,

    You will need an Array Formula and unmerge your row 3,4,5 data. See the attached for an answer. The attachment isn't uploading for me so put this formula in G2 and confirm the entry with a Control-Shift Enter.

    Please Login or Register  to view this content.
    Then pull the formula down into G13.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Return a value from a multiple criteria table

    Repeat of above message - database error trying to attach a file that seems to worked above.

  5. #5
    Registered User
    Join Date
    12-25-2011
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Return a value from a multiple criteria table

    Haseeb A,

    Thanks for your tutorial. However, I miss something that might cause a lot of problem to me. Could you please help me with that? Thanks

    Sample Problem.xlsx

  6. #6
    Registered User
    Join Date
    12-25-2011
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Return a value from a multiple criteria table

    MarvinP,

    Thanks for your idea. Could you please look at the recent problem posted? It is a little tricky if I try to apply the formula you suggested

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

    Re: Return a value from a multiple criteria table

    Quote Originally Posted by cktung View Post
    I try to look for a formula that I can return a value from a table matching with multiple criteria. The attached file is the sample problem what I want to solve.
    Try this:
    Please Login or Register  to view this content.

+ 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