+ Reply to Thread
Results 1 to 10 of 10

removing a space in a phone number

Hybrid View

  1. #1
    Registered User
    Join Date
    06-08-2012
    Location
    Naples, FL
    MS-Off Ver
    Excel 2003
    Posts
    17

    removing a space in a phone number

    I have a mail list in excel that I want to dedupe by phone number. The dedupe recognizes the same number as two different numbers if there is a space in one of the numbers. Can someone explain a way of taking the string of 3000 phone numbers and remove the space?
    2223334444
    222 3334444
    222 333 4444
    222333 4444
    222 3334444
    I used replace to remove the brackets, but not the space(s).
    Thanks

  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: removing a space in a phone number

    Have you tried Find and Replace (using a space and the null characters)?
    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
    Registered User
    Join Date
    06-08-2012
    Location
    Naples, FL
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: removing a space in a phone number

    Yes it deletes the phone number altogether.
    Last edited by rob@dmsdealer.com; 11-23-2012 at 06:22 PM.

  4. #4
    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: removing a space in a phone number

    Hi,

    In that case you're using Find and Replace incorrectly. Describe EXACTLY what you do, step by step so that we can tell you where you are going wrong.

  5. #5
    Registered User
    Join Date
    06-08-2012
    Location
    Naples, FL
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: removing a space in a phone number

    Highlight the column. Click on find. Insert * *. Click on replace and leave blank. Click on OK.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,042

    Re: removing a space in a phone number

    Don't use * *, use " " and, in the options, make sure you haven't selected match entire cell contents.

    Edit: * is a wild card. What you are saying is find a space with anything before and after and replace it all.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Registered User
    Join Date
    06-08-2012
    Location
    Naples, FL
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: removing a space in a phone number

    TMS
    Maybe I am almost there, but now I get; cant find any data to replace.

  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 a space in a phone number

    dont put " " just in find use the space bar
    "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

  9. #9
    Registered User
    Join Date
    06-08-2012
    Location
    Naples, FL
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: removing a space in a phone number

    Got it, thanks very much!

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,042

    Re: removing a space in a phone number

    @martin: thanks, difficult to describe putting a space in ...


    @rob:

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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