Calculating hours "in" and hours "out" two different rates

Teshiburu1988

New Member
Joined
Jun 13, 2009
Messages
2
Afternoon TSF

Its been ages since I reached out for help :(

I am having some issues trying to calculate two different time values for work that my employees work.

There are two rate tables one for in hours and one for out of hours as below

In hours is 0800-1800
Out of hours is 1800-0800

I have tried many different ways to determine how many hours there are in a certain shift but I just cant get it to work when it works one way it breaks another below are some examples of how things need to work out.

Job StartJob FinishIn HoursOut of Hours
08001800100
0700170091
08002000102
22001000210

<tbody>
</tbody>


I just can't seem to see how I would achieve this I have been wracking my brain all weekend, and still cant get any where and google doesn't appear to be turning up any results.

I have found this
Code:

(A2>B2)*MEDIAN(0,B2-1/4,13/24)+MAX(0,MIN(19/24,B2+(A2>B2))-MAX(1/4,A2))</pre>

But cant work out how to change it from 0600-1900 to 0800-1800

Please help :(
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,215,200
Messages
6,123,612
Members
449,109
Latest member
Sebas8956

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