Timesheet - ST, OT & DT calculation

Meucci98

New Member
Joined
Jan 12, 2015
Messages
18
ABCDEFGHI
DATENAMESTARTBREAKSFINISHTOTAL HRSST HRSOT HRSDT HRS
Fri Nov 17, 2017John8:000:3020:3012:00822
Sat Nov 18, 2017John8:000:3016:308:008

<tbody>
</tbody>

This is a timesheet for union labour, The union agreement states that:

Monday - Friday workers get paid the first 8 hrs at ST, then 2 at OT and everything after that is DT
Saturday & Sunday workers get paid DT

I am looking for a for a formulas for G, H & I such that the date in A is checked first, if Mon - Fri then total hrs in F are split as per G3:I3. If date is Sat or Sun then total hrs in F are DT

Format for columns C:F is time format
Format for columns G:I is number format

Any help would be greatly appreciated

Thanks in advance
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I don't know about time format for G:I, but that's your call. Below gives in hours (number format)

G2: =IF(OR(WEEKDAY(A2)=7,WEEKDAY(A2)=1),0,IF(F2>8,8,F2))

H2:=IF(OR(WEEKDAY(A2)=7,WEEKDAY(A2)=1),0,IF(AND(F2>8,F2<=10),F2-8,IF(AND(F2>8,F2>10),2,)))

I2:=IF(OR(WEEKDAY(A2)=7,WEEKDAY(A2)=1),F2,IF(F2>10,F2-10,))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,820
Members
449,469
Latest member
Kingwi11y

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top