excel email validation formula

前端 未结 4 799
心在旅途
心在旅途 2020-12-08 16:04

I have a column where people enter email address manually. I want to validate the email address using this formula:

=AND(FIND(“@”,A2),FIND(“.”,A2),ISERROR(FI         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 16:16

    I bumped into an issue of firstname.lastname@domain@topdomain for which I made an amendment that checks the correct order of the @ and the . with an implicit Like without VBA.

    =AND(NOT(ISERROR(VLOOKUP("*@*.*",A2,1,FALSE))),ISERROR(FIND(" ",A2)))
    

    EDIT
    "*?@?*.??*" seems to be even more descriptive as long as top-level domains are at least two characters long (as of this post they are).

提交回复
热议问题