Formula to calculate time into 2nd day

Shazz

Board Regular
Joined
Oct 28, 2010
Messages
136
Hi All,

I want to calculate the number of hours worked on a night shift, so the hours go from say a Friday Night in Saturday Morning, at the moment I am using =(Q18-P18) which works fine within the same day.

Can anyone advise how to adapt the formula to calculate into the following day. Hours needed are as below.

19:00 - 07:00

Thanks ever so much.

Shazz
x
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Its probably safe to assume nobody works for over 24 hours in one shift so you could do:

=Q18-P18+(P18>Q18)
 
Upvote 0
I have another problem, when adding the Hours Worked for each it is not calculating properly,

12:00 + 10:00 + 10:00 + 12:00 is adding up as 22:00 instead of 44:00.

Can anyone help with this too.

Shazz
x

I am putting this in it's own post.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,161
Members
453,021
Latest member
Justyna P

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