Dividing worked shift into one hour time slots

deerxing

New Member
Joined
Mar 18, 2008
Messages
27
I am trying to divde a work shift up into buckets of 1 hour. If an employee clocks into work at 9am and out at 4:15pm, I would like to divide the shifts into 1 hour time slots using a formula (ex. 9am - 10am 1hour, 10am to 11am 1hour and so on. The last 15 minutes of the shift should be represented in the 4pm to 5pm bucket. I am curently using this formula =MAX(MIN(DF3,$I3)-MAX(DE3,$H3),0). It works great except it does not work on shifts ending at midnight, nor does it parce the 15min, 30min or 45min at the end of the shift into the proper bucket.

Any assistance you can provide is appreciated. Thankyou
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,224,506
Messages
6,179,158
Members
452,892
Latest member
yadavagiri

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