+ Reply to Thread
Results 1 to 3 of 3

Trying to Delete Text Before and after < > respectfully on the same line

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Orlando, Fl
    MS-Off Ver
    Excel 2007
    Posts
    65

    Question Trying to Delete Text Before and after < > respectfully on the same line

    Hi guys I have a file that contains about 6000 rows of email addresses some have <> around them some don't. I'm trying to clean it up so I included a cleansed example.

    To Delete Text Before < and to Delete Text After > on the same line I used

    D2=RIGHT(C2,LEN(C2)-FIND("<",C2))
    E2=LEFT(D2,FIND(">",D2)-1)

    That works good but what about the lines that have no <>?
    Then is there a better way to possibly make that permanent by copying E, pasting it into notepad, and coping it again into F, to remove all extra stuff then remove C,D,E.
    Making F the new C
    Attached Files Attached Files
    Last edited by 20GT; 04-24-2017 at 05:18 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Trying to Delete Text Before and after < > respectfully on the same line

    Why not use find replace.

    Select your column

    Find "<", replace with "", Replace all

    Find ">", replace with "", Replace all


    Ahh I see the issue in your sample

    Try this formula in D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by mehmetcik; 04-24-2017 at 05:22 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    Orlando, Fl
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Trying to Delete Text Before and after < > respectfully on the same line

    Great thanks

+ 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. [SOLVED] Reading line by line data from Text file
    By wyldencl in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-18-2015, 10:09 PM
  2. [SOLVED] Wanted: Highlight last line of text and copy to line below
    By King_Crud in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2014, 08:01 AM
  3. Delete part of a text line with excel?
    By wizi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-29-2014, 04:22 AM
  4. Replies: 6
    Last Post: 07-12-2005, 04:05 PM
  5. Good Morning- Can I delete the last text line in all 5000 cells
    By tryin2makeit2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2005, 02:21 PM
  6. Good Morning- Can I delete the last text line in all 5000 cells
    By tryin2makeit2 in forum Excel General
    Replies: 1
    Last Post: 05-09-2005, 09:04 AM
  7. Delete Last Text line in 5000 Cells
    By tryin2makeit2 in forum Excel General
    Replies: 0
    Last Post: 05-08-2005, 07:29 PM

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