+ Reply to Thread
Results 1 to 5 of 5

vlookup or indexmatch on closest name match?

  1. #1
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    vlookup or indexmatch on closest name match?

    hello

    having some trouble trying to do a vlookup or index match.

    i have a list of ~2000 companies (worksheet Hoovers). Im trying to do a vlookup or match to try to see how many of our ppl are targeting those companies (from worksheet my List).

    i tried the vlookup formula (column P in Hoovers sheet):
    =VLOOKUP(B2,'My List'!$D$3:$E$1274,2,TRUE)
    the above is finding the wrong match

    can someone pls help? basically im trying to match the names of the companies and their may not be exact matches
    for example:
    in the "hoovers" worksheet this company is called: "Exxon Mobil Corporation"
    in the "my list" worksheet the comany above goes by: "Exxon Mobil"

    can someone pls help?

    thx u *i have attached a sample*
    Attached Files Attached Files
    Last edited by jw01; 05-14-2012 at 11:16 AM.

  2. #2
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: vlookup or indexmatch on closest name match?

    any thoughts on this guys? thxs

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: vlookup or indexmatch on closest name match?

    Maybe something like

    =VLOOKUP(LEFT(B2,8)&"*",'My List'!$D$3:$E$1274,2,FALSE)

    change the 8 to a cell holding that value so you can easily change it - or use a function to auto set it

  4. #4
    Forum Contributor
    Join Date
    11-26-2010
    Location
    usa
    MS-Off Ver
    Office 365
    Posts
    1,224

    Re: vlookup or indexmatch on closest name match?

    hello

    you mentioned to change left "8" to adjust to the name....how would i go about with that? thxs

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: vlookup or indexmatch on closest name match?

    You could replace the 8 with a FIND() to return the position of a space, you could have a LEN() function multiplied by a factor (say .5) to check for half the string length.
    eg: =VLOOKUP(LEFT(B2,INT(LEN(B2)*.5))&"*",'My List'!$D$3:$E$1274,2,FALSE) would search for "Exxon Mobil" instead of "Exxon Mobil Corporation"
    Note: it just happened to work out perfectly for that example. It may not for others.

+ 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