Multiple nested if and statement

blankmc

New Member
Joined
Sep 26, 2017
Messages
4
I am using the below formula to try and match values with a given fee percentage.

=IF(C4<b8,c4*c8),if(c4>=B10,C4*C11),IF(AND(C4<b9,c4>C8),C4*C9),IF(AND(C4<b10,c4>C9),C4*C10)

The result is #value !

Thank you for your help.</b10,c4></b9,c4></b8,c4*c8),if(c4>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
What are you trying to accomplish with the two And statements? You can't have two cell references in a statement without some sort of operator to separate the two (C4C8 and C4C9).
 
Upvote 0
Here is the corrected formula I used: =IF(C4<=B8,C4*C8),IF(C4>=B10,C4*C11),IF(AND(C4<=B9,C4>B8),C4*C9),IF(AND(C4<=B10,C4>B9),C4*C10)

I am trying to link an associated percentage (cell c8 thru c11) with a base amount (c4) based on where it falls relative a certain size.

So, if the current base amount (c4) is less than or equal to 100 (b8) the fee is c4 x c8 (the fee .25)
if the base amount is equal to or greater than the last bracket amount (b10) then it is the base amount times c11 (.10)

Then there are two inside amounts

if the base amount is less than or equal to 200 (b9) and greater than 100 (b8) then c4 times c9 (.2)
if the base amount is less than or equal to 500 (b10) and greater than 100 (b9) then c4 times c10 (.15)

Hope the above makes sense...

Truly appreciate your help.
 
Upvote 0
Hope the below may help. the letters a the top are the columns and the numbers on the left are the rows.

[TABLE="width: 446"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]a[/TD]
[TD]b [/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD]Alpha aum[/TD]
[TD] 100,000,000[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD]Bravo aum[/TD]
[TD] 100,000,000[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD]Technology License Fee[/TD]
[TD]Rate[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD] 100,000,000[/TD]
[TD="align: right"]0.25%[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD] 200,000,000[/TD]
[TD="align: right"]0.20%[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[TD] 500,000,000[/TD]
[TD="align: right"]0.15%[/TD]
[/TR]
[TR]
[TD="align: right"]11[/TD]
[TD] 5,000,000,000[/TD]
[TD="align: right"]0.10%[/TD]
[/TR]
[TR]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[TD]Alpha rev[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]15[/TD]
[TD]Index License Fee[/TD]
[TD="align: center"]#VALUE![/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
After multiple tries I finally found the error. below is the correct formula that looks to be working.

=IF(C4<=B8,C4*C8,IF(C4>=B10,C4*C11,IF(AND(C4<=B9,C4>C8),C4*C9,IF(AND(C4<=B10,C4>C9),C4*C10,0))))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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