View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Dan W[_2_] Dan W[_2_] is offline
external usenet poster
 
Posts: 3
Default extract time from excel serial date

Thanks Ron

--

Dan W
(replace _DOT_ and _AT_ with normal email characters "@ . " if mailing
direct)


"Ron Rosenfeld" wrote in message
...
On Mon, 7 Jun 2004 12:39:17 -0600, "Dan W" <Dw6853_AT_msn_DOT_com wrote:

Hi all

Is there a way(VBA or function/formula) to extract the time from a serial
date in excel?

i.e. date in cell is 38140.7291666667 (6/2/2004 5:30 pm)
and want to extract time only

Thanks in advance

DW


With the value in A1, =MOD(A1,1) will extract the fractional part, which

is
the time.


--ron