Hello,
I have a long list of email addresses, all in random formats (they are not your standard first.last@domain.com).
I also have a list of 5k first names.
The formula/macro needs to search each email address for a matching first name from 5k list and return the matching name. The logic is pretty straightforward:
1. Return a value if the email address STARTS with one of the names in the list of 5k names. For example:
The email "chris@gmail.com" should return "Chris" but "merrychristmas@gmail.com" shouldn't return anything.2. In cases where more than one match exists, return the longest match. For example:
The email "danielle@gmail.com" would technically match with "dan", "daniel", and "danielle". In these cases, "Danielle" should be returned since it is the longest match.3. If there is no match, the macro shouldn't return anything.
I tried accomplishing this using an Excel formula and got pretty far, but can't get it to search from the beginning of the email address. I upoaded my spreadsheet here:
https://drive.google.com/file/d/0B8J...ew?usp=sharing
Any ideas on how to fix my formula? I'm also open to a macro if you think that's a better solution.
Your help is greatly appreciated!!
Thanks,
Glenn
Bookmarks