working & overtime hrs

Trevor3007

Well-known Member
Joined
Jan 26, 2017
Messages
675
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have attempted to solve this myself but could not & hence why I am reaching out to Mr Excel.

Case
Create a time table whereby it would display the hours worked over 8 hrs: -

Below is an example
StartEndNormal Day HoursOverTime
07:00​
16:00​
8​
##############​

As you can see, the overtime col does not display correctly .

Please can some kind ' Mr Excel' person resolve this for me?

Thank you .
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hello, what does this return:

Excel Formula:
=(IF(B2>A2,B2-A2,1-A2+B2))-C2
 
Upvote 0
Hello, what does this return:

Excel Formula:
=(IF(B2>A2,B2-A2,1-A2+B2))-C2
thank you for your help.

unfortunately, i get the same result as per mine
StartEndNormal Day HoursOverTime
07:00​
16:00​
8​
##############​
much appreciated..thanks again.
 
Upvote 0
And what if you manually enter the relevant times and compare them to the original values - does it alway return TRUE?
 
Upvote 0
Try:
Book1
ABCD
1StartEndNormal Day HoursOverTime
27:0016:0081:00
37:0010:0080:00
47:001:00810:00
Sheet2
Cell Formulas
RangeFormula
D2:D4D2=IF(MOD(B2-A2,1)<=C2/24,0,MOD(B2-A2,1)-C2/24)
 
Upvote 0
Try:
Book1
ABCD
1StartEndNormal Day HoursOverTime
27:0016:0081:00
37:0010:0080:00
47:001:00810:00
Sheet2
Cell Formulas
RangeFormula
D2:D4D2=IF(MOD(B2-A2,1)<=C2/24,0,MOD(B2-A2,1)-C2/24)
Thank you soooooooooooooooooo much. that works greeeeeeeeeat:cool:(y)
 
Upvote 0
You're welcome. Thanks for the feedback.
 
Upvote 0
And what if you manually enter the relevant times and compare them to the original values - does it alway return TRUE?
And what if you manually enter the relevant times and compare them to the original values - does it alway return TRUE?
thank you. My issue has now been resolved by AhoyNC.. But I do appreciate your help
 
Upvote 0

Forum statistics

Threads
1,221,442
Messages
6,159,905
Members
451,601
Latest member
terrynelson55

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