In this article:

How to Validate Email Addresses in Excel (Easiest Way in 2024)

In this article, we will show you how to validate email addresses in Excel using the Data Validation feature and the IF function. Simply follow the process below. 

How to Validate Email Addresses in Excel using Data Validation

The Data Validation feature of Excel is an effective tool for checking the integrity of email addresses in your spreadsheet. Follow the steps below to validate email address in Excel. 

1. Type or Paste Email Addresses into a Column

Begin typing or copy and pasting email addresses you wish to validate into a column in Excel. Ensure each email is in its own cell for effective validation.

excel email validation

2. Highlight Email Cells and Open Data Validation Tool

Select the cells with the email addresses by clicking and dragging over them. Then, go to the 'Data' tab on the top menu and click on the 'Data Validation' button in the 'Data Tools' section.

email validation excel

3. Choose 'Custom' in Data Validation for Specific Criteria

In the Data Validation dialog box, choose 'Custom' from the 'Allow' dropdown list. This step enables you to define a specific validation rule.

validate email in excel

4. Enter Email Validation Formula in Data Validation

Type in the formula: `=AND(ISNUMBER(SEARCH("@", A1)), ISNUMBER(SEARCH(".", A1)), NOT(ISNUMBER(SEARCH(" ", A1))))`. Replace A1 with the cell reference of your first email address. This formula checks for '@' and '.', and ensures no spaces are present – typical traits of valid emails. Click 'OK' to apply the validation rule.

email validation in excel

5. Apply Validation and Test with Sample Emails

Test the validation rule by entering both valid and invalid email addresses in the selected cells. Invalid emails will prompt an error message.

excel validate email

6. Optionally Set Custom Error Messages for Invalid Emails

To create a custom error alert, reopen 'Data Validation' and select the 'Error Alert' tab. Here, you can craft a specific message that appears for invalid email inputs.

validate email excel

How to Validate Email Addresses in Excel using the IF function

Validating email addresses in Excel using the IF function is an effective way to check if the data in your spreadsheet meets specific email format criteria. Follow the steps below to create a formula using the IF function to validate emails.

1. Enter or Paste Email Addresses

Input the email addresses you want to validate into a column. Each email should be in a separate cell.

excel validate email address

2. Write IF Function for Email Validation in Adjacent Cell

In the cell next to your first email address, write the IF function. Use the formula: `=IF(AND(ISNUMBER(SEARCH("@", A1)), ISNUMBER(SEARCH(".", A1)), LEN(A1)-LEN(SUBSTITUTE(A1,"@",""))=1), "Valid", "Invalid")`. Replace `A1` with the reference of the email address cell.

validate email address in excel

3. Copy the Formula to Other Cells

Drag the corner of the cell with the formula to copy it down the column, applying it to all email addresses. The formula will adjust automatically for each cell.

validate email address excel

4. Check the Validation Results

The formula will display an error message for email addresses that do not fit the standard format.

how to validate email address in excel

We hope that you now have a better understanding of how to validate email address in Excel using the Data Validation feature and the IF function. If you enjoyed this article, you might also like our article on how to compress an Excel file for email or our article on how to send part of an Excel spreadsheet by email.  

Schedule a free automation consult
Learn more

Level up your Google Sheets skills with our free Google Sheets automation guide

Wasting too much time doing things manually in spreadsheets? Want to spend more time doing what you love? Our 100% free, 27-page Google Sheets automation guide is full of new tips and tricks that will save you time and money!