+ Reply to Thread
Results 1 to 10 of 10

XLOOKUP vs INDEX & MATCH?

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    765

    XLOOKUP vs INDEX & MATCH?

    Hi,

    In the attached workbook I have sample data in A:E.

    In cell K6 I have an INDEX MATCH formula that extracts the value that corresponds with the conditions in H3:H6.

    Is it possible to use XLOOKUP() rather than INDEX MATCH to perform such a two-way lookup with multiple conditions?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,194

    Re: XLOOKUP vs INDEX & MATCH?

    Try this:

    =XLOOKUP($I$5&$I$6,$C$1:$E$1&$C$2:$E$2,XLOOKUP($I$3&$I$4,$A$3:$A$6&$B$3:$B$6,$C$3:$E$6,,0))

    https://exceljet.net/formula/xlookup...ay-exact-match
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.


    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

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

    Re: XLOOKUP vs INDEX & MATCH?

    I'd tend to use Filter rather than xlookup
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    765

    Re: XLOOKUP vs INDEX & MATCH?

    Thanks very much, Ali!

    I tried to add to your reputation but can't as I've just done so in my other post that you kindly answered.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,194

    Re: XLOOKUP vs INDEX & MATCH?

    Don't worry!

    I'd agree with Fluff, by the way, although doing the XLOOKUP was a good academic exercise.

    Please mark as solved.

  6. #6
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    765

    Re: XLOOKUP vs INDEX & MATCH?

    Thank you both very much!

    Am I correct to understand that you're suggesting that FILTER() would be preferable to functions like XLOOKUP (and so VLOOKUP) and INDEX MATCH for performing lookups?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,194

    Re: XLOOKUP vs INDEX & MATCH?

    In this case, yes, but not necessarily always!

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

    Re: XLOOKUP vs INDEX & MATCH?

    Glad to help & thanks for the feedback.

    Normally I would use Xlookup, but in cases like this I just find Filter is easier to understand.

  9. #9
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    765

    Re: XLOOKUP vs INDEX & MATCH?

    Thanks again!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
    Posts
    62,194

    Re: XLOOKUP vs INDEX & MATCH?

    Please mark as solved!

+ 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. Second to last exact match using xlookup
    By Neeendre in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-24-2020, 10:07 AM
  2. [SOLVED] Using IF, Xlookup and Match/search, to find value in array.
    By Lee_of_Excel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-16-2020, 12:09 AM
  3. Replies: 14
    Last Post: 09-28-2019, 10:32 PM
  4. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 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