+ Reply to Thread
Results 1 to 8 of 8

AutoFliter and remove irrelevant data within a cell

  1. #1
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2310)
    Posts
    366

    AutoFliter and remove irrelevant data within a cell

    Hello,

    Example email.xlsx

    I have a task to create a mailing list from a CSV file, but I need to create the CSV file first. I have received an email that just has the email address of the contact(nice job there..) When I copy and paste from the email into excel, I get the attached format

    Attached is a quick wookbook demonstrating, as you can understand. All pasted data will be in the same column A


    What I would like is a macro that will is to check and remove the following in bold [email protected]<mailto:[email protected]> or whatever is easier to get a complete email address, then I can save it as a CSV file to upload to my mail client, to create the mailing list.

    I don't know if this can be done but thought I would post here, you guys will let me know. Your the experts.

    Thank you in advance for any help you may provide.

    Russ
    Last edited by russkris; 06-25-2012 at 11:45 PM.

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: AutoFliter and remove irrelevant data within a cell

    Try this,

    Please Login or Register  to view this content.
    If you want the page formatted a certain way, like removing the old emails, let me know.
    Attached Files Attached Files
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: AutoFliter and remove irrelevant data within a cell

    To extract a substring from a larger string:
    In B1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copied down
    Last edited by protonLeah; 06-25-2012 at 11:22 PM.
    Ben Van Johnson

  4. #4
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2310)
    Posts
    366

    Re: AutoFliter and remove irrelevant data within a cell

    Wow.. You guys are to fast.

    JapanDave - Is it possible to replace the old one with the new one. It's cool if it is to much work, your marco will work just fine.

  5. #5
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: AutoFliter and remove irrelevant data within a cell

    Ok try this.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2310)
    Posts
    366

    Re: AutoFliter and remove irrelevant data within a cell

    Thank you JapanDave. From there I can filter out the blank lines.

  7. #7
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: AutoFliter and remove irrelevant data within a cell

    This will clear the spaces.

    Please Login or Register  to view this content.

  8. #8
    Valued Forum Contributor
    Join Date
    10-17-2007
    Location
    Tasmania, Australia
    MS-Off Ver
    2019, 365(v2310)
    Posts
    366

    Re: AutoFliter and remove irrelevant data within a cell

    Thank you again Dave.

+ 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