+ Reply to Thread
Results 1 to 15 of 15

how to filtering email with space in email or no @ and dot com

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    United States
    MS-Off Ver
    MS Office 2010
    Posts
    12

    how to filtering email with space in email or no @ and dot com

    Hello everyone,

    I'm new to MS Excel and not really know how to go around this but I know that you could solve this either through macro or something. Anyway please bare with me if I seem slow in understanding.

    We have thousands of emails in our database through online forms and other sources and it'll take forever to sort through each one at a time. I know that there must be some way that I can use excel to sort all these emails and fix or filter the ones that either have space in the email or filter out the ones that doesn't have an @ symbol or dot com or domain.

    thanks in advance for all the help!

  2. #2
    Registered User
    Join Date
    12-18-2012
    Location
    United States
    MS-Off Ver
    MS Office 2010
    Posts
    12

    Re: how to filtering email with space in email or no @ and dot com

    umm... anyone?

  3. #3
    Registered User
    Join Date
    12-17-2012
    Location
    Salt Lake City, UT
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: how to filtering email with space in email or no @ and dot com

    What result are you looking for? Are you looking to delete certain email addresses? Or are you just hoping to get them at the top of the list?

  4. #4
    Registered User
    Join Date
    12-18-2012
    Location
    United States
    MS-Off Ver
    MS Office 2010
    Posts
    12

    Re: how to filtering email with space in email or no @ and dot com

    i'm hoping to close the gap in the spacing and those that doesn't have a @ or dotcom i wanted to remove them because the sales team will forward email using the same list

  5. #5
    Registered User
    Join Date
    12-17-2012
    Location
    Salt Lake City, UT
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: how to filtering email with space in email or no @ and dot com

    Do you have a sample spreadsheet? Are you attempting to delete the whole row when there is no @ symbol?

    To get rid of the spaces you can use a formula. Let's assume the email addresses are in column A. In cell B1, type:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy that all the way down.

  6. #6
    Registered User
    Join Date
    12-18-2012
    Location
    United States
    MS-Off Ver
    MS Office 2010
    Posts
    12

    Re: how to filtering email with space in email or no @ and dot com

    unfortunately i can't disclose the spreadsheet with the emails but we're going to delete teh whole roll

  7. #7
    Registered User
    Join Date
    12-18-2012
    Location
    United States
    MS-Off Ver
    MS Office 2010
    Posts
    12

    Re: how to filtering email with space in email or no @ and dot com

    eventually, I want to check a excel file and throw out email addresses which are entered like these formats

    1) [email protected]
    2) [email protected].
    3) a [email protected]
    4) na
    5) n/a

  8. #8
    Registered User
    Join Date
    12-17-2012
    Location
    Salt Lake City, UT
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: how to filtering email with space in email or no @ and dot com

    This should get you started. Change A1 to whatever cell is the first cell with email addresses.

    Please Login or Register  to view this content.
    Last edited by chris.c; 12-19-2012 at 04:14 PM.

  9. #9
    Registered User
    Join Date
    12-18-2012
    Location
    United States
    MS-Off Ver
    MS Office 2010
    Posts
    12

    Re: how to filtering email with space in email or no @ and dot com

    i found this and it's exactly what i wanted but when i enter it into excel and try to type some invalid email, it just let me go through.

    http://www.excelitems.com/2010/11/va...addresses.html

    can you take a look at the function they have there? i copied and past that but nothing happen

  10. #10
    Registered User
    Join Date
    12-17-2012
    Location
    Salt Lake City, UT
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: how to filtering email with space in email or no @ and dot com

    It worked fine for me. You need to do the following: Make sure your Excel file is saved with a .xlsm extension (Excel Macro-Enabled Workbook). In the workbook, open the visual basic editor. At the top click "Insert"=>"Module" and paste the code. In the spreadsheet, in whatever cell you choose, type:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Replace A1 with the cell that has the email you're trying to check. I attached a workbook with the function in it for you.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    12-18-2012
    Location
    United States
    MS-Off Ver
    MS Office 2010
    Posts
    12

    Re: how to filtering email with space in email or no @ and dot com

    i see... alright i got it

    thank you so much

    oh btw are there anyway i can set it to remove the email or the row? because all the data will be enter via website form and whatever that's invalid, i want it to be removed automatically
    Last edited by Thomas_xyz; 12-19-2012 at 07:53 PM.

  12. #12
    Registered User
    Join Date
    12-17-2012
    Location
    Salt Lake City, UT
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: how to filtering email with space in email or no @ and dot com

    Let's say you put the emails in column A and the CheckEmail formula in column B. Then you would use:

    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    12-17-2012
    Location
    Salt Lake City, UT
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: how to filtering email with space in email or no @ and dot com

    Let's say you put the emails in column A and the CheckEmail formula in column B. Then you would use:

    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    12-18-2012
    Location
    United States
    MS-Off Ver
    MS Office 2010
    Posts
    12

    Re: how to filtering email with space in email or no @ and dot com

    oh wow thanks a lot

  15. #15
    Registered User
    Join Date
    12-18-2012
    Location
    United States
    MS-Off Ver
    MS Office 2010
    Posts
    12

    Re: how to filtering email with space in email or no @ and dot com

    the code works.
    although i realize that a lot of my clients include "http://www." into their emails. are there anyway to modify those emails to remove that?
    actually a lot of the emails just need corrections.
    in addition to that, some of the email are correct except the domain might be too long and some of them end with .info which was marked invalid.
    is there a way where i can just correct these emails?
    Last edited by Thomas_xyz; 12-20-2012 at 01:17 PM.

+ 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