SUM IF / IF & OR statement :)

LaurenHancy

Board Regular
Joined
Aug 5, 2010
Messages
179
Hi Everyone!!!

I am trying to work out a statement using SUMIF and IF & OR.

Cell F23 is no. Months into agreement
Cell F24 is total commission made
Cell F25 is where I want my statement (Commission claw back depending on number of months into the agreement)

If cell F23 is >7 then add full commission amount. into field. If cell F23 is =>7 then add the following statements:

0-6 months = 100% of F24
7 months = 50% of F24
8 months = 40% of F24
9 months = 30% of F24
10 months = 20% of F24
11 months = 10% of F24
12 months = 0 of F24 (Leave at £0.00)

Is there a way to build this into a IF statement?

Thanks so much in advance :)
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
If cell F23 is >7 then add full commission amount. into field. If cell F23 is =>7 then add the following statements:
I am guessing you mean F23 < 7 for your first one.

Try this:
Excel Formula:
=IF(F23<7,1,MAX(0.5-(F23-7)*0.1,0))*F24
 
Upvote 0
Here's one way

=IF(F23<7,G23,CHOOSE(F23-6,50%,40%,30%,20%,10%,0)*G23)
You formula is not working right for values <7 (returns 0 instead of 100% of value) and for values >13 (returns #VALUE error).
 
Upvote 0
You formula is not working right for values <7 (returns 0 instead of 100% of value) and for values >13 (returns #VALUE error).
Yeah, think the issue was as I originally referenced the wrong cell (G23 should have been F24) now fixed :)

Fair enough on the >13 but OP only requested up to 12 ;)
 
Upvote 0
Hi LaurenHancy,

Does this do what you want?

LaurenHancy.xlsx
EF
23Months into agreement10
24Commission made2000
25Claw back400
Sheet1
Cell Formulas
RangeFormula
F25F25=IF(F23<7,F24,((12-MIN(12,F23))/10)*F24)
 
Upvote 0
I think the initial reply I made (up in post 2) should work too.
(You may have missed that one).
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,823
Members
449,470
Latest member
Subhash Chand

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