Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I have a CSV file that was exported by a database. However, when I import this csv to excel, I see that the date/time value seems to have changed to an exponential value. For example, 20060602084140 is converted to 2.00606E+13. 1. Why is this happening? 2. Can I convert 20060602084140 to a regular date / time value? Thanks in advance, -V |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
It's because the value is a VERY long value, without date seperators -
import it as text, then use date serial with MID to reformat it (in a holding column) wrote in message oups.com... Hi, I have a CSV file that was exported by a database. However, when I import this csv to excel, I see that the date/time value seems to have changed to an exponential value. For example, 20060602084140 is converted to 2.00606E+13. 1. Why is this happening? 2. Can I convert 20060602084140 to a regular date / time value? Thanks in advance, -V |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can convert your number to a date/time with the formula:
=date(left(a1,4),mid(a1,5,2),mid(a1,7,2))+time(mid (a1,9,2),mid(a1,11,2),right(a1,2)) -- Regards, Fred wrote in message oups.com... Hi, I have a CSV file that was exported by a database. However, when I import this csv to excel, I see that the date/time value seems to have changed to an exponential value. For example, 20060602084140 is converted to 2.00606E+13. 1. Why is this happening? 2. Can I convert 20060602084140 to a regular date / time value? Thanks in advance, -V |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One more if you can insert a helper column and use a formula:
=--TEXT(A1,"0000\/00\/00 00\:00\:00.000") Format that cell as mm/dd/yyyy hh:mm:ss.000 (or whatever date format you want) wrote: Hi, I have a CSV file that was exported by a database. However, when I import this csv to excel, I see that the date/time value seems to have changed to an exponential value. For example, 20060602084140 is converted to 2.00606E+13. 1. Why is this happening? 2. Can I convert 20060602084140 to a regular date / time value? Thanks in advance, -V -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
unhide menu bar in excel - just disappeared | Setting up and Configuration of Excel | |||
Open Excel 2003 from Windows Explorer | Excel Discussion (Misc queries) | |||
Why if I type in 51570.6213 Excel converts it to 51570.5213999999 | Excel Discussion (Misc queries) | |||
cell format for date/time in same cell excel 2003 | Excel Worksheet Functions | |||
Using Excel converts number to english text | Excel Worksheet Functions |