Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jon Jon is offline
external usenet poster
 
Posts: 183
Default [NEWBIE] date/time diff

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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
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?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default [NEWBIE] date/time diff

If you want decimal hours returned, use:
=(b1-a1-c1)*24

Format as General, or a number.

Regards,
Fred.

"Jon" wrote in message
...
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?


  #4   Report Post  
Posted to microsoft.public.excel.misc
Jon Jon is offline
external usenet poster
 
Posts: 183
Default [NEWBIE] date/time diff

I think it was working on Excel 2007 at home, however, at the office where
I'm also using Excel 2007, the value of the formula is being masked with
##########.

"Jacob Skaria" wrote:

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?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default [NEWBIE] date/time diff

Normally one of two things:
1. Your column isn't wide enough. Make it wider.
2. You're trying to display a negative time. With your formula, that would
mean B1 is less than A1. Is it?

Regards,
Fred.

"Fred Smith" wrote in message
...
If you want decimal hours returned, use:
=(b1-a1-c1)*24

Format as General, or a number.

Regards,
Fred.

"Jon" wrote in message
...
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?



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
time diff across DST without VBA? George[_8_] Excel Discussion (Misc queries) 9 November 2nd 08 10:11 PM
date (minus) date = working days diff jjj Excel Discussion (Misc queries) 3 December 6th 05 03:16 PM
Diff. in time justmeisall Excel Worksheet Functions 1 November 11th 04 05:56 PM
Diff. in time justmeisall Excel Worksheet Functions 0 November 11th 04 03:52 PM
Diff. in time justmeisall Excel Worksheet Functions 1 November 11th 04 03:24 PM


All times are GMT +1. The time now is 10:45 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"