+ Reply to Thread
Results 1 to 4 of 4

Two criteria lookup - exact & closest match

  1. #1
    Registered User
    Join Date
    06-03-2010
    Location
    ljubljana
    MS-Off Ver
    Excel 2003
    Posts
    23

    Two criteria lookup - exact & closest match

    I checked previous post on rather popular question on two criteria lookups. Could not find hints on two criteria lookups where one criteria requires exact match (vlookup false) and second criteria requires closest match (true in vlookup). Any ideas?

    see example
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by kapucino; 06-04-2010 at 09:04 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Two criteria lookup - exact & closest match

    Hi Kapucino, welcome to the forum.

    Perhaps this array formula will work for you (confirmed with CTRL+SHIFT+ENTER, not just ENTER):

    =INDEX(D2:D19,MATCH(G3&H3,A2:A19&B2:B19,1))

  3. #3
    Registered User
    Join Date
    06-03-2010
    Location
    ljubljana
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Two criteria lookup - exact & closest match

    Quote Originally Posted by Paul View Post
    Hi Kapucino, welcome to the forum.

    Perhaps this array formula will work for you (confirmed with CTRL+SHIFT+ENTER, not just ENTER):

    =INDEX(D2:D19,MATCH(G3&H3,A2:A19&B2:B19,1))
    Man.. Works like a charm on a sample. Must crack&understand the code and use it on more complex case .. Used MATCH before but not in this manner.

    THANKS a LOT!

    I see i must not forget that search area must be in asceding order because of 1 in Match! Suprised that match can do closest match on caombination of text&value
    Last edited by kapucino; 06-04-2010 at 03:02 PM.

  4. #4
    Registered User
    Join Date
    01-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Two criteria lookup - exact & closest match

    Thanks for this great post! I've just tried this array formula it and can't get it to work on my particular use case though. Work fine in original post.
    Is it to do with spaces or repeating return value in my example attached?

    Test Double Closest.xls

    Thank you so much!

+ 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