+ Reply to Thread
Results 1 to 5 of 5

How do I make an Excel Data Validation to check specifics about E-mail address formats??

  1. #1
    Registered User
    Join Date
    12-06-2012
    Location
    Pittsburgh,Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    5

    How do I make an Excel Data Validation to check specifics about E-mail address formats??

    I've been asked to make an excel book for my job, that has a data validation in it to check e-mail addresses. They want the validation to check for a few things, and I can't get it to work for all of them at once. When someone enters an e-mail into the cell, they want excel to check for:

    -The email to contain at least one period (.)
    -The email to contain one 'at' symbol (@), BUT no more than one @ symbol

    So far I getting Excel to check that the '.' and '@' are present hasn't been a problem since I've used the formula before, but I can't get the error message to show for if there's more than one @ symbol. I'm using this formula:

    =AND(FIND(".",A1),FIND("@",A1))

    Any ideas on this? Thanks in advance!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How do I make an Excel Data Validation to check specifics about E-mail address formats

    hi Moho280, welcome to the forum. try:
    =AND(FIND(".",A1),SUMPRODUCT(--(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)="@"))=1)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How do I make an Excel Data Validation to check specifics about E-mail address formats

    just to post using len()

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Registered User
    Join Date
    12-06-2012
    Location
    Pittsburgh,Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: How do I make an Excel Data Validation to check specifics about E-mail address formats

    Thanks a ton, both answers were a huge help!! Very much appreciated :D

  5. #5
    Registered User
    Join Date
    06-16-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    1

    Re: How do I make an Excel Data Validation to check specifics about E-mail address formats

    Sorry but all answers are incompleted !

    tested with: "[email protected]" --> return TRUE (it's wrong, this is not a valid email)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1