Timesheet calculations

djl0525

Well-known Member
Joined
Dec 11, 2004
Messages
1,240
In column F, I have Hours Worked. This number is usually 40, but it could be anywhere from 20-60.

In column G, I need to find how many hours they worked between 37.5 and 40.
If F13 says they worked 39 hours. G13 should return 1.5 (because 39 - 37.5 = 1.5).
If F13 says they worked 40 or more hours, G13 should return 2.5 (because 40 - 37.5 = 2.5).
G13 should never be more than 2.5.

In column H, I need to find how many hours over 40, if any, they worked.
If F13 is 39, H13 should be 0.
If F13 is 42, H13 should be 2.

I've gotten as far as I can with the formula in G13. It's not complete, but I don't know how to finish it.
G13: =IF(AND(F13>37.5;F13<=40);F13-37.5;"no")

Can someone help me with the formula for G13 and H13? Much appreciated in advance!

DJ
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Excel 2010
FGHI
11Regular1.52
12
135037.52.510
14
3b
Cell Formulas
RangeFormula
G13=MIN(F13,37.5)
H13=(F13>37.5)*MIN(2.5,F13-37.5)
I13=(F13>40)*(F13-40)
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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