ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   format phone numbers with an 800 (https://www.excelbanter.com/excel-discussion-misc-queries/229831-format-phone-numbers-800-a.html)

Wanna Learn

format phone numbers with an 800
 
Hello I have a column formatted as phone number using format-cells-
special-phone number. the problem is if the phone number is an 800 number
the formatting is not right. for example is the number is 800-212-543-6543
it gives me (800212) 543-6543 if the number does not have the 800 then is
correct.

How can I format the same cell so if there is an 800 number to read 800-
123 -123- 1234 or if there is no 800 to read 123- 123 -1234 thanks in
advance

Jim Thomlinson

format phone numbers with an 800
 
Try this custom format...

[9999999999] ###-###-###-####;###-###-####
--
HTH...

Jim Thomlinson


"Wanna Learn" wrote:

Hello I have a column formatted as phone number using format-cells-
special-phone number. the problem is if the phone number is an 800 number
the formatting is not right. for example is the number is 800-212-543-6543
it gives me (800212) 543-6543 if the number does not have the 800 then is
correct.

How can I format the same cell so if there is an 800 number to read 800-
123 -123- 1234 or if there is no 800 to read 123- 123 -1234 thanks in
advance


Conan Kelly

format phone numbers with an 800
 
HUH?!?!? What country are you in? The formatting of your phone numbers
suggests you are in USA/Canada.

800 numbers in USA/Canada essentially have an area code of 800, 866, 877,
888, etc...

Valid 800 numbers...and other phone numbers:
(800) 212-6543...or...800-212-6543
(800) 543-6543...or...800-543-6543
(212) 543-6543...or...212-543-6543

Invalid phone number:
800-212-543-5643

Is there an extention included?...ext. 643?

HTH,

Conan Kelly




"Wanna Learn" wrote in message
...
Hello I have a column formatted as phone number using format-cells-
special-phone number. the problem is if the phone number is an 800
number
the formatting is not right. for example is the number is
800-212-543-6543
it gives me (800212) 543-6543 if the number does not have the 800 then is
correct.

How can I format the same cell so if there is an 800 number to read 800-
123 -123- 1234 or if there is no 800 to read 123- 123 -1234 thanks in
advance





All times are GMT +1. The time now is 10:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com