Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Through a conversion, account numbers have come over as:
10/10/2009. We want them to be 10-10-2009. However, when I use the following formula =LEFT(A109,2) & "-" & MID(A109,4,2) & "-" & RIGHT(A109,4) The formula thinks the numbers (ex 10/10/2009) is a date. Formatting the numbers to text doesn't work either. I tried adding to" ' " in front of the numbers but I'd have to manually do it for every number. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sherry,
The following would work =TEXT(A109,"dd-mm-yyyy") - UK date format =TEXT(A109,"mm-dd-yyyy") - US date format Paul "Sherry" wrote in message ... Through a conversion, account numbers have come over as: 10/10/2009. We want them to be 10-10-2009. However, when I use the following formula =LEFT(A109,2) & "-" & MID(A109,4,2) & "-" & RIGHT(A109,4) The formula thinks the numbers (ex 10/10/2009) is a date. Formatting the numbers to text doesn't work either. I tried adding to" ' " in front of the numbers but I'd have to manually do it for every number. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Have you tried formatting the column that the account numbers are initially
imported into as Text before doing the data import? I believe if you do that, then your formula will work as you think it should. "Sherry" wrote: Through a conversion, account numbers have come over as: 10/10/2009. We want them to be 10-10-2009. However, when I use the following formula =LEFT(A109,2) & "-" & MID(A109,4,2) & "-" & RIGHT(A109,4) The formula thinks the numbers (ex 10/10/2009) is a date. Formatting the numbers to text doesn't work either. I tried adding to" ' " in front of the numbers but I'd have to manually do it for every number. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula to change scientific number to regular number or text | Excel Discussion (Misc queries) | |||
Counting a mixed text/number column based on text in another colum | Excel Discussion (Misc queries) | |||
convert text-format number to number in excel 2000%3f | Excel Discussion (Misc queries) | |||
Why does this fail? =TEXT(RC3,Number)&" / "&TEXT(R32C,Number) | Excel Worksheet Functions | |||
not able to convert text, or graphic number to regular number in e | Excel Worksheet Functions |