#1   Report Post  
Posted to microsoft.public.excel.misc
srb
 
Posts: n/a
Default Time calcs

If rostered hours are 2300 to 0600.
How can I figure how many of those hours fall between 2000 and 0600.
Any help most appreciated thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default Time calcs

Hi!

Believe it or not, this is very complicated. The only way I know how to get
this to work is by including dates.

A2 = start date/time = 4/4/2006 23:00
B2 = end date/time = 4/5/2006 6:00
D2 = shift start date/time = 4/4/2006 20:00
E2 = shift end date/time = 4/5/2006 6:00

=IF(B2<D2,0,IF(A2E2,0,IF(B2E2,E2,B2)-IF(A2<D2,D2,A2)))/(B2-A2)*(B2-A2)

Format the cell as h:mm for a return of 7:00.

If you want the result as a decimal value:

=IF(B2<D2,0,IF(A2E2,0,IF(B2E2,E2,B2)-IF(A2<D2,D2,A2)))/(B2-A2)*(B2-A2)*24

Format the cell as GENERAL for a return of 7.

Biff

"srb" <u20509@uwe wrote in message news:5e4c761de7da2@uwe...
If rostered hours are 2300 to 0600.
How can I figure how many of those hours fall between 2000 and 0600.
Any help most appreciated thanks.



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
Hot key for time? Dave in Des Moines New Users to Excel 2 March 24th 06 04:31 PM
Hot key for time? Dave in Des Moines Excel Worksheet Functions 2 March 24th 06 04:15 PM
time sheet drop down lists Steve Excel Discussion (Misc queries) 12 March 18th 06 10:30 PM
Entering Times Denise Excel Discussion (Misc queries) 9 November 15th 05 04:57 PM
Formula for a time card skateblade Excel Worksheet Functions 6 November 2nd 05 09:28 PM


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