+ Reply to Thread
Results 1 to 6 of 6

Delete everything before a certain character?

  1. #1
    Registered User
    Join Date
    01-14-2010
    Location
    Albany, NY
    MS-Off Ver
    Excel 2003
    Posts
    2

    Delete everything before a certain character?

    Hi, I was hoping someone could help me with this. How can I delete everything before a certain character (for this example: @ ), no matter how much there is before @ in each cell. Thank you.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Delete everything before a certain character?

    Hi,

    Without resorting to macros there are a couple of options.

    1. Select the whole of the range in questions then do an Edit Find and enter *@ then click Repace All without specifying any replacement.

    2. In an adjacent cell to the cells in your list use the formula
    Please Login or Register  to view this content.
    and copy down your list.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Delete everything before a certain character?

    Hi Seansks, and welcome to the forum.

    This may work for you (assumes the cell with text is A1, change as needed):

    =RIGHT(A1,LEN(A1)-FIND("@",A1)+1)

    This keeps the @ symbol. If you want to get rid of that and just keep what comes after the symbol just remove the +1 on the end.

  4. #4
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Delete everything before a certain character?

    Deleted: didn't read Richard's response in full.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Delete everything before a certain character?

    Or this:

    =REPLACE(D7,1,FIND("@",D7,1),"") (without @)
    =REPLACE(D7,1,FIND("@",D7,1)-1,"") (with @)

  6. #6
    Registered User
    Join Date
    01-14-2010
    Location
    Albany, NY
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Delete everything before a certain character?

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Without resorting to macros there are a couple of options.

    1. Select the whole of the range in questions then do an Edit Find and enter *@ then click Repace All without specifying any replacement.

    2. In an adjacent cell to the cells in your list use the formula
    Please Login or Register  to view this content.
    and copy down your list.

    HTH
    Thanks to everyone who responded, beyond appreciated. I tried out Richard's example and it worked perfectly. thanks a bunch, saved me a bunch of time on a project!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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