+ Reply to Thread
Results 1 to 4 of 4

Index-Match based on 3 criteria

  1. #1
    Registered User
    Join Date
    03-22-2013
    Location
    Roskilde, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    5

    Index-Match based on 3 criteria

    Dear all,

    I am currently using the following Index-Match formula to return values based on one criteria:

    =IFERROR(INDEX($A$1:$M$2000;SMALL(IF($E$1:$E$2000=$D$5;ROW($E$1:$E$2000);"");ROW($A1));MATCH(K$103;crystalheader;0));"")

    The condition check is: "IF($E$1:$E$2000=$D$5;" where $D$5 is the name of a city. I wish to include to more criteria, to further narrow the values which are returned. I need to do a check on additionally two values which are located in $E$5 & $F$5.

    So basically, the user selects 3 values from a dropdown and the index-match will return the corresponding values. I am having difficultes including the 2 other critieria. I've tried with an AND function:

    SMALL(IF((AND($E$1:$E$2000=$D$5);($F$1:$F$2000=$E$5);($G$1:$G$2000=$E$5));ROW($E$1:$E$2000);""). This however, does not work.

    Any ideas would be highly appreciated.
    Thanks.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Index-Match based on 3 criteria

    Hi johnelbek,

    Try :-

    IF(($E$1:$E$2000=$D$5)*($F$1:$F$2000=$E$5)*($G$1:$G$2000=$E$5))

    Include * as show above.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,841

    Re: Index-Match based on 3 criteria

    I think the & operator is the answer, like this for example: =INDEX($B$3:$E$3,MATCH(B4&B5,$B$1:$E$1&$B$2:$E$2,0))
    Found here: http://support.microsoft.com/kb/59482
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  4. #4
    Registered User
    Join Date
    03-22-2013
    Location
    Roskilde, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Index-Match based on 3 criteria

    Thanks, dili. That did the trick!

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Index-Match based on 3 criteria

    You are welcome....

    Cheers


    Please mark this thread as [SOLVED].. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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