View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default htm date & time format

I'm not sure what the time difference is between GMT and PST, but
let's say it is 5 hours, then you will need to add/subtract 5/24 to
the formula I gave you.

Hope this helps.

Pete

On Nov 14, 12:36*am, Pete_UK wrote:
Assuming that date/time is in A1, put this formula in B1:

=DATE(LEFT(A1,4),MID(A1,5,2),MID(A1,7,2)) + TIME(MID(A1,9,2),RIGHT
(A1,2),0)

and format the cell using a custom format of "mm/dd/yyyy hh:mm".

Copy down as required.

Hope this helps.

Pete

On Nov 14, 12:25*am, Rob wrote:



I have opened a htm data set in Excel 2003 that contains the date & time as
yyyymmddhhmm (the cell is formatted as general) and need it to display as
mm/dd/yyyy hh:mm.


For example 199704010053 in cell A1 currently displays as 1.99704E+11. *I
would like it to display 04/01/1997 00:53.


I have tried custom formatting but end up with ###... and hovering the mouse
over the cell results in "Negative dates and times are displayed as ####"


What is the correct formula and cell formatting?


The htm data set dates & times are GMT and I need to convert it to PST/PDT. *
Is this possible or would it be a seperate formula?- Hide quoted text -


- Show quoted text -