Sum between times

6467100000

Board Regular
Joined
Oct 7, 2005
Messages
154
Hi,

I hope someone can help.

I am building an overtime calculator and I need some help.

Cell A1 has the start time and Cell A2 has the finish time, I am calculating the total hours worked using the following formula which works fine.
=IF(A1>A2,A2+1-A1,A2-A1)*24

Seperatley I need to count the number of hours worked within the hours of 08:00 and 20:00 so that I can calculate overtime a sociable rate and then the number of ours worked between 20:00 and 08:00 to be able to calculate the overtime at a unsociable rate.

Could someone explain how I calcualte the sociable and unsociable hours worked?

Many thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Thats fantastic, thank you.

Also, how would i do the same to count the number of ours between 22:00 and 06:00 as I need to apply a additional £5 per hour payment for hours worked between 22:00 and 06:00.

Many thanks
 
Upvote 0
Excel Workbook
ABCDEF
19:00 PMTotal HrsHrs within 8:00 to 20:00Hrs within 20:00 to 8:00Hrs within 22:00 to 6:00
29:00 AM121118
Sheet
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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