Nested IF Statement with limit on output value

jb00976

New Member
Joined
Oct 23, 2017
Messages
33
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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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