Home |
Search |
Today's Posts |
#11
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sun, 09 Mar 2008 16:19:57 -0400, Ron Rosenfeld
wrote: =IF(AND(ISNUMBER(-LEFT(A1,11)),ISTEXT(RIGHT(A1,1)),LEN(A1)=12), TEXT(LEFT(A1,11),"00-000000000-")& RIGHT(A1,1),"invalid entry") Better with: =IF(AND(ISNUMBER(-LEFT(A1,11)),ISERR(-RIGHT(A1,1)),LEN(A1)=12), TEXT(LEFT(A1,11),"00-000000000-")& RIGHT(A1,1),"invalid entry") --ron |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is it possible to format a cell to keep alpha characters only? | Excel Discussion (Misc queries) | |||
Custome Format | Excel Discussion (Misc queries) | |||
Alpha Charachters in Format Cells Custom | Excel Worksheet Functions | |||
How do I format a column in alpha order? | New Users to Excel | |||
Custome Number format based on Value | Excel Discussion (Misc queries) |