+ Reply to Thread
Results 1 to 12 of 12

Index match with 3 criteria

  1. #1
    Registered User
    Join Date
    02-29-2020
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    87

    Index match with 3 criteria

    Index Match v1.png

    Hi,

    Does Index Match and Xlookup support 3 criteria?
    In cell E10 i try Xlookup for 3 criteria but come out with an error. Can assist to fix it with Xlookup and Index Match formula? Please note that one of the Match Mode i using is -1 because i looking the date is below 30/3/2020. The result expected is 98.
    What else formula if both does not support.

    Thanks dude.
    Attached Files Attached Files
    Last edited by babychai; 05-30-2020 at 11:44 PM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Index match with 3 criteria

    Please try
    =XLOOKUP(B12,C3:G3,XLOOKUP(A4&B4,A4:A6&B4:B6,C4:G6),,-1)

    or
    =XLOOKUP(B12,C3:G3,FILTER(C4:G6,(A4:A6=B11)*(B4:B6=B10)),,-1)

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Index match with 3 criteria

    Or with index match
    =INDEX($C$4:$G$6,MATCH(B11&"|"&B10,$A$4:$A$6&"|"&$B$4:$B$6,0),MATCH(TRUE,(B12>=$C$3:$G$3),0))

    Needs CSE entry

  4. #4
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    490

    Re: Index match with 3 criteria

    Where exactly is the third dimension of criteria since A4:A6 and B4:B6 are uniquely associated with each other?

    e.g.: Criteria1 = haha and Criteria2 = medium should yield what result in your data set?

  5. #5
    Registered User
    Join Date
    02-29-2020
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    87

    Re: Index match with 3 criteria

    Quote Originally Posted by Bo_Ry View Post
    Please try
    =XLOOKUP(B12,C3:G3,XLOOKUP(A4&B4,A4:A6&B4:B6,C4:G6),,-1)

    or
    =XLOOKUP(B12,C3:G3,FILTER(C4:G6,(A4:A6=B11)*(B4:B6=B10)),,-1)
    Ah, thank you

    Quote Originally Posted by Fluff13 View Post
    Or with index match
    =INDEX($C$4:$G$6,MATCH(B11&"|"&B10,$A$4:$A$6&"|"&$B$4:$B$6,0),MATCH(TRUE,(B12>=$C$3:$G$3),0))

    Needs CSE entry
    Index Match v2.png

    hi, it's work. btw, i wondering, the formula consisting of 2 Area won't with different set of criteria (A4:B6 and A7:B10) ?

    Quote Originally Posted by RaulSerg View Post
    Where exactly is the third dimension of criteria since A4:A6 and B4:B6 are uniquely associated with each other?

    e.g.: Criteria1 = haha and Criteria2 = medium should yield what result in your data set?
    Yes, there's some mistake in the Criteria. i already fixed it and the solution provided by forumer able to solved my issue with the correct criteria.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by babychai; 05-30-2020 at 02:46 PM.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Index match with 3 criteria

    It needs to be like
    =INDEX($C$4:$G$10,MATCH(B14&"|"&B13,$A$4:$A$10&"|"&$B$4:$B$10,0),MATCH(TRUE,(B15>=$C$3:$G$3),0))

    and the xlookup
    =XLOOKUP(B13,B4:B10,XLOOKUP(B15,C3:G3,C4:G10,,-1),,0)

  7. #7
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    490

    Re: Index match with 3 criteria

    Quote Originally Posted by Fluff13 View Post
    and the xlookup
    =XLOOKUP(B13,B4:B10,XLOOKUP(B15,C3:G3,C4:G10,,-1),,0)
    This one's incomplete/not working.
    It would need to be amended as suggested above to: =XLOOKUP(B13&B14,B4:B10&A4:A10,XLOOKUP(B15,C3:G3,C4:G10,,-1),,0)

    Regards

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Index match with 3 criteria

    I left the formula looking at two criteria, because that is how it was listed.

  9. #9
    Registered User
    Join Date
    02-29-2020
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    87

    Re: Index match with 3 criteria

    Fluff13 and RaulSerg, thank you so much~! ^_^

  10. #10
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,287

    Re: Index match with 3 criteria

    See file with formulas
    1.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Index match with 3 criteria

    Fluff13 and RaulSerg, thank you so much~! ^_^
    You're welcome & thanks for the feedback

  12. #12
    Registered User
    Join Date
    02-29-2020
    Location
    Malaysia
    MS-Off Ver
    Office 365
    Posts
    87

    Re: Index match with 3 criteria

    Quote Originally Posted by Czeslaw View Post
    See file with formulas
    1.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    2.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hello, not really work. the date criteria should set lower/less then the date array. i do changed to "lesser than" by myself but then not working.
    anyway, thanks for trying to help

+ 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. Replies: 1
    Last Post: 03-25-2020, 08:06 AM
  2. Replies: 1
    Last Post: 03-01-2020, 10:36 PM
  3. [SOLVED] Combining INDEX/MATCH with several criteria and INDEX/SMALL
    By Dresas in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-15-2018, 11:02 AM
  4. VBA Code for Index/Match/Match to input into excel based on 2 criteria inside form
    By Carl Fisher in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2017, 12:11 PM
  5. [SOLVED] Combining 3 Formulas: Return all Names that Match Criteria Using Index/Match
    By bchilme in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-29-2014, 09:28 AM
  6. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  7. Replies: 6
    Last Post: 04-30-2014, 02:42 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