Creating Formulas for timesheets

Numbers Grrl

New Member
Joined
Sep 14, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi!
I am trying to create a timesheet with formulas to count 3 things. Total hours worked, regular hours worked (any hours up to 8) and overtime hours (over 8 hours).
I am having trouble with the formula for counting anything between 0-8 hours from my total hours worked. Can someone help me please?

Clock in 8:00am
Clock out Lunch 12:30PM
Clock in Lunch 1:00PM
Clock out 5:00pm

Total hours 8:30
Regular hours 8:00
Overtime hours .30

After I have the hours can you help me with a formula to convert the hours into decimals?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
This shows the calculations for time values, and also for decimal hours.

$scratch.xlsm
ABC
1Clock in8:00 AM8:00 AM
2clock out lunch12:30 PM12:30 PM
3Clock in lunch1:00 PM1:00 PM
4Clock out5:00 PM5:00 PM
5
6Using time formatSame thing in decimal
7Total Hours8:308.5
8Regular Hours8:008.0
9Overtime hours0:300.5
Time Sheet
Cell Formulas
RangeFormula
B7B7=B$2-B$1+B$4-B$3
C7C7=(C$2-C$1+C$4-C$3)*24
B8B8=MIN(TIMEVALUE("8:00"),B7)
C8C8=MIN(8,C7)
B9:C9B9=MAX(0,B7-B8)
 
Upvote 0

Forum statistics

Threads
1,224,774
Messages
6,180,879
Members
453,003
Latest member
SalihZekiKoni

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