I would like to create a custom validation formula in Microsoft Excel (.xlsx) to check for the correct format of email addresses in bulk. I have over 50,000 emails and I want to flag incorrect email addresses. For example, emails without .com, emails without “@” character, emails with multiple “@” characters, emails with leading space, and emails with trailing space.
After several hours of searching online I found a few useful formulas but they don’t work well with existing data - it appears to work best for new email entries.
=ISNUMBER(MATCH("*@*.?*",A1,0))
=AND(FIND("@",A1),FIND(".",A1),ISERROR(FIND(" ",A1)))
I also found this formula from another thread on SO: It checks for commas.
=AND(ISNUMBER(FIND("@",A2)),ISNUMBER(FIND(".",A2)),ISERROR(OR(FIND(" ",A2),FIND(",",A2))))
Any help or suggestions would be greatly appreciated. Thanks so much!