Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default telephone number format change in Excel

I have telephone numbers that are formatted as (###) ###-####. I need a
formula to change the format to ###-###-####.
Also need the same for telephone numbers that are formatted as # (###)
###-####. Please help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default telephone number format change in Excel

I have telephone numbers that are formatted as (###) ###-####.
I need a formula to change the format to ###-###-####.
Also need the same for telephone numbers that are formatted
as # (###) ###-####.


Give this formula a try...

=SUBSTITUTE(IF(LEFT(F1,1)="(",REPLACE(F1,1,1,""),S UBSTITUTE(F1," (","-")),")
","-")

Rick

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default telephone number format change in Excel

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


"Sherry" wrote:

I have telephone numbers that are formatted as (###) ###-####. I need a
formula to change the format to ###-###-####.
Also need the same for telephone numbers that are formatted as # (###)
###-####. Please help.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 116
Default telephone number format change in Excel

That was very helpful. I accidentally left out one thing... for telephone
numbers that are formatted as "1 (###) ###-####", the formula needs to remove
the "1"1 at the beginning too. Sorry for the additional trouble. Thanks.

"Rick Rothstein (MVP - VB)" wrote:

I have telephone numbers that are formatted as (###) ###-####.
I need a formula to change the format to ###-###-####.
Also need the same for telephone numbers that are formatted
as # (###) ###-####.


Give this formula a try...

=SUBSTITUTE(IF(LEFT(F1,1)="(",REPLACE(F1,1,1,""),S UBSTITUTE(F1," (","-")),")
","-")

Rick


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 116
Default telephone number format change in Excel

That was very helpful. I accidentally left out one thing... for telephone
numbers that are formatted as "1 (###) ###-####", the formula needs to remove
the "1"1 at the beginning too. Sorry for the additional trouble. Thanks.

"Teethless mama" wrote:

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


"Sherry" wrote:

I have telephone numbers that are formatted as (###) ###-####. I need a
formula to change the format to ###-###-####.
Also need the same for telephone numbers that are formatted as # (###)
###-####. Please help.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 116
Default telephone number format change in Excel

That was very helpful. I accidentally left out one thing... for telephone
numbers that are formatted as "1 (###) ###-####", the formula needs to remove
the "1"1 at the beginning too. Sorry for the additional trouble. Thanks.

"Teethless mama" wrote:

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


"Sherry" wrote:

I have telephone numbers that are formatted as (###) ###-####. I need a
formula to change the format to ###-###-####.
Also need the same for telephone numbers that are formatted as # (###)
###-####. Please help.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 116
Default telephone number format change in Excel

How do I make it remove
the "1" at the beginning of the phone number too.

"Teethless mama" wrote:

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


"Sherry" wrote:

I have telephone numbers that are formatted as (###) ###-####. I need a
formula to change the format to ###-###-####.
Also need the same for telephone numbers that are formatted as # (###)
###-####. Please help.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default telephone number format change in Excel

I hope you have not been waiting since June for an answer !! <bg

As your "numbers" are really text values, you can use this formula to
remove the 1<space from the beginning of the phone number (assume it
is in A1):

=RIGHT(A1,LEN(A1)-2)

Hope this helps.

Pete

On Dec 14, 1:00 am, Sherry wrote:
How do I make it remove
the "1" at the beginning of the phone number too.



"Teethless mama" wrote:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," (","-"),") ","-"),"(","")


"Sherry" wrote:


I have telephone numbers that are formatted as (###) ###-####. I need a
formula to change the format to ###-###-####.
Also need the same for telephone numbers that are formatted as # (###)
###-####. Please help. - Hide quoted text -


- Show quoted text -


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
how do i remove telephone number hyphens from a list in Excel? Mediazoo Excel Discussion (Misc queries) 4 November 3rd 05 08:29 PM
is there a template for Excel for a telephone format? template request for telephones Excel Discussion (Misc queries) 2 September 26th 05 03:50 PM
How do I change the default number format in excel? chipster Excel Worksheet Functions 1 May 9th 05 10:14 PM
Format the Cell into a telephone number but using country code Chris Quinn Excel Discussion (Misc queries) 1 January 27th 05 03:51 PM
Telephone number format MarkT Excel Discussion (Misc queries) 6 January 18th 05 10:39 PM


All times are GMT +1. The time now is 11:40 AM.

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

About Us

"It's about Microsoft Excel"