Formula to return a fee

jcdarling

New Member
Joined
Sep 2, 2015
Messages
23
I have a tiered fee schedule and I want to create a formula to return the correct fee - why is my formula not working?

Book2
ABCDEF
1StartEnd%
2$ -$ 500,000.001.00%
3$ 500,000.00$ 1,000,000.000.75%
4$ 1,000,000.00$ 2,500,000.000.50%
5$ 2,500,000.00$ -0.25%
6
7
8BalanceFee should beFormula
9$ 104,916.96$ 1,049.16($5,200.83)=SUMPRODUCT(($A9<=$B$2:$B$5)*($A9>$A$2:$A$5)*($A9-$A$2:$A$5)*$C$2:$C$5)+SUMPRODUCT((($A9>$B$2:$B$5)*($B$2:$B$5-$A$2:$A$5))*$C$2:$C$5)
10$ 2,780,964.40$ 16,952.40$10,000.00
Sheet1
Cell Formulas
RangeFormula
D9:D10D9=SUMPRODUCT(($A9<=$B$2:$B$5)*($A9>$A$2:$A$5)*($A9-$A$2:$A$5)*$C$2:$C$5)+SUMPRODUCT((($A9>$B$2:$B$5)*($B$2:$B$5-$A$2:$A$5))*$C$2:$C$5)
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
That is due to your Finish values matching your following Start values. If you add a penny to the following Start value, it should do just fine.
1694035623196.png
 
Upvote 0
@ jcdarling: Just enter, say, $100,000,000.00 in cell B5 instead of a zero, and your formula will work.
 
Upvote 0
Try this


Book1
ABC
1StartEnd%
205000001.00%
350000010000000.75%
4100000025000000.50%
5250000000.25%
6
7
8BalanceFee should be
9104916.961049.161049.170
102780964.416952.416952.411
Sheet1
Cell Formulas
RangeFormula
C9:C10C9=SUMPRODUCT((A9>$A$2:$A$5)*(A9-$A$2:$A$5)*($C$2:$C$5-N(+$C$1:$C$4)))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,692
Messages
6,126,228
Members
449,303
Latest member
grantrob

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