ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Phone with/without area code format (https://www.excelbanter.com/excel-worksheet-functions/156946-phone-without-area-code-format.html)

barnabas

Phone with/without area code format
 
Phone field is text without input mask.
If we type 7 digits, I want it to display as ( ) xxx-xxxx
If we type 10 digits, I want it to display as (xxx) xxx-xxxx


Mark Lincoln

Phone with/without area code format
 
Format|Cells|Special|Phone Number

Mark Lincoln

On Sep 4, 1:08 pm, barnabas
wrote:
Phone field is text without input mask.
If we type 7 digits, I want it to display as ( ) xxx-xxxx
If we type 10 digits, I want it to display as (xxx) xxx-xxxx




Peo Sjoblom

Phone with/without area code format
 
There are no input masks in Excel, try this custom format

[<=9999999]"( ) "###-####;(###) ###-####



--
Regards,

Peo Sjoblom




"barnabas" wrote in message
...
Phone field is text without input mask.
If we type 7 digits, I want it to display as ( ) xxx-xxxx
If we type 10 digits, I want it to display as (xxx) xxx-xxxx





All times are GMT +1. The time now is 01:25 AM.

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