Excel Formula help - please

amityb

New Member
Joined
Sep 7, 2017
Messages
2
I am trying to enter formula's on this bi-weekly time sheet that will only calculated regulars hours up to 40, and OT for all hours over 40. I can get it close, but just can't get it to work correctly. I'm hoping you all can help.

Thanks!

DateWeekdayDept# / Job#Phase CodeLabor CodeStart TimeEnd TimeLength of LunchTotal Hours WorkedReg HoursOver Time HrsVAC PaidSick PaidVAC Unpd Sick UnpdHol-iday DAILY TOTAL HOURS
5/15/2017Mon 8:00 AM7:30 PM0:30:0011:00 0:00
5/16/2017Tue 8:00 AM7:30 PM0:30:0011:00 0:00
5/17/2017Wed 8:00 AM7:30 PM0:30:0011:00 0:00
5/18/2017Thur 8:00 AM7:30 PM0:30:0011:00 0:00
5/19/2017Fri 8:00 AM7:30 PM0:30:0011:00 0:00
5/20/2017Sat 0:00 0:00
5/21/2017Sun 0:00 0:00

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Welcome to the forum.

Is this what you're looking for?

ABCDEFGHIJKLMNOPQ
1DateWeekdayDept# / Job#Phase CodeLabor CodeStart TimeEnd TimeLength of LunchTotal Hours WorkedReg HoursOver Time HrsVAC PaidSick PaidVAC UnpdSick UnpdHol-idayDAILY TOTAL HOURS
25/15/2017Mon8:00 AM7:30 PM0:30:0011:0011011:00
35/16/2017Tue8:00 AM7:30 PM0:30:0011:0011011:00
45/17/2017Wed7:30 AM7:30 PM0:30:0011:3011.5011:30
55/18/2017Thur8:00 AM7:30 PM0:30:0011:006.54.511:00
65/19/2017Fri8:00 AM7:30 PM0:30:0011:0001111:00
75/20/2017Sat0:00000:00
85/21/2017Sun0:00000:00

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
I2=G2-F2-H2+IF(F2>G2,1,0)
J2=MEDIAN(40-SUM($I$1:$I1)*24,I2*24,0)
K2=I2*24-J2
Q2=I2

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Yes. Thank you!! Amity

Welcome to the forum.

Is this what you're looking for?

ABCDEFGHIJKLMNOPQ
1DateWeekdayDept# / Job#Phase CodeLabor CodeStart TimeEnd TimeLength of LunchTotal Hours WorkedReg HoursOver Time HrsVAC PaidSick PaidVAC UnpdSick UnpdHol-idayDAILY TOTAL HOURS
25/15/2017Mon8:00 AM7:30 PM0:30:0011:0011011:00
35/16/2017Tue8:00 AM7:30 PM0:30:0011:0011011:00
45/17/2017Wed7:30 AM7:30 PM0:30:0011:3011.5011:30
55/18/2017Thur8:00 AM7:30 PM0:30:0011:006.54.511:00
65/19/2017Fri8:00 AM7:30 PM0:30:0011:0001111:00
75/20/2017Sat0:00000:00
85/21/2017Sun0:00000:00

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
I2=G2-F2-H2+IF(F2>G2,1,0)
J2=MEDIAN(40-SUM($I$1:$I1)*24,I2*24,0)
K2=I2*24-J2
Q2=I2

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,014
Messages
6,128,273
Members
449,436
Latest member
blaineSpartan

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