Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
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((H9<G9),((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   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 857
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((H9<G9),((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???

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
calculate overtime & doubletime shizuka New Users to Excel 1 March 5th 09 09:40 PM
Need Formula to Calculate Time/Overtime Don Lowe Excel Discussion (Misc queries) 2 May 14th 08 03:47 PM
Calculating Regular time, overtime and double time Brian Smith Excel Worksheet Functions 5 November 9th 07 10:32 PM
How can I calculate overtime? Rachel Excel Discussion (Misc queries) 0 September 1st 05 05:28 PM
Could you help me to calculate overtime Svetlana Excel Worksheet Functions 10 August 25th 05 09:00 AM


All times are GMT +1. The time now is 08:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"