View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default extract time from excel serial date

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