Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Validate Email Addresses in Excel

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Excel has no built-in email validator, but you can check addresses with a formula, Data Validation, or Power Query. The quickest reliable check is a formula that looks for exactly one @, at least one dot after it, and no spaces. For a stricter test, use Data Validation with a custom formula so bad addresses are blocked as they are typed. Neither method confirms the mailbox exists; they only catch formatting errors.

What You'll Need

  • Excel 2016 or later, or Microsoft 365 (Windows or Mac). The formulas below work in all these versions.
  • A column of email addresses to test, ideally with a header row.
  • Basic familiarity with entering formulas and selecting cell ranges.

Step-by-Step

  1. Set up your data. Put the email addresses in one column, for example column A starting at A2. Leave A1 as a header such as Email. Keep the addresses as plain text; if Excel turns them into hyperlinks, that does not affect the formulas.
  2. Pick a helper column. In B1 type a header such as Valid. In B2 you will enter the validation formula. This keeps your original data untouched.
  3. Enter a basic validation formula. In B2 paste: =AND(ISNUMBER(FIND("@",A2)),ISNUMBER(FIND(".",A2,FIND("@",A2)+1)),ISERROR(FIND(" ",A2)),LEN(A2)>5). This checks that there is an @, that a dot appears after the @, that there are no spaces, and that the address is longer than five characters. It returns TRUE or FALSE.
  4. Copy the formula down. Drag the fill handle from B2 down to the last row of data, or double-click the fill handle. Every row now shows TRUE or FALSE.
  5. Filter or highlight the failures. Select the header row and turn on Filter (Data > Filter). Filter column B to show only FALSE. Those are the addresses that failed the format check. Alternatively, use Conditional Formatting > Highlight Cells Rules > Equal To and enter FALSE to colour them red.
  6. Use Data Validation to block bad entries. Select the range where new addresses will be typed (for example A2:A1000). Go to Data > Data Validation. Under Allow, choose Custom. In the Formula box enter: =AND(ISNUMBER(FIND("@",A2)),ISNUMBER(FIND(".",A2,FIND("@",A2)+1)),ISERROR(FIND(" ",A2)),LEN(A2)>5). Make sure the cell reference matches the top-left cell of your selection. Click OK.
  7. Test the validation. Type a bad address such as name@domain (no dot after @) into the validated range. Excel should reject it with an error. Type a good address such as name@domain.com and it should be accepted. Note that menu labels can differ slightly by Excel version, device, or region.
  8. For a stricter check, use Power Query (optional). If you need to validate many addresses repeatedly, load the column into Power Query (Data > From Table/Range). Add a custom column with a formula that checks for @ and a dot after it, then filter out the failures. This is more work to set up but easier to refresh later.

Common Mistakes

  • Using a formula that only checks for @. An address like name@domain has an @ but no dot after it, so it is not a valid public email format. Always check for a dot after the @.
  • Forgetting to anchor the cell reference in Data Validation. The formula must refer to the active cell of the selected range (usually the top-left cell) without a dollar sign, so Excel adjusts it for each row. If you use $A$2, every row will validate against A2 only.
  • Assuming TRUE means the mailbox exists. A format check cannot confirm that the address is real or that someone reads it. It only catches typos and malformed entries.
  • Leaving spaces in the address. A trailing space is a common paste error. The formula above catches spaces anywhere, but you can also use TRIM to clean data first.
  • Applying Data Validation to existing data without checking. Data Validation only affects new entries by default. To flag existing bad addresses, use the helper-column formula instead.

Tips

  • Clean your data before validating: use =TRIM(A2) to remove leading and trailing spaces, and =LOWER(A2) if you want consistent casing (email addresses are case-insensitive in practice).
  • For a quick visual check, use Conditional Formatting with a formula such as =ISERROR(FIND("@",A2)) to highlight cells missing an @.
  • If you need to allow addresses with multiple dots (such as name@mail.co.uk), the basic formula still works because it only requires one dot after the @.
  • Keep a copy of your original data before applying validation or cleaning, in case you need to compare results.
  • Remember that Data Validation can be bypassed by pasting over the cell. If you need to enforce validation on pasted data, re-run the helper-column check after pasting.

Troubleshooting

  • The formula returns #VALUE!. This usually means the cell reference is wrong or the cell contains an error. Check that A2 contains text and that the formula is entered in a cell formatted as General, not Text.
  • Data Validation rejects a valid address. Check the formula's cell reference. It must point to the first cell of the selected range without dollar signs. Also confirm that the address has no hidden spaces; use TRIM to clean it.
  • Data Validation does not stop bad entries. Data Validation only applies to manual typing. If someone pastes a bad address, it will be accepted. Use the helper-column formula to catch pasted entries.
  • The formula marks a good address as FALSE. The formula requires a dot after the @. Addresses without a dot (such as internal addresses) will fail. If you need to allow those, adjust the formula to remove the dot check, but understand that it will then accept more malformed addresses.
  • Excel is slow with many rows. Array formulas or complex validation on thousands of rows can slow down. Use the helper column and filter instead of applying Data Validation to a very large range.

Frequently Asked Questions

Can Excel validate that an email address actually exists?

No. Excel can only check the format. Confirming that a mailbox exists requires sending a test message or using a dedicated email verification service.

What is the simplest formula to check for an @ sign?

=ISNUMBER(FIND("@",A2)) returns TRUE if an @ is present. It does not check for a dot after the @, so it is a weak test.

Does Data Validation work on pasted data?

No. Data Validation is bypassed when you paste into a cell. Use a helper-column formula to check pasted data after the fact.

Can I use a regular expression in Excel for email validation?

Excel's built-in functions do not support regular expressions natively. You would need VBA or Power Query with custom code, which is more complex than the formula method above.

Why does my formula return FALSE for a valid-looking address?

Check for spaces, a missing dot after the @, or a cell reference that is not relative. Also confirm the cell is not formatted as Text, which can cause formulas to be treated as text.

Is there a built-in email format in Data Validation?

No. Excel's Data Validation list does not include an email option. You must use a custom formula.