Nested IF Statement with limit on output value

jb00976

New Member
Joined
Oct 23, 2017
Messages
32
Hi, I have the following formula:
=IF(B3<=100000,0,IF(AND(B3>100000,B3<=250000),E3*0.06%, IF(AND(B3>250000,B3<=1000000), E3*0.1%, IF(AND(B3>1000000,B3<=5000000), E3*0.15%, IF(B3>5000000, E3*0.19%)))))

I want to limit the value it returns to be no greater than 15000, how do I do that.

Thanks
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Here's a way to do it without so many nested IFs:

=MIN(15000,LOOKUP(B3,{0,100001,250001,1000001,5000001},{0,0.06,0.1,0.15,0.19})/100*E3)

If you want to stick with your formula, just put the

=MIN(15000, . . . )

around your existing formula.
 
Upvote 0
Hi,

Good suggestion from Eric.

You can also shorten/simplify your IF statement like this:


Book1
BCDE
10.01
2
325500010
Sheet31
Cell Formulas
RangeFormula
C1=MIN(15000,IF(B3<=100000,0,E3*IF(B3<=250000,0.06%,IF(B3<=1000000,0.1%,IF(B3<=5000000,0.15%,0.19%)))))
 
Upvote 0

Forum statistics

Threads
1,215,509
Messages
6,125,216
Members
449,215
Latest member
texmansru47

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