Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to format a range of cells not to except dashes (-) ie. when
entering phone numbers 123-123-1234 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Format is a display function only, it doesn't affect how entries are
parsed (I assume you mean "accept"). You can use validation. Select your range (I'll assume that A1 is the active cell). Choose Data/Validation/Allow:Custom with the formula =ISERR(FIND("-",A1)) In article , "kclover" wrote: I am trying to format a range of cells not to except dashes (-) ie. when entering phone numbers 123-123-1234 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
Using cell A1 Set the numbe format to Special and select Phone Number Then: DataData Validation Allow: Custom Formula: =ISERROR(FIND("-",A1)) If length is an issue: Use this validation formula instead: =AND(LEN(A1)=10,ISERROR(FIND("-",A1))) Does that give you something to work with? *********** Regards, Ron "kclover" wrote: I am trying to format a range of cells not to except dashes (-) ie. when entering phone numbers 123-123-1234 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I find and format specific cells automatically in Excel? | Excel Worksheet Functions | |||
Number format exactly the same, displays differently in some cells | Excel Discussion (Misc queries) | |||
Make Alignment options under format cells available as shortcut | Excel Discussion (Misc queries) | |||
How do I format cells and enter data to be valued for TIME and th. | Excel Worksheet Functions | |||
How do I get brackets in format cells accounting? | Excel Discussion (Misc queries) |