Calculate total hours for week based on total time of each day

GodzFire

New Member
Joined
Apr 30, 2018
Messages
20
I have the following table I use to keep track of my work hours:
tcyEOg4.png


I calculated the Total Time column with the following formula (example row 3) which takes the lunch time (D3-C3) and subtracts it from the total In-Out time (E3-B3): =TEXT((E3-B3)-(D3-C3), "h.mm")

This works fine, but I also have to make sure I am under 40 hours per week, so I want to automatically total up the hours as well and have it output in a cell in Column G. I tried using an Autosum, =AUTOSUM(F2:F6), but it comes back with a #NAME ? error.

I'm not sure what I'm doing wrong and feel pretty dumb I can't figure this out. Can anyone assist? Feel free to re-do my formulas or do something different if it's easier/simpler. Thank you very much.
 

Excel 2010
ABCDEFG
1DateInLunch StartLunch EndOutTotal TimeTotal Time(Hrs)
215-Jul-197:42 AM4:25 PM08:438:43
316-Jul-197:40 AM12:20 PM12:30 PM4:50 PM09:0017:43
417-Jul-197:44 AM3:40 PM07:5625:39
518-Jul-197:50 AM12:14 PM12:28 PM4:30 PM08:2634:05
619-Jul-197:50 AM1:55 PM06:0540:10
740:1040:10
8Column G custom number format "[h]:mm"40:00Regular40:00
9Overtime0:10
10Total$22.00$885.50
11
4b
Cell Formulas
RangeFormula
F2=(C2-B2+E2-D2)
F7=SUM(F2:F6)
G2=F2+N(G1)
G8=MIN(E8,G6)
G9=G6-G8
G10=G8*24*D10+G9*24*D10*1.5
E7=F2+F3+F4+F5++F6



E7 and F7 are the same
 
Last edited:
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,223,246
Messages
6,170,999
Members
452,373
Latest member
TimReeks

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