Calculating Incentive bonus

Gref

New Member
Joined
Dec 20, 2012
Messages
19
I have a situation where I am using this formula to calculate a 12% incentive bonus. =IF(C4="NAME",SUM(I4+G4+J4)*0.12,"")
The problem is I do not want to add cell J4 unless it is a negative number. Presently I am manually changing the formula if J4 is a positive number to =IF(C4="NAME",SUM(I4+G4)*0.12,"")
Don't know if this needs to be some kind of nested if function. Any help would be greatly appreciated. Thanks.
 
Last edited:

Some videos you may like

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

starl

Administrator
Joined
Aug 16, 2002
Messages
5,969
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
you can put the IF statement inside to handle just J4
Code:
=IF(C4="NAME",SUM(I4+G4+IF(J4<0,J4,0))*0.12,"")
 

Dave Patton

Well-known Member
Joined
Feb 15, 2002
Messages
4,561
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
=if(c4="name",sum(i4+g4+min(j4,0))*0.12,"")
 

starl

Administrator
Joined
Aug 16, 2002
Messages
5,969
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
  2. MacOS
I like Dave's solution better :)
I didn't think of using MIN. Good idea
 

Watch MrExcel Video

Forum statistics

Threads
1,122,206
Messages
5,594,833
Members
413,943
Latest member
Dhornsby21

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