A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Calculate Overtime double time



 
 
Thread Tools Display Modes
  #1  
Old March 5th, 2009, 08:38 PM posted to microsoft.public.excel.newusers
shizuka
external usenet poster
 
Posts: 2
Default Calculate Overtime double time

Hi...
I am having a hard time calculating over and double time.
I am making a list and i have this columns:

Start time Finish Time Reg time Overtime Double time Total hrs
8 AM 7.30 PM

To calculate the regular time I have used this formula:
=IF(((H9-G9)*24)8,8,(H9-G9)*24)

To Overtime
=IF((H9-G9)*248,(H9-G9)*24-8,0)

To total Hrs
=IF((OR(H9="",G9="")),0,IF((H9G9),((H9-G9)*24)+24,(H9-G9)*24))

And I am having trouble doing the Double time...
And I think the 3 formulas I have used aren't correct, because Regular time
cannot be more than 8h, and overtime can not be more than 4hrs... the rest
goes to double time...
Can you please help me???

  #2  
Old March 6th, 2009, 02:02 AM posted to microsoft.public.excel.newusers
Shane Devenshire
external usenet poster
 
Posts: 845
Default Calculate Overtime double time

Hi,

Let's deal with the regular time first - here is a shorter formula:

=MIN(24*(H9-G9),8)

Overtime:

=MIN(MAX((H9-G9)*24-8,0),4)

Double time:

=MAX(24*(H9-G9)-12,0)

Total:

=SUM(Regular,OT,DoubleTime)

Where Regular,OT,DoubleTime just represent the cells containing the above
three formulas.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"shizuka" wrote:

Hi...
I am having a hard time calculating over and double time.
I am making a list and i have this columns:

Start time Finish Time Reg time Overtime Double time Total hrs
8 AM 7.30 PM

To calculate the regular time I have used this formula:
=IF(((H9-G9)*24)8,8,(H9-G9)*24)

To Overtime
=IF((H9-G9)*248,(H9-G9)*24-8,0)

To total Hrs
=IF((OR(H9="",G9="")),0,IF((H9G9),((H9-G9)*24)+24,(H9-G9)*24))

And I am having trouble doing the Double time...
And I think the 3 formulas I have used aren't correct, because Regular time
cannot be more than 8h, and overtime can not be more than 4hrs... the rest
goes to double time...
Can you please help me???

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.