+ Reply to Thread
Results 1 to 6 of 6

Exact Value match in Lookup function

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    London Englad
    MS-Off Ver
    Many
    Posts
    22

    Exact Value match in Lookup function

    To best of my knowledge, Lookup formula in Excel that effectively allow translating one range value to another does not have any parameter to dictate kind of match. VLookup has it, but Lookup doesn't.

    Because of this, I am writing formula as follows

    Please Login or Register  to view this content.
    I only do Lookup if VLOOKUP has worked

    Raising query here to see if a better solution exists.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Exact Value match in Lookup function

    why not just use vlookup for the whole thing? or use index match
    =index(target range,match(J7, SourceRange,0))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Exact Value match in Lookup function

    Instead of VLOOKUP you could probably use MATCH but I don't really understand what you are trying to do here.

    Why use VLOOKUP then LOOKUP?
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    11-05-2012
    Location
    London Englad
    MS-Off Ver
    Many
    Posts
    22

    Re: Exact Value match in Lookup function

    Yes!!! Thanks Norie!!! that was the solution I was trying to remember. I had forgotten MATCH and INDEX function.

    Please Login or Register  to view this content.
    martin <- I cannot use VLOOKUP in this case because Source and TargetRanges are not contiguous as required by VLOOKUP

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Exact Value match in Lookup function

    It was Martin that posted the INDEX/MATCH suggestion, not me.

  6. #6
    Registered User
    Join Date
    11-05-2012
    Location
    London Englad
    MS-Off Ver
    Many
    Posts
    22

    Re: Exact Value match in Lookup function

    OH!!

    Thanks to Martin and Norie for help

+ 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