A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Comparing Two Text Based Lists



 
 
Thread Tools Display Modes
  #1  
Old November 10th, 2003, 02:29 PM
GB
external usenet poster
 
Posts: n/a
Default Comparing Two Text Based Lists


"Paul Talkington" wrote in
message ...

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



  #2  
Old November 10th, 2003, 02:45 PM
GB
external usenet poster
 
Posts: n/a
Default Comparing Two Text Based Lists

You can get a Soundex algorith already programmed he

http://www.j-walk.com/ss/excel/tips/tip77.htm


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.