+ Reply to Thread
Results 1 to 8 of 8

Removing Parenthesis, spaces and dashes from Phone numbers

  1. #1
    Registered User
    Join Date
    01-14-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    2

    Removing Parenthesis, spaces and dashes from Phone numbers

    I have a spreadsheet with phone numbers in the format of (111) 222-3333. I need to convert them all to 1112223333. Any Ideas?

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Removing Parenthesis, spaces and dashes from Phone numbers

    Can't you re-format them as general?
    HAve you tried to set general format to all your number? I think i must work for you.
    Last edited by contaminated; 01-14-2010 at 01:51 PM.
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

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

    Re: Removing Parenthesis, spaces and dashes from Phone numbers

    Hi Rminner, and welcome to the forum. Two quick functions that should work, as long as they're all formatted the same:

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

    or

    =MID(A1,2,3)&MID(A1,7,3)&RIGHT(A1,4)

    Hope that helps!
    Last edited by Paul; 01-14-2010 at 01:51 PM.

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

    Re: Removing Parenthesis, spaces and dashes from Phone numbers

    Quote Originally Posted by contaminated View Post
    Can't you re-format them as general?
    If the cells are simply custom formatted to show the symbols, then setting the format back to General would work. However, my guess is that the cells actually contain those characters which need to be removed. Changing the format to General wouldn't do anything in that case.

  5. #5
    Registered User
    Join Date
    01-14-2010
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Removing Parenthesis, spaces and dashes from Phone numbers

    Thanks the substitute function worked perfectly.

  6. #6
    Registered User
    Join Date
    11-15-2012
    Location
    SoCal
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Removing Parenthesis, spaces and dashes from Phone numbers

    Quote Originally Posted by Paul View Post
    Hi Rminner, and welcome to the forum. Two quick functions that should work, as long as they're all formatted the same:

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

    or

    =MID(A1,2,3)&MID(A1,7,3)&RIGHT(A1,4)

    Hope that helps!
    Dear Paul, can you please help me i used this formuls it worked but trying to copy and paste values to have it permanent but it only lets me copy the end result not paste the values??

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Removing Parenthesis, spaces and dashes from Phone numbers

    Quote Originally Posted by realest8 View Post
    Dear Paul, can you please help me i used this formuls it worked but trying to copy and paste values to have it permanent but it only lets me copy the end result not paste the values??
    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    03-03-2016
    Location
    Vadodara
    MS-Off Ver
    10
    Posts
    1

    Lightbulb Re: Removing Parenthesis, spaces and dashes from Phone numbers

    Quote Originally Posted by rminner View Post
    I have a spreadsheet with phone numbers in the format of (111) 222-3333. I need to convert them all to 1112223333. Any Ideas?
    1. First list all numbers in one column. then use text to column under data. (You need to do it separately for all signs i.e - [(, ), -]

    2. Then use Formula =CONCATENATE(B1," ",C1," ",D1)

+ 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