+ Reply to Thread
Results 1 to 9 of 9

How do you automatically delete email domains in an Excel column?

  1. #1
    Registered User
    Join Date
    10-20-2013
    Location
    Boca Raton
    MS-Off Ver
    Excel 2013
    Posts
    5

    Question How do you automatically delete email domains in an Excel column?

    Meaning any emails in a column in Excel that have an email of aol.com, cs.com, and compuserve.com, I want to automatically delete and am wondering how do I do that? In addition, once they are automatically deleted I want the rest of the items in the column combined together so there are no empty rows in the column.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: How do you automatically delete email domains in an Excel column?

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-20-2013
    Location
    Boca Raton
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: How do you automatically delete email domains in an Excel column?

    Attached is a sample workbook. Again, I simply want to know how to delete the aol.com, cs.com, and compuserve.com email domains automatically. Thank you.
    Attached Files Attached Files

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: How do you automatically delete email domains in an Excel column?

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.mrexcel.com/forum/excel-q...el-column.html

  5. #5
    Registered User
    Join Date
    10-20-2013
    Location
    Boca Raton
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: How do you automatically delete email domains in an Excel column?

    I do not know how to close my post in the other forum. Could my question here be answered?

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: How do you automatically delete email domains in an Excel column?

    In cell B1, type =LEFT(A1,FIND("@",A1)-1) and copy down.

    You do not need to close your other post. You need to read the article referenced about cross posting and understand when and how to do it and when not to.

  7. #7
    Registered User
    Join Date
    10-20-2013
    Location
    Boca Raton
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: How do you automatically delete email domains in an Excel column?

    Alan, that removes the value before the "@". I simply want to remove every single AOL, compuserve, and cs.com email domain, that is it. Let me clarify, I want to automatically remove the values in a cell that have the email domain "aol.com", "cs.com", and "compuserve.com".
    Last edited by sjeff; 10-20-2013 at 08:16 PM.

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: How do you automatically delete email domains in an Excel column?

    ok. my misunderstanding.

    Type this in B1 and copy down =ISERROR(IF(FIND("aol",A1),"Del",IF(FIND("cs.com",A1),"Del",IF(FIND("compuserve",A1),"Del","Keep"))))

    Sort on column B and then delete all FALSE statements

  9. #9
    Registered User
    Join Date
    10-20-2013
    Location
    Boca Raton
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: How do you automatically delete email domains in an Excel column?

    Alan, for any value in column A that has the email domain "aol.com" it says "FALSE" in column B but for any value in column A that has the email domain "compuserve.com" or "cs.com" it says "TRUE" in column B. In addition, once it says "FALSE" in column B, how do I automatically remove values in column A that have a value of "FALSE" in column B?
    Last edited by sjeff; 10-20-2013 at 08:48 PM.

+ 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 New Email W/ Body of Received Email, Then Delete Sent Email
    By edneal2 in forum Outlook Formatting & Functions
    Replies: 2
    Last Post: 07-01-2013, 12:45 AM
  2. Sorting Domains in an Excel Sheet
    By Major123456 in forum Excel General
    Replies: 1
    Last Post: 04-14-2013, 08:11 AM
  3. [SOLVED] I want to count the .com domains in a column.. How can I write a function for it?
    By Xebur13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-14-2012, 07:25 PM
  4. Run Macro Automatically When delete row , changes cell,delete column
    By elevisse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2012, 07:42 AM
  5. Hyperlinking an entire column of domains
    By anjanesh in forum Excel General
    Replies: 4
    Last Post: 03-11-2006, 09:02 AM

Tags for this Thread

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