Calculating Incentive bonus

Gref

New Member
Joined
Dec 20, 2012
Messages
21
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

Administrator
Joined
Aug 16, 2002
Messages
6,001
Office Version
  1. 365
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
5,194
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
6,001
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I like Dave's solution better :)
I didn't think of using MIN. Good idea
 
Master Excel Bundle

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.

Forum statistics

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