+ Reply to Thread
Results 1 to 5 of 5

Cell Trim Help

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Cell Trim Help

    Hello everyone. Not sure if this is possible but here is my question. I have a list of (900+ rows) of xxxxxxxxx@yyy-bbb-ccc.txt and the "x" = user names so varies in lengh and all different. Is there a way to remove everything upto "yyy-bbb-ccc.txt"? I can replce ".txt" with replace tool because it is same in all cells but not the user names.

    Thank you

  2. #2
    Registered User
    Join Date
    11-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Cell Trim Help

    You could try

    =MID($A1,(FIND("@",$A1)+1),10000)

    Assuming your data starts in A1. and copy down. Does that work?
    This also assumes no data is longer than 10000 characters

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Cell Trim Help

    You could use Data>Text to columns with @ as the delimiter.

    On the 2nd step choose not to import the first column.

    To remove the .txt you could repeat text to columns but with . as the delimiter and choosing not to import the second column.

  4. #4
    Registered User
    Join Date
    11-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Cell Trim Help

    Quote Originally Posted by jmulqueen View Post
    You could try

    =MID($A1,(FIND("@",$A1)+1),10000)

    Assuming your data starts in A1. and copy down. Does that work?
    This also assumes no data is longer than 10000 characters
    Genius. Thank you so much that worked.

  5. #5
    Registered User
    Join Date
    11-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Cell Trim Help

    Quote Originally Posted by Norie View Post
    You could use Data>Text to columns with @ as the delimiter.

    On the 2nd step choose not to import the first column.

    To remove the .txt you could repeat text to columns but with . as the delimiter and choosing not to import the second column.
    Thank you for Replying Norie. I didn't try it because jmulqueen solved it for me.

+ 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