IF formula dependent on value being positive or negative

DanShaw92

New Member
Joined
Nov 20, 2019
Messages
3
Hi

Im working on an spreadsheet to calculate wages for employees

Im trying to create a formula to calc their overtime. Ive currently got a column showing how many hours over they have worked, and a column showing how many hours theyve been off that week. then a 3rd column showing the net of these two columns.

normally id just have it calc the net hours times by their hourly rate, but we pay and overtime rate of 1.5hours.

The trouble comes when someone is off for more hours than they work over. lets say someone misses a day and are therefore 8 hours down this week, the formula thinks theyve been off for 8 x 1.5 hours.

Can anyone help me out?

And feedback would be greatly appreciated
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
What id like to have is a formula that determines if the net hours figure is positive or negative and applies the correct rate as applicable
 
Upvote 0
Try something like

=IF(net hours > 0,net hours * hourly rate * 1.5, net hours * hourly rate)
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,255
Members
448,879
Latest member
oksanana

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