Creating a Time Card with O/T

Gregh13

New Member
Joined
Nov 3, 2019
Messages
3
New to spreadsheets. I have created a bi weekly time card based only on hours worked (no clock in clock out fields). I have 3 columns for hours (the actual time worked per day, O/T per day and Reg Hours per day with the O/T subtracted.

What I can't figure out how to do is create a code so if total hours in one week equals 40 any additional hours worked get added straight to the O/T line.
(mon-Fri =40 so any work on Saturday gets added to O/T total. And if mon-fri only equals say 35 and I work 8 hours on saturday, 5 hours from saturday goes towards the regular 40 total and then other 3 goes to O/T total.

view
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
New to spreadsheets. I have created a bi weekly time card based only on hours worked (no clock in clock out fields). I have 3 columns for hours (the actual time worked per day, O/T per day and Reg Hours per day with the O/T subtracted.

What I can't figure out how to do is create a code so if total hours in one week equals 40 any additional hours worked get added straight to the O/T line.
(mon-Fri =40 so any work on Saturday gets added to O/T total. And if mon-fri only equals say 35 and I work 8 hours on saturday, 5 hours from saturday goes towards the regular 40 total and then other 3 goes to O/T total.

Greg, would you share your spreadsheet formulas? I have been trying to get the same results but, I'm not as savvy with formulas.
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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