Calculating Time Difference

hinkwale73

New Member
Joined
Feb 17, 2022
Messages
3
Office Version
  1. 2010
Hello all,

I need help creating formulas to calculate the time spent on break and the total hours worked on a given day. The total hours worked should be Clock Out Time minus Clock In Time minus Time on Break. Time on Break should be column C minus Column B. Please see excel Time Log picture inserted

Time Log.png

Help rendererd will be greatly appreciated

 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Are those formatted date times? To check use =ISNUMBER(A1) where A1 is one of the date times. What are you proposing to do with people who seem to not ever come back from break?
 
Upvote 0
Yes it is a date time format and I'm trying to calculate the time spent on breaks and the total hours worked each day. There is logic in VBA for people who don't log back in after their breaks and my focus is to calculate the time in between those date time formatted Clock In and Out
 
Upvote 0
Well if they are true date time you just go end date time minus start date time minus break end date time plus break start date time. Date times to excel are just numbers.
 
Upvote 0

Forum statistics

Threads
1,214,413
Messages
6,119,374
Members
448,888
Latest member
Arle8907

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