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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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
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,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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