simple formula help plz

FCI2sue

New Member
Joined
Aug 4, 2015
Messages
13
Hello
Need help with a formula that will return breakdown of weekly hours worked as Regular ( 40 hrs) and OT ( result of hours worked over 40)
But if worked less than 40 hours - then show actual hrs worked
and if no OT wasn't worked, then show a result of '0'
Thanks in advance for your help !

[TABLE="width: 624"]
<colgroup><col width="64" style="width: 48pt;" span="13"> <tbody>[TR]
[TD="width: 576, bgcolor: transparent, colspan: 9"]Sep-18
[/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent"]Reg[/TD]
[TD="width: 64, bgcolor: transparent"]OT[/TD]
[/TR]
[TR]
[TD="bgcolor: #A9D08E"]CEASAR[/TD]
[TD="bgcolor: transparent"]M[/TD]
[TD="bgcolor: transparent"]T[/TD]
[TD="bgcolor: transparent"]W[/TD]
[TD="bgcolor: transparent"]T[/TD]
[TD="bgcolor: transparent"]F[/TD]
[TD="bgcolor: transparent"]S[/TD]
[TD="bgcolor: transparent"]S[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: #D9D9D9"]wk 1[/TD]
[TD="bgcolor: #D9D9D9"]0[/TD]
[TD="bgcolor: #D9D9D9"]0[/TD]
[TD="bgcolor: #D9D9D9"]0[/TD]
[TD="bgcolor: #D9D9D9"]0[/TD]
[TD="bgcolor: #D9D9D9"]0[/TD]
[TD="bgcolor: #D9D9D9"]0[/TD]
[TD="bgcolor: #D9D9D9"]0[/TD]
[TD="bgcolor: transparent"]0[/TD]
[TD="bgcolor: transparent"]9/1 - 9/2[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]wk 2[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"]10.15[/TD]
[TD="bgcolor: transparent"]11.68[/TD]
[TD="bgcolor: transparent"]9.3[/TD]
[TD="bgcolor: transparent"]8.58[/TD]
[TD="bgcolor: transparent"]0[/TD]
[TD="bgcolor: transparent"]39.71[/TD]
[TD="bgcolor: transparent"]9/3 - 9/9[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"]` [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: #D9D9D9"]wk 3[/TD]
[TD="bgcolor: #D9D9D9"] [/TD]
[TD="bgcolor: #D9D9D9"] [/TD]
[TD="bgcolor: #D9D9D9"]10.43[/TD]
[TD="bgcolor: #D9D9D9"]9.68[/TD]
[TD="bgcolor: #D9D9D9"]9.885[/TD]
[TD="bgcolor: #D9D9D9"]9.2[/TD]
[TD="bgcolor: #D9D9D9"] [/TD]
[TD="bgcolor: transparent"]39.195[/TD]
[TD="bgcolor: transparent"]9/10 -9/16[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]wk 4[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"]
[/TD]
[TD="bgcolor: transparent"]0[/TD]
[TD="bgcolor: transparent"]9/17 - 9/23[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: #D9D9D9"]wk 5[/TD]
[TD="bgcolor: #D9D9D9"] [/TD]
[TD="bgcolor: #D9D9D9"] [/TD]
[TD="bgcolor: #D9D9D9"] [/TD]
[TD="bgcolor: #D9D9D9"] [/TD]
[TD="bgcolor: #D9D9D9"] [/TD]
[TD="bgcolor: #D9D9D9"] [/TD]
[TD="bgcolor: #D9D9D9"] [/TD]
[TD="bgcolor: transparent"]0[/TD]
[TD="bgcolor: transparent"]9/24 - 9/30[/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent"] [/TD]
[TD="bgcolor: transparent, align: right"]78.905[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Let's say that the days are in the cells B3-H3.

Then the regular hours would be:
=MIN(SUM(B3:H3),40)

and the overtime hours would be:
=MAX(SUM(B3:H3)-40,0)
 
Upvote 0
You are welcome!
Glad I was able to help.:)
 
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