Hi All,
I have a long list of email addresses, all in different formats (ie. not your standard first.last@domain.com).
I'm able to extract the first name where possible using a list of 5,000 first names as my search values and the email address as my text to search within. I'm also only searching text that is left of the @ symbol. Here's the formula I'm using:
=IFERROR(LOOKUP(1E+100,SEARCH('first names'!$A$2:$A$5313,LEFT(A2,FIND("@",A2)-1)),'first names'!$A$2:$A$5313),"")
Where 'first names'!$A$2:$A$5313 is the list of first names and 'A2' is the email address. This works great, but I now want to only return a value if the email address STARTS with the first name. For example, I want chris@gmail.com to return "Chris" but merrychristmas@gmail.com to return null.
<tbody>
</tbody>
Any help is greatly appreciated!!
Thanks,
Glenn
I have a long list of email addresses, all in different formats (ie. not your standard first.last@domain.com).
I'm able to extract the first name where possible using a list of 5,000 first names as my search values and the email address as my text to search within. I'm also only searching text that is left of the @ symbol. Here's the formula I'm using:
=IFERROR(LOOKUP(1E+100,SEARCH('first names'!$A$2:$A$5313,LEFT(A2,FIND("@",A2)-1)),'first names'!$A$2:$A$5313),"")
Where 'first names'!$A$2:$A$5313 is the list of first names and 'A2' is the email address. This works great, but I now want to only return a value if the email address STARTS with the first name. For example, I want chris@gmail.com to return "Chris" but merrychristmas@gmail.com to return null.
Column A | Column B |
chris@gmail.com | Chris |
merrychristmas@gmail.com | NULL |
<tbody>
</tbody>
Any help is greatly appreciated!!
Thanks,
Glenn