CountTime Between Ranges

6467100000

Board Regular
Joined
Oct 7, 2005
Messages
154
Hi,

I an writng an overtime calculator and need some help.

The start time of the shift is in A1 and the finish time in B1.

C1 calculates the total hours worked in a shift using the following
=IF(A1>B1,B1+1-A1,B1-A1)*24

In addition to the above, I need to be able to calulate the number of hours worked between 22:00 and 06:00 so that I can apply a unsociable working payment of £5 per hour.

How do I calculate the number of hours worked between the range of 22:00 and 06:00 between A1 and B1?

Many thanks
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi simply adapt the Timesheet to your requirements, simply unprotect the sheet to see the formulas.

It is already set for the time frame 22:00 to 6:00 just chage the cost rate on the pay sheet

Toonies
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,741
Members
452,940
Latest member
rootytrip

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