Calculate Regular Hours then Overtime

MrFlyer

New Member
Joined
Aug 15, 2018
Messages
7
Good Afternoon Everyone,
I am currently working on a time sheet to track an employee's time per each day of the month. I am currently stuck on figuring out how to calculate the regular hours for the week then the Overtime for the week. Example employee works 8.5 hrs on monday, 8 hrs on tuesday through thursday and 5 hrs on friday. i would like it to show 37.5 hours for the Total Regular hrs and 0 for Total Overtime. Every attempt I have done ends up in a circular reference. Is there a way to work around the Circular reference or am i stuck with the circular reference?

Time Sheet Example.xlsx
ABCDEFGH
1Day of WeekTime InLunch OutLunch InTime OutOut of OfficeIn Office HrsOvertime Hours
2Mon7:00 AM3:30 PM8.000.50
3Tue7:00 AM3:00 PM8.000.00
4Wed7:00 AM3:00 PM8.000.00
5Thu7:00 AM3:00 PM8.000.00
6Fri7:00 AM12:00 PM5.000.00
7Week 1 Total:37.000.50
Sheet1
Cell Formulas
RangeFormula
G2:G6G2=IF((((C2-B2)+(E2-D2-F2))*24)>8,8,((C2-B2)+(E2-D2-F2))*24)
H2:H6H2=IF(((C2-B2)+(E2-D2-F2))*24>8, ((C2-B2)+(E2-D2))*24-8,0)
G7:H7G7=SUM(G2:G6)
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
OT hours by day is tough. All OT hours are, technically, the last hours worked in the week.

This formula would show OT hours by day after 40 have been worked, (H2 would not need a formula because it's impossible to work 40 hours on the first day.)
H3: =IF(SUM(G$2:G3)>40,SUM(G$2:G3)-40-SUM(H$2:H2),0) [drag it down]

If the OT Hours column for each day must be maintained I'd make it a Variance column simply showing +/- compared to an 8 hour day. The sum for the column would display either 0 or a positive number.
 
Upvote 0
OT hours by day is tough. All OT hours are, technically, the last hours worked in the week.

This formula would show OT hours by day after 40 have been worked, (H2 would not need a formula because it's impossible to work 40 hours on the first day.)
H3: =IF(SUM(G$2:G3)>40,SUM(G$2:G3)-40-SUM(H$2:H2),0) [drag it down]

If the OT Hours column for each day must be maintained I'd make it a Variance column simply showing +/- compared to an 8 hour day. The sum for the column would display either 0 or a positive number.
It is mainly the Total I'm concerned with because I agree per day is difficult.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,620
Latest member
dsubash

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