View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default [NEWBIE] date/time diff

If A1,B1 are in excel date/time format and C1 in time format

D1 = B1-A1-C
and format D1 to Customformat as below for hours and minutes

Right clickFormat CellsCustomType:
[h]:mm

If this post helps click Yes
---------------
Jacob Skaria


"Jon" wrote:

I would like to create the following formulae:

A1: Start date/time e.g. Thursday 25/06/2009 08:00
B1: End date/time e.g. Thursday 25/06/2009 18:00
C1: Duration of break e.g. 01:00 (1 hour)
D1: B1 - A1 - C1 in hours

Any ideas?