Multiple If statements

NYEXCEL1

Board Regular
Joined
Apr 17, 2013
Messages
123
I am trying to build a simple bonus conditions model using the following scenarios. I am having an issue calculating when conditions cross over multiple "bucket" levels using IFS and AND/OR conditions

Current Revenue $98

Bucket 1: $0 - $99 12%
Bucket 2: $100 - $199 8%
Bucket 3: $200 - $300 4%

Based on the above, which the current revenue level< the person would get ($98*12%) as a bonus. What i am trying to figure out is if the current revenue is $150 how can i calculate the first $99 at 12% then the next $51 at 8%. Also looking to the future same question but if current revenue is at $250 what is the formula to calculate over all three buckets?

Appreciate the forums help and thank you in advance.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
For a value in cell A1, create a formula like this:
Rich (BB code):
=(MAX(A1-200,0)*0.04)+(MIN(MAX(A1-100,0),100)*0.08)+(MIN(A1,100)*0.12)
note the three different colors for the three different pieces of the formula.
 
Upvote 0
Solution
Apologize for the post the above code works best.
 
Upvote 0
Hi,

B7 formula requires C1 to be Blank.
C7 formula requires Delta D2:D4
E7 formula is a modification of Post #2 to produce correct results.

Book3.xlsx
ABCDE
1Bucket ExceedingDelta
2012%12%
3998%-4%
41994%-4%
5
6
79811.7611.7611.76
815015.9615.9615.96
925021.9221.9221.92
Commission
Cell Formulas
RangeFormula
B7:B9B7=SUMPRODUCT((A7>A$2:A$4)*(A7-A$2:A$4)*(C$2:C$4-C$1:C$3))
C7:C9C7=SUMPRODUCT((A7>A$2:A$4)*(A7-A$2:A$4)*D$2:D$4)
E7:E9E7=(MAX(A7-199,0)*0.04)+(MIN(MAX(A7-99,0),100)*0.08)+(MIN(A7,99)*0.12)
 
Upvote 0
For a value in cell A1, create a formula like this:
Rich (BB code):
=(MAX(A1-200,0)*0.04)+(MIN(MAX(A1-100,0),100)*0.08)+(MIN(A1,100)*0.12)
note the three different colors for the three different pieces of the formula.
Thank you Joe. Appreciate your help. Sometimes a simple solution is better than a complex one!
 
Upvote 0
Thank you Joe. Appreciate your help. Sometimes a simple solution is better than a complex one!

I Caution, that formula will produce incorrect results, try it using 100, 150, 250

If you want a single formula with no table, use my modified version in E7 in Post #4 instead.
 
Upvote 0
I Caution, that formula will produce incorrect results, try it using 100, 150, 250
Can you produce example of where it will return incorrect results?

Note that they may need to tweak the endpoints a little, as they ended one at 99 and started the next at 100 (not considering the possibility of something like 99.50 and where that should fall).
Whatever it needs to be, you should just be able to tweak those endpoints in those formulas to get what you need, i.e.
Excel Formula:
=(MAX(A1-199,0)*0.04)+(MIN(MAX(A1-99,0),100)*0.08)+(MIN(A1,99)*0.12)
 
Last edited:
Upvote 0
Can you produce example of where it will return incorrect results?

Note that they may need to tweak the endpoints a little, as they ended one at 99 and started the next at 100 (not considering the possibility of something like 99.50 and where that should fall).
Whatever it needs to be, you should just be able to tweak those endpoints in those formulas to get what you need, i.e.
Excel Formula:
=(MAX(A1-199,0)*0.04)+(MIN(MAX(A1-99,0),99)*0.08)+(MIN(A1,99)*0.12)

I already provided the correct version in Post #4, Post #2 will produce incorrect results for anything over 99:

Book3.xlsx
ABC
1Mine in Post #4Joe4 Post #2
29811.7611.76
315015.9616
425021.9222
510011.9612
610112.0412.08
720019.9220
819919.8819.92
Sheet1063
Cell Formulas
RangeFormula
B2:B8B2=(MAX(A2-199,0)*0.04)+(MIN(MAX(A2-99,0),100)*0.08)+(MIN(A2,99)*0.12)
C2:C8C2=(MAX(A2-200,0)*0.04)+(MIN(MAX(A2-100,0),100)*0.08)+(MIN(A2,100)*0.12)
 
Upvote 0
So essentially, we just posted the same formula, with different endpoints, like I said in my last post (substitute "99" for "100" and "199" for "200").
;)

I explained the reason why I did that in my last post (values between 99-100 and 199-200 were not included, so I made an assumption).
In hindsight, I probably should have said that in my first reply.
 
Upvote 0
No, if the endpoints are different, then it's not the same, but that's fine.(y)
and I'm not talking about fractions between 99-100, or 199-200...(anything over 99)...
And I like your formula approach.
 
Upvote 0

Forum statistics

Threads
1,215,275
Messages
6,124,002
Members
449,137
Latest member
abdahsankhan

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