PC Review


Reply
Thread Tools Rate Thread

How to Calulculate Hrs and Mins between time frames

 
 
Corey
Guest
Posts: n/a
 
      30th May 2006
If i have 2 cells with time values say: A1=7:30AM and B1=3:30PM.

7:30AM - 3:30PM set to NORMAL Hours

3:30PM - 6:30PM set to TIME & HALF Hours

Any time after 6:30PM - 7:29AM to be DOUBLE TIME hours

Then if i set 4 other cells for data input:
A2=( DATE 1) 29/5/2009 Start date. B2=(Date 2) 29/5/2006 Finish date.
A3=(Time) 7:30AM Start Time. B2= (Time) 7:00PM Finish Time.

How can i set 3 Cells say (C1:E1) to display from the above example :
C1=8 hrs (NORMAL TIME)
D1=3hrs (Time & HALF)
E1=2hrs (DOUBLE)

???
 
Reply With Quote
 
 
 
 
Dav
Guest
Posts: n/a
 
      30th May 2006

If your time frames can not last more than 24 hours it becomes much more
straightforward. Hopefully this thread is a good starting point, as once
you have got times to shifts you just multiply them by the appropriate
amount!

http://www.excelforum.com/showthread...ghlight=shifts

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=546611

 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      30th May 2006
Hi Corey

Try
C1 =MIN(8,MOD(B3-A3,1)*24)
D1 =MIN(3,MAX(0,MOD(B3-A3,1)*24-C1))
E1 =MOD(B3-A3,1)*24-C1-D1

The MOD() part of the formula is there to deal with any situations where the end time is on a different day to the start time.
The *24 is to deal with the fact that Excel stores times as fractions of a day (24 hours)


--
Regards

Roger Govier


"Corey" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
If i have 2 cells with time values say: A1=7:30AM and B1=3:30PM.

7:30AM - 3:30PM set to NORMAL Hours

3:30PM - 6:30PM set to TIME & HALF Hours

Any time after 6:30PM - 7:29AM to be DOUBLE TIME hours

Then if i set 4 other cells for data input:
A2=( DATE 1) 29/5/2009 Start date. B2=(Date 2) 29/5/2006 Finish date.
A3=(Time) 7:30AM Start Time. B2= (Time) 7:00PM Finish Time.

How can i set 3 Cells say (C1:E1) to display from the above example :
C1=8 hrs (NORMAL TIME)
D1=3hrs (Time & HALF)
E1=2hrs (DOUBLE)

???
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I subtract time where hh:mm:ss:ff (frames = 30 frames/sec) =?Utf-8?B?S0o3?= Microsoft Excel Misc 7 12th Feb 2010 02:25 PM
Time - 0.25 - 15 mins Mark Solesbury Microsoft Excel Discussion 8 3rd Sep 2007 08:23 PM
Calculation of Hrs and Mins from 2 Time Frames Corey Microsoft Excel Worksheet Functions 6 31st May 2006 05:12 PM
How do I time Hours & mins in excel - Time sheet =?Utf-8?B?SGVsZW4=?= Microsoft Excel Misc 5 17th Sep 2005 11:42 AM
Function for hrs:mins:secs:frames for timecode calculations Richard C. Ferryman Microsoft Excel Misc 1 9th Apr 2004 08:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:45 PM.