Question

nikb_mt

Board Regular
Joined
Sep 2, 2010
Messages
53
In cell A2 is 44 which represents how many hours I worked that week. 4 hours of that is OT. So I need a formula that will multiply anything over 40 by 18 to get my OT wage. Please help
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
To make the Rate variable as well...

Hours Worked in A2
Wage in A3

=MAX(0,A2-40)*(A3*1.5)
 
Upvote 0
=MAX(0,A2-40)*18 this worked
I don't understand how, but it worked

Max returns the largest of the referenced numbers.
The 2 referenced numbers are 0 and A2-40

If A2 is 40 or less, then A2-40 will be 0 or negative.
So 0 is larger than a negative number, right?
So max returns 0
0*18=0

If A2 is More than 40, then A2-40 = overtime hours.
Any positive number is larger than 0, so max returns that number
Then multiplied by 18


Hope that clears it up.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,337
Members
452,907
Latest member
Roland Deschain

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