Comparing Two Text Based Lists

P

Paul Talkington

Hello All

I have been struggling with a VLOOKUP trying to compare two different
customer lists.

Problem is that when comparing text if there are slightly different
spellings eg. ABC and ABC Ltd. (even if they are the same), I either
get #N/A with FALSE or get the next closest match with TRUE

Am I "barking up the wrong tree" ? is there a way of comparing within a
text string soas to to get a closer - but not exact match ?

Thanks in Advance.

Paul
 
G

GB

Paul Talkington said:
Hello All

I have been struggling with a VLOOKUP trying to compare two different
customer lists.

Problem is that when comparing text if there are slightly different
spellings eg. ABC and ABC Ltd. (even if they are the same), I either
get #N/A with FALSE or get the next closest match with TRUE

Am I "barking up the wrong tree" ? is there a way of comparing within a
text string soas to to get a closer - but not exact match ?

Thanks in Advance.

Paul

There is a Soundex algorithm that takes care of minor spelling differences -
so Smith, Smyth, Smythe etc all come out the same. It's quite well known.

I doubt that anything standard will take care of Ltd / plc etc.

In your position, I would proceed as follows:

Copy both lists of names. Do a Search and replace for Ltd, Limited, The,
plc, etc - replacing with nothing. (You might want to make a list of all the
keywords and variations. You might as well record this as a macro, in case
you need to do it again some time.)

Similarly strip out hyphens, spaces, full stops, commas.

Apply Soundex to both lists and use the results of that for your
comparisons.

Good luck! I fear you may need it!

Geoff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top