Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Don Don is offline
external usenet poster
 
Posts: 487
Default Converting Phone Numbers

How do you convert phone numbers in the following format '000/000-0000 to the
excel format of (000)000-0000 without retyping each cell. I change the cells
format to phone numbers with no change in the number.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Converting Phone Numbers

If you want text

=TEXT(SUBSTITUTE(A1,"/","-"),"(000)-000-0000")

if you want number just replace (ctrl + H) and replace / with -
then use the built in formatting for US phone numbers


note that in my example your phone number was in A1, adapt accordingly


--
Regards,

Peo Sjoblom



"don" wrote in message
...
How do you convert phone numbers in the following format '000/000-0000 to
the
excel format of (000)000-0000 without retyping each cell. I change the
cells
format to phone numbers with no change in the number.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Converting Phone Numbers

Oops! Should have tested it

=TEXT((SUBSTITUTE(SUBSTITUTE(A1,"/","-"),"-","")),"(000) 000-0000")

for text


--
Regards,

Peo Sjoblom


"Peo Sjoblom" wrote in message
...
If you want text

=TEXT(SUBSTITUTE(A1,"/","-"),"(000)-000-0000")

if you want number just replace (ctrl + H) and replace / with -
then use the built in formatting for US phone numbers


note that in my example your phone number was in A1, adapt accordingly


--
Regards,

Peo Sjoblom



"don" wrote in message
...
How do you convert phone numbers in the following format '000/000-0000 to
the
excel format of (000)000-0000 without retyping each cell. I change the
cells
format to phone numbers with no change in the number.





  #4   Report Post  
Posted to microsoft.public.excel.misc
Don Don is offline
external usenet poster
 
Posts: 487
Default Converting Phone Numbers

The control + H worked for removing the /.
How do I remove the ' (apostrophe) at the begining of the string of numbers.
Until that is removed, I am not able to reformat.
My knowledge of your =TEXT formula requires more direction. It is above my
knowledge level.

"Peo Sjoblom" wrote:

If you want text

=TEXT(SUBSTITUTE(A1,"/","-"),"(000)-000-0000")

if you want number just replace (ctrl + H) and replace / with -
then use the built in formatting for US phone numbers


note that in my example your phone number was in A1, adapt accordingly


--
Regards,

Peo Sjoblom



"don" wrote in message
...
How do you convert phone numbers in the following format '000/000-0000 to
the
excel format of (000)000-0000 without retyping each cell. I change the
cells
format to phone numbers with no change in the number.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Converting Phone Numbers

First of all, replace all the - with nothing (ctrl + H and put - in the find
what box and leave replace with box empty), then select the column, do
datatext to columns and click finish to remove the apostrophe

finally go into formatcellsnumberspecial and select US phone format


--
Regards,

Peo Sjoblom




"don" wrote in message
...
The control + H worked for removing the /.
How do I remove the ' (apostrophe) at the begining of the string of
numbers.
Until that is removed, I am not able to reformat.
My knowledge of your =TEXT formula requires more direction. It is above
my
knowledge level.

"Peo Sjoblom" wrote:

If you want text

=TEXT(SUBSTITUTE(A1,"/","-"),"(000)-000-0000")

if you want number just replace (ctrl + H) and replace / with -
then use the built in formatting for US phone numbers


note that in my example your phone number was in A1, adapt accordingly


--
Regards,

Peo Sjoblom



"don" wrote in message
...
How do you convert phone numbers in the following format '000/000-0000
to
the
excel format of (000)000-0000 without retyping each cell. I change the
cells
format to phone numbers with no change in the number.








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
Convert phone numbers with dashes in them to just numbers J H Excel Discussion (Misc queries) 2 June 23rd 06 06:56 PM
Convert phone numbers with dashes in them to just numbers J H Excel Discussion (Misc queries) 2 June 23rd 06 02:40 AM
How can I cross reference phone numbers with existing phone numbe. John Excel Discussion (Misc queries) 1 February 11th 05 04:39 PM
Words > Numbers (i.e. Vanity Phone Numbers) function Don Excel Worksheet Functions 1 December 29th 04 06:10 PM
Phone Numbers natei6 Excel Worksheet Functions 6 November 25th 04 02:38 AM


All times are GMT +1. The time now is 04:20 AM.

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"