+ Reply to Thread
Results 1 to 8 of 8

Removing Characters.

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Removing Characters.

    Hey all. I'm trying to sort through duplicates of phone numbers but unfortunately, some entries have (+, -, or " ") in them. Is there a way I can delete all these characters from my data? :D

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

    Re: Removing Characters.

    Ctrl+H and replace each character with nothing

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Removing Characters.

    Thanks for that suggestion, but I've got a LOT of phone numbers. I've already written up the search code to compare exact words but I was just hoping if there was a function that could omit certain characters, or a way to make a function that goes through each line and deletes all of them.

  4. #4
    Registered User
    Join Date
    06-09-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Removing Characters.

    Oh god, that worked. LOL! I'm a moron. Thanks, you're awesome. <3

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

    Re: Removing Characters.

    For replacing you can select:

    - one cell
    - whole sheet
    - one ore more rows
    - one or more columns

    So when you want to replace in part of the workbook you can select just that part.
    In your case probably whole sheet (Ctrl+A) should work

  6. #6
    Registered User
    Join Date
    06-09-2011
    Location
    PH
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Removing Characters.

    It works except for the spacebar. Darn spacebar.

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

    Re: Removing Characters.

    Spacebar should also work but it will remove all spacebars in the words.
    For example if you have names there it will remove space between them: John Doe -> JohnDoe

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Removing Characters.

    and in addition all sheets as well.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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