+ Reply to Thread
Results 1 to 8 of 8

Correct list of e-mail addresses

Hybrid View

  1. #1
    Registered User
    Join Date
    05-27-2014
    Posts
    11

    Correct list of e-mail addresses

    I have a list of e-mail addresses however before I can use it I need to correct entries that are invalid
    EG they contain an invalid character, or begin or end with an invalid character

    Anyone know a quick and easy way of doing this

    Right now I am filtering through whatever it is I know to be invalid (eg contains a bracket) and then correcting

    Thanks
    Vidhur

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Correct list of e-mail addresses

    please post a sample workbook with atleast 10-20 rows worth of data including possibilities and expected answers.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Correct list of e-mail addresses

    from what i gather you just want to get rid of the brackets?

    highlight column
    press CTRL+H
    find what = (
    replace what = leave blank
    repeat with find what = )

    Formula method
    in B1 have
    Formula: copy to clipboard
    =SUBSTITUTE(A1,"(","")


    then in C1 have
    Formula: copy to clipboard
    =SUBSTITUTE(B1,")","")
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    05-27-2014
    Posts
    11

    Re: Correct list of e-mail addresses

    Please see attached. Column A contains a list of e-mail addresses. The first 17 are invalid. I need to find a way to identify invalid e-mail address as done in column C and remove them from the list as done in column B
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-27-2014
    Posts
    11

    Re: Correct list of e-mail addresses

    It's not just brackets, there are a number of reasons why the e-mail address would be invalid
    The sample data (not real e-mail addresses) gives a good illustration of the problems I am trying to overcome

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Correct list of e-mail addresses

    ok that is a mix bunched of error issues

    try this UDF - user defined function
    http://www.vbaexpress.com/kb/getarticle.php?kb_id=281
    not my code but tested with your sample data and it works perfectly
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-27-2014
    Posts
    11

    Re: Correct list of e-mail addresses

    OMG that is amazing
    Thank you so much, you have saved me a lot of time

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Correct list of e-mail addresses

    not a problem

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Send to mail recipient, 1 worksheet, 2 cell ranges containing e-mail addresses
    By caladai in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-28-2013, 02:26 PM
  2. Opening e-mail addresses in a blank Outlook e-mail
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2010, 11:59 AM
  3. Send list of E-mail Addresses to Microsoft Outlook
    By RIFRAF in forum Excel General
    Replies: 2
    Last Post: 09-29-2009, 11:59 AM
  4. Mail shot from list of email addresses
    By Mark Anderson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-27-2008, 01:05 PM
  5. Replies: 4
    Last Post: 07-08-2008, 11:14 AM

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