+ Reply to Thread
Results 1 to 6 of 6
  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 Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,829

    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
    Code:
    =RIGHT(A1,LEN(A1)-SEARCH("@",A1)+1)
    and copy down your list.

    HTH
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Forum Moderator Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2007
    Posts
    5,213

    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 Guru darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Colorado, US
    MS-Off Ver
    2007
    Posts
    2,140

    Re: Delete everything before a certain character?

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

  5. #5
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,740

    Re: Delete everything before a certain character?

    Or this:

    =REPLACE(D7,1,FIND("@",D7,1),"") (without @)
    =REPLACE(D7,1,FIND("@",D7,1)-1,"") (with @)
    "Relax. What is mind? No matter. What is matter? Never mind!"

  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
    Code:
    =RIGHT(A1,LEN(A1)-SEARCH("@",A1)+1)
    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!

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.2.0