Time Sheet Formula

Simone_1974

New Member
Joined
Apr 22, 2016
Messages
1
Hi there guys. I work for a company that is hectic on time. I need a formula that will work out the following:
1) Hours worked
2) If lunch was taken, but not the full hour, that time does not count as overtime or time due to the employee, that time is gone.
3) if you come back late from lunch, you owe the company that time.

So it will basically have a worksheet for every employee (about 8 of us). Date, Time In, Lunch Out, Lunch In, Time Out, Total hours worked, Time Owed To Company or Time Owed to Employee

Where we get stuck every time is if someone comes back late from lunch or doesn't take the full hour lunch, it stuffs out the formula. How do I do this? Thanks in advance.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Not sure if this is what you're looking for:


Excel 2010
ABCDEFGHI
1DateStart TimeMeal StartMeal EndEnd TimeTotal TimeHrs OwedO.T Eligible Hrs
2Sun
3Mon7:05 AM11:00 AM12:10 PM5:15 PM9.000.178.83<-Long Lunch
4Tue2:05 PM6:05 PM7:00 PM1:00 AM10.00-0.0810.00<-Short Lunch
5Wed7:05 AM11:00 AM12:00 PM5:00 PM8.920.008.92
6Thu7:05 AM11:00 AM12:00 PM5:00 PM8.920.008.92
7Fri7:05 AM11:00 AM12:00 PM5:00 PM8.920.008.92
8Sat
9Totals45.750.1745.58
Sheet1
Cell Formulas
RangeFormula
F3=((E3-B3+(E3))-(D3-C3+(D3)))*24
F9=SUM(F2:F8)
G3=(D3-C3)*24-1
G9=SUMIF(G2:G8,">0")
H3=IF(G3>0,F3-G3,F3)
H9=SUM(H2:H8)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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