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
 

Some videos you may like

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.

DanShaw92

New Member
Joined
Nov 20, 2019
Messages
3
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
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,432
Office Version
  1. 365
Platform
  1. Windows
Try something like

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

Watch MrExcel Video

Forum statistics

Threads
1,127,336
Messages
5,624,093
Members
416,011
Latest member
chengkoonwing

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
Top