+ Reply to Thread
Results 1 to 16 of 16

Fuzzy logic VLOOKUP (I think)

  1. #1
    Registered User
    Join Date
    02-24-2010
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Fuzzy logic VLOOKUP (I think)

    I have a problem I just can find an answer to so I will bring it to the pros, I hope I can be have this make sense here it goes.

    I have two sheets in a workbook, sheet1 has a list of company names (10,000+ rows) and other info, sheet2 has a list (750 rows) of "things" that I need to search for anywhere in my list of company names (they will not be exact matches) I would like to indicate in Sheet1 Column B (or in any other sortable manner) if there is any match from the list of terms on sheet2 with the data in sheet1 column A. I am not opposed to buying an add-in but I havn't been able to track one down that will do what I need.

    Here is some sample data with the desired results listed at the bottom.

    (Sheet1 Column A)
    Bob's Roofing
    Big Time Law Office
    Evergreen School District
    Eastside Hospital
    Clunker Cars Direct
    Snyder Roofing
    Casa' Del Evergreen

    (Sheet2 Column A)
    Evergreen
    Cars Direct
    Snyder Roofing

    (Desired Results) with the true false in a new column??
    Bob's Roofing, FALSE
    Big Time Law Office, FALSE
    Evergreen School District, TRUE
    Eastside Hospital, FALSE
    Clunker Cars Direct, TRUE
    Snyder Roofing, TRUE
    Case Del Evergreen, TRUE

  2. #2
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: Fuzzy logic VLOOKUP (I think)

    G'day and welcome to the Forum,

    Try this at Sheet 1 Cell B2 and copy drag down

    Please Login or Register  to view this content.
    Cheers

    RC
    Last edited by ratcat; 02-24-2010 at 03:31 PM. Reason: Edited Formula: Typo in the Cell reference
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Fuzzy logic VLOOKUP (I think)

    Maybe this,

    =SUMPRODUCT(ISNUMBER(FIND(Sheet2!$A$1:$A$3,A1))*1)>0

    Regards

  4. #4
    Registered User
    Join Date
    02-24-2010
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Fuzzy logic VLOOKUP (I think)

    Thanks but both of those did not work (Argh..) This is driving me crazy, it can't be this hard but...

    I will attach a sample file for anyone to play with

    Customers are on the 1st sheet
    Search Terms on Sheet 2
    A sample of what I would like the results to look like are in the 3rd sheet. it doesn't need to be True/False but I would need to be able to sort the non matches out of the results.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Fuzzy logic VLOOKUP (I think)

    Got it.

    At Sheet1!B1, type in...
    Please Login or Register  to view this content.
    Then press ctrl+shift+enter.

  6. #6
    Registered User
    Join Date
    02-24-2010
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Fuzzy logic VLOOKUP (I think)

    Quote Originally Posted by quekbc View Post
    At Sheet1!B1, type in...
    I can't get this @%^(# thing to work. Would it be possible for someone to get it working in the sample file I provided a few posts ago and then re-upload it so I can see it in action.

    Thanks,
    Jim

  7. #7
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Fuzzy logic VLOOKUP (I think)

    Put this is the curstomers' sheet in B1

    HTML Code: 
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  8. #8
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Fuzzy logic VLOOKUP (I think)

    Here's the attached file.

    Remember.. the ctrl+shift+enter is very important.
    Attached Files Attached Files

  9. #9
    Valued Forum Contributor
    Join Date
    02-08-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Fuzzy logic VLOOKUP (I think)

    The SUMPRODUCT formula works, but the rwgrietveld formula with a samll adjustment will be 20% faster.

    If you have 10000+ companies and 750 Keywords any formula could take +- 1 minute to get the results.


    =ISNUMBER(LOOKUP(9E+99+307,FIND(KeyWords!$A$1:$A$7,A1)))


    Regards
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Fuzzy logic VLOOKUP (I think)

    Doing a small test resulted in the fact that lookup in combination with Find is the fastest closely followed by the sumproduct and mine lookup (search) come is last by a factor 5 !!

    tested with 20.000 companies

  11. #11
    Registered User
    Join Date
    02-24-2010
    Location
    Seattle, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Fuzzy logic VLOOKUP (I think)

    Thanks everyone, it worked great except for being case sensitive, but I was able to take care of that pretty easily.

    Thanks again for your help

  12. #12
    Registered User
    Join Date
    01-17-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Fuzzy logic VLOOKUP (I think)

    Quote Originally Posted by sailepaty View Post
    =ISNUMBER(LOOKUP(9E+99+307,FIND(KeyWords!$A$1:$A$7,A1)))
    What does the 9E+99+307 mean/do?

  13. #13
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Fuzzy logic VLOOKUP (I think)

    Largest number allowed to be typed into a cell is 9.99999999999999E+307 (See http://office.microsoft.com/en-us/ex...005199291.aspx for more limitations.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  14. #14
    Registered User
    Join Date
    01-17-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Fuzzy logic VLOOKUP (I think)

    Thanks, any ideas how you would use the above formula =ISNUMBER(LOOKUP(9E+99+307,FIND(KeyWords!$A$1:$A$7,A1))) but it also finds words that are of a close match. E.g. Matches 5 characters will still return true as I have two tables that I'm comparing but sometimes there are typos in one tables but they both mean the same thing.g

  15. #15
    Registered User
    Join Date
    01-17-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Fuzzy logic VLOOKUP (I think)

    Think I worked it out with something like this: =MATCH("*"&LEFT(D2,5)&"*",$E$2:$E$6777,0)

  16. #16
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Fuzzy logic VLOOKUP (I think)

    That looks like it should work. Let me know if it doesn't.

    abousetta

+ 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