Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Cedric
 
Posts: n/a
Default Format serial date and time

I have been trying to format a serial date to the format yyyy/mm/dd 00;00 am
An example of the text is 200501090932. The time is in military time. I have
tried the text ot columns but my string is too long. Any help will be greatly
appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Barb Reinhardt
 
Posts: n/a
Default Format serial date and time

The serial date in EXCEL for the string you gave is 38361.40.

I converted it using the following equation
=DATE(LEFT(A1,4),MONTH(MID(A1,5,2)),DAY(MID(A1,7,2 )))+TIME(MID(A1,9,2),MID(A1,11,2),)

where A1 contained the value 200501090932.



"Cedric" wrote in message
...
I have been trying to format a serial date to the format yyyy/mm/dd 00;00
am
An example of the text is 200501090932. The time is in military time. I
have
tried the text ot columns but my string is too long. Any help will be
greatly
appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Format serial date and time

Another way

=--TEXT(TEXT(LEFT(A1,8),"0000\-00\-00"),"dd/mm/yyyy")--TEXT(TEXT(RIGHT(A1,4)
,"00\:00"),"hh:mm")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Barb Reinhardt" wrote in message
...
The serial date in EXCEL for the string you gave is 38361.40.

I converted it using the following equation

=DATE(LEFT(A1,4),MONTH(MID(A1,5,2)),DAY(MID(A1,7,2 )))+TIME(MID(A1,9,2),MID(A
1,11,2),)

where A1 contained the value 200501090932.



"Cedric" wrote in message
...
I have been trying to format a serial date to the format yyyy/mm/dd 00;00
am
An example of the text is 200501090932. The time is in military time. I
have
tried the text ot columns but my string is too long. Any help will be
greatly
appreciated.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Date & Time format MSwan1 Excel Worksheet Functions 3 October 18th 05 08:11 PM
Imported Date & Time format with calcs. managed in excel from imrp Todd F. Excel Worksheet Functions 0 July 8th 05 09:03 PM
how do I format cells to change date and time to just date bondam Excel Discussion (Misc queries) 3 July 3rd 05 01:10 PM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM
How do I format column containing date and time to only show the . ColoradoKid Excel Discussion (Misc queries) 5 December 18th 04 05:25 PM


All times are GMT +1. The time now is 01:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"