• Text Matcher (v2000)

    Author
    Topic
    #393369

    I am building an application that compares data from two vendors. They each maintain a table that has common fields in addition to fields unique to the vendor.

    What I want to do is compare the data in the common fields. For instance, each table has a part description. In a perfect world, I would create a calc [PartDescr1]=[PartDescr2] and look for instances where they aren’t equal. However, one vendor uses the term ‘First Aid Kit’ while the other uses the term ‘Kit – First Aid’. I plan on setting up a simple table to bridge obvious gaps like this that converts one term to match with the other.

    However, I would also like to build a feature like they use in the search engines that will look at one phrase and tell you the % that matches the other phrase. For instance, ‘Quarter Panel’ and ‘Fender Panel’ would be a 50% match and ‘Front left hubcap’ and ‘Front driver side hubcap’ would also be 50% since only 2 of the 4 words from phrase two are present in phrase one (I understand we have to pick one side to run the calc)

    If someone has something that might work, I would really appreciate it. If this seems like a crazy request, feel free to let me know that too.
    Thanks!!
    Dashiell

    Viewing 2 reply threads
    Author
    Replies
    • #712836

      Sounds like a fun project. Good luck! (Which means I’ve never done this before, so I can’t offer you any meaningful advice!)

      • #712866

        Just asking something that you and Charlotte didn’t have ready in your bag of tricks makes me happy.
        Thanks!

        • #713185

          Anything to please! bow

          • #713396

            Actually, I started doing something like this. I don’t think I finished it, but I can dig through my files to look for it. What I did to get around the problem of VBA’s slowness was parse every text string into it’s separate words (I don’t think I used split, even though that probably would’ve made my life easier), and then write the words to a table. Then I could use a query to find the best matches, which is much faster than VBA. My memory is a bit fuzzy about exactly what I did, so I can’t remember if I had problems or just got too busy to finish it.

            • #713674

              Hi

              I had a fiddle around on this problem, and the attached seems to work. I can foresee some problems with it, but if you are still interested, have a look at it.

              Regards
              WTH

            • #713675

              Hi

              I had a fiddle around on this problem, and the attached seems to work. I can foresee some problems with it, but if you are still interested, have a look at it.

              Regards
              WTH

          • #713397

            Actually, I started doing something like this. I don’t think I finished it, but I can dig through my files to look for it. What I did to get around the problem of VBA’s slowness was parse every text string into it’s separate words (I don’t think I used split, even though that probably would’ve made my life easier), and then write the words to a table. Then I could use a query to find the best matches, which is much faster than VBA. My memory is a bit fuzzy about exactly what I did, so I can’t remember if I had problems or just got too busy to finish it.

        • #713186

          Anything to please! bow

      • #712867

        Just asking something that you and Charlotte didn’t have ready in your bag of tricks makes me happy.
        Thanks!

    • #712837

      Sounds like a fun project. Good luck! (Which means I’ve never done this before, so I can’t offer you any meaningful advice!)

    • #712856

      Search engines use fuzzy logic, which is a special form of logic and is NOT built into VBA. In VBA you would have to use the Split function to break the phrase into separate words, search for each word individually and for various combinations of the words with wildcards. VBA isn’t really suited for this, and I doubt seriously that you will find an algorithm that will make it workable in VBA … at least, not if you expect the search results within the next week or so. crazy

    Viewing 2 reply threads
    Reply To: Text Matcher (v2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: