+ Reply to Thread
Results 1 to 5 of 5

Formula to remove unwanted characters

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    458

    Formula to remove unwanted characters

    I am looking for a formula that will remove any unwanted characters in a cell.

    For example i may a word or string of words with "-" , " ' " or "," in them and i would like to have these removed.

    Thanks,
    Adam.
    Last edited by adam2308; 05-12-2009 at 03:50 PM.

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,520

    Re: Formula to remove unwanted characters

    Depending on the number of unique characters you want removed you can embed Substitutes

    =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-",""),"'",""),",","")

  3. #3
    Forum Contributor
    Join Date
    04-16-2009
    Location
    Stellenbosch, South Africa
    MS-Off Ver
    Excel 2003; Excel 2007; Excel 2010; Excel 2013
    Posts
    136

    Re: Formula to remove unwanted characters

    Or you can use a UDF. Copy this to a module in your workbook:

    Please Login or Register  to view this content.
    List all characters you want to remove in a new table.

    =substitutelist(A1,H2:H4)

    Where A1 contains the original text string, and H2:H4 house characters that you want to remove. Change ranges to suit.
    Regards

    Jon (Excel 2003, 2007, 2010, 2013)

  4. #4
    Registered User
    Join Date
    12-19-2012
    Location
    uae
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Formula to remove unwanted characters

    Use CTRL+F then delete those character.

  5. #5
    Registered User
    Join Date
    08-29-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    83

    Re: Formula to remove unwanted characters

    If you dont want to create Function in VBA or use any formule then you can just seleact all the names and then use replace (CTRL+H) and replace these characters with ""

+ 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