Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
A little help please. I have data imported to Excel from a legacy app. Some
DOB is a length of 7, e.g. 1012008 and some DOB is a length of 8, e.g. 11012008. Neither formula following is working for me: =IF( (LEN(B4=8)),(LEFT(B4,2) &"/"& MID(B4,3,2) &"/"& RIGHT(B4,4)), (LEFT(B4,1) &"/"& MID(B4,2,2) &"/"& RIGHT(B4,4)) ) =IF( (LEN(B4=7)), (LEFT(B4,1) &"/"& MID(B4,2,2) &"/"& RIGHT(B4,4)), (LEFT(B4,2) &"/"& MID(B4,3,2) &"/"& RIGHT(B4,4)) ) If I test for a length of eight and the date is 11012008 I get 11/01/2008, which is good. However, if the date is 1012008 I get 10/12/2008, which is not good. If I test for a length of seven and the date is 11012008 I get 1/10/2008, which is not good. However if the date is 1012008 I get 1/01/2008, which is good. It seems I only ever get the "true" formulation. Any thoughts? Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Disable autoformat of "true" and "false" text | Excel Discussion (Misc queries) | |||
=IF(VLOOKUP(C11,Group,2,FALSE)=D11,"True","Not Valid") and =IF(D1 | Excel Worksheet Functions | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
Typing "true" excel 2007 change it to "TRUE" | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |