# Calculating Incentive bonus

#### Gref

##### New Member
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:

### Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

#### starl

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
=if(c4="name",sum(i4+g4+min(j4,0))*0.12,"")

#### Gref

##### New Member
That works great. Thanks

#### starl

I like Dave's solution better
I didn't think of using MIN. Good idea

Replies
9
Views
376
Replies
4
Views
148
Replies
2
Views
210
Replies
10
Views
470
Replies
6
Views
441

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,891
Messages
5,834,263
Members
430,273
Latest member
Windrunner

### 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.

### Which adblocker are you using?

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

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