#1   Report Post  
Mikey54412
 
Posts: n/a
Default Phone Number Formats

Is there a way to convert an existing phone number format [+1 (###) ###-###]
to this type of format ###-###-#### without rekeying the numbewrs
  #2   Report Post  
bj
 
Posts: n/a
Default

I assume you meant [+1 (###) ###-####]
If this is a text format and you want it an a numerical format
try
=value(mid(A1,6,3)&mid(A1,10,3)&mid(A1,15,4))
and set the custom format as 000-000-0000
You may have to play with the start points in the Mid () I can't tell
whether there are some spaces there
If you want a text output try
=mid(A1,6,3) & "-" & mid(A1,10,3) & "-" & mid(A1,15,4))
with the same comment on starting place.


"Mikey54412" wrote:

Is there a way to convert an existing phone number format [+1 (###) ###-###]
to this type of format ###-###-#### without rekeying the numbewrs

  #3   Report Post  
bj
 
Posts: n/a
Default

I meant to mention you might want to check whether it is aready a number with
custom formating to create the output.

"Mikey54412" wrote:

Is there a way to convert an existing phone number format [+1 (###) ###-###]
to this type of format ###-###-#### without rekeying the numbewrs

  #4   Report Post  
Richard Neville
 
Posts: n/a
Default

Select all the phone numbers. Using the Replace function, "Find" all the
[ ], +, ( ), 1s, and space characters, and replace them with nothing,
leaving you with ### ###-####. As you replace, you will have to find and
replace these characters one at a time except for [+1 (, which occur in
sequence.

Then, you need another hyphen between ### and ###. Go to Format-Cells,
Number tab, and select Custom (last entry on list). In the dialog box to the
right type ###-###-####.

"Mikey54412" wrote in message
...
Is there a way to convert an existing phone number format [+1 (###)
###-###]
to this type of format ###-###-#### without rekeying the numbewrs



  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

Be careful with the 1s.

Maybe getting all the characters at the beginning would be quicker:

Select your range
edit|replace
what: [+1 ( <-- open square bracket, plus, one, spacebar, open paren
with: (leave blank)
replace all



Richard Neville wrote:

Select all the phone numbers. Using the Replace function, "Find" all the
[ ], +, ( ), 1s, and space characters, and replace them with nothing,
leaving you with ### ###-####. As you replace, you will have to find and
replace these characters one at a time except for [+1 (, which occur in
sequence.

Then, you need another hyphen between ### and ###. Go to Format-Cells,
Number tab, and select Custom (last entry on list). In the dialog box to the
right type ###-###-####.

"Mikey54412" wrote in message
...
Is there a way to convert an existing phone number format [+1 (###)
###-###]
to this type of format ###-###-#### without rekeying the numbewrs


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum Number of Cell Formats Jim Allen Excel Discussion (Misc queries) 4 April 19th 05 07:07 PM
Conditional Number Formats AMcCormick Excel Discussion (Misc queries) 1 January 30th 05 11:47 PM
Phone number formats Bill Clark Excel Discussion (Misc queries) 2 January 12th 05 10:51 PM
Phone Dialer Pat Excel Discussion (Misc queries) 5 January 7th 05 06:28 PM
Concatenate two halves of a phone number Harry Macdivitt Excel Worksheet Functions 1 November 19th 04 04:11 PM


All times are GMT +1. The time now is 07:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"