If you collect email addresses in your spreadsheet. You may want to validate an email address in Excel.
Using Data Validation you can check the syntax of an email address to ensure it is legitimate. It cannot check the existence of an address, or who it belongs to. But it will ensure the existence of the @ symbol, a period (.) and no spaces in the address.
Validate an Email Address
- Select the range of cells to add the validation to
- Click the Data tab on the Ribbon
- Click the Data Validation button
- On the Settings tab, click the Allow: list arrow and select Custom
- Enter the formula below in the Formula box
=AND(FIND("@",A2),FIND(".",A2),ISERROR(FIND(" ",A2)))
The AND function is used to test three conditions and ensure that all three conditions are met for the entry to be valid.
The FIND function is used to check the existence of the @ symbol and the period (.). A separate FIND function is used for each character. If found, the function returns a number indicating the characters position. The returned number is equal to the value of TRUE in a logical expression.
The ISERROR function is used along with another FIND function to check if an error is returned when searching for spaces in the text. If an error is returned, then spaces were not found and the address is ok.
- Click Ok
Bruce Nutting says
Well I was not able to get the formula to work and I copied, pasted and deleted the url information. I am assuming that A2 represents the cell you are validating.
Bruce
computergaga says
You will need to highlight all the cells you want to validate. Then A2 represents the first cell in that selection.
C. says
Thanks for sharing! So is there a way to copy paste a list of email addresses to validate them on excel? I noticed this formula only works when you type them in one by one. Thanks again!
computergaga says
If you set the validation criteria to a range e.g. A1:A100. Then paste data into that range. It won’t auto check it, but you should be able to click the list arrow on the Data Validation button and select Circle Invalid Data.
Clint says
Only partially validation it would appear. You check for presence of spaces in the address as an error but what about the presence of commas? That too is an invalid character.
The most common error we see is the person entering the address enters the ending domain type (using com as an example) as ,com rather than as .com.
computergaga says
Yes, validating for the presence of a comma can be done in the same way. This can be used to validate against any invalid characters.
Shiva says
Hi Sir,
I have a List of around 1000 Email-IDs. All are Validated syntax-wise. But, they appear to be Not Genuine when I try to send Email to all of them in one shot. Please help me resolve this issue.
computergaga says
In Excel we can only validate them syntax wise to check if they follow certain rules. You will need to find some other software online to check if they are not ‘fake email ids’.