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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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.

ab c
4Alpha aum 100,000,000
5Bravo aum 100,000,000
6
7Technology License FeeRate
8 100,000,0000.25%
9 200,000,0000.20%
10 500,000,0000.15%
11 5,000,000,0000.10%
12
13
14Alpha rev
15Index License Fee#VALUE!

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
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,215,461
Messages
6,124,952
Members
449,198
Latest member
MhammadishaqKhan

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