Schedule

nikb_mt

Board Regular
Joined
Sep 2, 2010
Messages
53
So I am creating my own sheet to keep track of my hours worked. I need a formula so that I can have my OT hours separated out. So basically a formula that will populate a number in a cell for anything over 40 hours.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
=IF(I9>40,I9-40,"") is what I just did, and I just get an error in the formula. The SUMPRODUCT formula just copied the information in Cell I9.
 
Upvote 0
Basically the following cells have the total hours worked for the week: I9, I13, I17, I21, C25. I need a formula that will calculate anything that's over 40 in those cells.

Thanks
 
Upvote 0
=IF(I9>40,I9-40,"") is what I just did, and I just get an error in the formula. The SUMPRODUCT formula just copied the information in Cell I9.

Excel Workbook
ABC
1WeekHoursOT
2137
3240
4339
54422
65433
76488
87411
9832
Sheet1
Excel 2010
Cell Formulas
RangeFormula
C2=IF(B2>40,B2-40,"")
C3=IF(B3>40,B3-40,"")
C4=IF(B4>40,B4-40,"")
C5=IF(B5>40,B5-40,"")
C6=IF(B6>40,B6-40,"")
C7=IF(B7>40,B7-40,"")
C8=IF(B8>40,B8-40,"")
C9=IF(B9>40,B9-40,"")




I just tried this and it works fine for me, I just made up some information.
 
Upvote 0
=IF(I9>40,I9-40,"") is what I just did, and I just get an error in the formula. The SUMPRODUCT formula just copied the information in Cell I9.

=IF(yourcell>40,yourcell-40,"") works fine. Just tested it. Just dont put it into the cell with the hours. Put is anywhere else.
 
Upvote 0
I just tried this =IF(I9>40,I9-40,""), and the cell displays nothing at all. I have to use office calc. I don't know if that matters. I have to be doing something wrong here.
 
Upvote 0
I got it to work. so if I want it to run that formula on multiple cells what would the formula be?
 
Upvote 0
if I9 was less than/equal to 40 it will show nothing at all. if you want it to show a 0, then change the "" to a 0.

Just copy and paste it in the same general location as your have your I9. If you I9 is location in I10, then if you want to check say I13, you paste in I14 and it will change the reference to match. or is you put the =IF in J9 for I9, then put it in J13, for I13, etc. if you move the paste 4 over, it will move the cell references 4 over as well.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,569
Messages
6,179,605
Members
452,928
Latest member
VinceG

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