Ok weirdest request I have had in a while. I've got 4,000 records of customer or prospects in Excel. This is already sorted alphabetically by company name. I want to add a "sort order" column at the far right. Here it gets weird. Let's say the first name in my excel spreadsheet is "Anaheim Memorial Hospital", while way down at record 2000, I have "Memorial Hospital of Anaheim". Because of the similarity - they have at least 2 words in common - I want both of these to have sort value of 1. In my second record, I want VBA to loop through the records, finding the same words in perhaps another situation say "Birmingham Iron Works" and Iron Works - Birmingham", giving both the sort value of 2. It is of course possible that 4 or 5 records would be a potential match, and be assigned the same sort order.
In the case above the 4 records actually represent only 2 companies. My customer just had inconsistent data entry habits over the years. The end goal is to present a re-sorted list back to my customer who can then peruse through the list and say "yes, these 2 entries are actually the same company", and modify the spreadsheet accordingly. Eventually this all be imported into a MS SQL database.
So if anyone has any ideas how to do this I would be grateful. I also to ignore word like "the", "a", "an", "of", "in", etc. in the vba string comparison.
Software Training, Implementation, Programming and Support for Macola Progression, Macola ES, Macola 10, Synergy, and Crystal Reports.
Check out our Macola tools:
In the case above the 4 records actually represent only 2 companies. My customer just had inconsistent data entry habits over the years. The end goal is to present a re-sorted list back to my customer who can then peruse through the list and say "yes, these 2 entries are actually the same company", and modify the spreadsheet accordingly. Eventually this all be imported into a MS SQL database.
So if anyone has any ideas how to do this I would be grateful. I also to ignore word like "the", "a", "an", "of", "in", etc. in the vba string comparison.
Software Training, Implementation, Programming and Support for Macola Progression, Macola ES, Macola 10, Synergy, and Crystal Reports.
Check out our Macola tools: