add to cell only if over a certain number

acncguy

New Member
Joined
Feb 3, 2015
Messages
17
Hello,

I have a spreadsheet for tracking hours worked. Overtime pay is after 40 hours worked for the week (not after 8 hours per day). The spreadsheet records total hours worked each day with the cells below it labeled “Overtime Hours”.

I want the spreadsheet to only record OT hours worked that day after the 40 hours are reached. For example, say someone worked 12 hours Sunday through Friday. In the OT hours cells, Sunday, Monday and Tuesday would have 0 hours OT, and Wednesday would have 8 hours OT, and Thursday and Friday would have 12 hours OT. I will add them up at the end of the cells.

I currently have the following formula, but it will keep a running tally of hours worked over 40 hours, instead of just giving how many hours for that day were OT hours.

=MAX(0,SUM(E11:K11)-40)

Thanks for any help.

- Paul
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try placing this formula in column E, and then copying across all the way to column K:
Code:
=MIN(MAX(0,SUM($E11:E11)-40),E11)
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,602
Members
449,089
Latest member
Motoracer88

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