+ Reply to Thread
Results 1 to 3 of 3

Text string closest match lookup not using vlookup true

  1. #1
    Registered User
    Join Date
    06-16-2009
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    30

    Text string closest match lookup not using vlookup true

    Hi all

    I am trying to find a formula to find closest match on a text string using index match preferably and vlookup true so the data does not need to be altered.

    I know the formula using index match to match closest amounts is =INDEX($H$2:$K$60,MATCH(A2&C2,$H$2:$H$60&$J$2:$J$61,0),1) entered as an array.
    What would be the equivalent to look up closest text match?

    I've attached a worksheet were I would be trying to lookup the vehicle type on sheet one column D to closest match on sheet two column E.


    Appreciate any help.
    Attached Files Attached Files

  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: Text string closest match lookup not using vlookup true

    =INDEX($H$2:$K$60,MATCH(A2&C2,$H$2:$H$60&$J$2:$J$60,0),1) isnt an array entered formula.
    it matches on 2 columns and returns from third, not a closest match either!
    so what constitutes a close match in your examples?
    "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
    Registered User
    Join Date
    06-16-2009
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Text string closest match lookup not using vlookup true

    Sorry I entered the wrong formula-the formula I meant if you were looking up closest match on amount is INDEX($E$2:$E$248,MATCH(MIN(ABS($C$2:$C$247-C2)),ABS($C$2:$C$247-C2),0))

    I'm looking for an equivalent for text string closest matching-as a Vlookup true would, but without altering the data source into ascending order.

    In this case I would be looking for closest text match between column "d" in sheet one and column "e" in sheet two.

+ 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