LittleFurry
New Member
- Joined
- Jun 17, 2019
- Messages
- 2
Hi all
I am new to the MrExcel community and am working on a fuzzy matching assignment. I managed to copy the Levenshtein Distance VBA code from https://stackoverflow.com/questions/4243036/levenshtein-distance-in-vba and it gave me the result I wanted.
For instance if I compared "Osama Ben Ladn" with "Osama Bin Laden", the Levenshtein Distance output is 2, which is correct.
However when I used the code to evaluate "Prem Kumar" with "Kumar Prem", the Levenshtein Distance output is 10. In actual fact, the Levenshtein Distance should be 0 since the individual is the same person, except that the name is transposed.
Appreciate any help from the community to guide me in the right direction and provide VBA code if possible. Thank You very much!
I am new to the MrExcel community and am working on a fuzzy matching assignment. I managed to copy the Levenshtein Distance VBA code from https://stackoverflow.com/questions/4243036/levenshtein-distance-in-vba and it gave me the result I wanted.
For instance if I compared "Osama Ben Ladn" with "Osama Bin Laden", the Levenshtein Distance output is 2, which is correct.
However when I used the code to evaluate "Prem Kumar" with "Kumar Prem", the Levenshtein Distance output is 10. In actual fact, the Levenshtein Distance should be 0 since the individual is the same person, except that the name is transposed.
Appreciate any help from the community to guide me in the right direction and provide VBA code if possible. Thank You very much!