Volume Based Discounting - Total Cost Formula Question

VTHokie11

New Member
Joined
Oct 26, 2011
Messages
19
Good evening and happy Friday Team,

I've been struggling to come up with a good solution to a volume based discounting calculator I'm trying to build. I need a formula in Cell C3, which calculates the total cost. This formula needs to apply a certain rate against the first 5 Million units; a different rate against the Next 20 Million Units; a different rate against the Next 75 Million Units; so on and so forth. Eventually above 1 Billion Units they will be charged a consistent rate (but all of their usage up until that point will still incur the associated rates of the prior rate tiers).

Unfortunately rate is made up here, no early retirement for me sadly ;-) . Would greatly appreciate if someone could help me with the logic and excel formula to plug into Cell C3 here.

Please let me know if you have any questions or if this ask is unclear. Many thanks in advance and have a great weekend team!

1662765847149.png
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Maybe this
Excel Formula:
=IF(C2<5000001,C2*E6,IF(C2<25000001,C2*E7,IF(C2<100000001,C2*E8,IF(C2<250000001,C2*E9,IF(C2<500000001,C2*E10,IF(C2<1000000001,C2*E11,C2*E12))))))
 
Upvote 0
There are many examples on the forum for Tiered Commissions etc.
The formulas in C2:E2 use named arrays. The array of Brackets data and the array of Rate Differentials are named.
See Formulas Name Manger
- The array of Bracket data is named aB Refers to {0;5000000;25000000;100000000;250000000;500000000;1000000000}
- The array of Rate Differentials is named aR Refers to ={7;-1;-1;-1;-1;-1;-1}
The formula is easier to read.
The table is not required if the formulas in C2:E2 are used.
N.B.
The names are not necessary; it is a personal preference.
The names can be assigned to be applicable to the sheet or to the workbook.
We can determine the numbers by looking at the tier specifications or by reviewing the ranges.
For example with the formula in B2, select B8:B14-B7:B13 and press F9.

Commission2022.xlsm
ABCDE
1Number10,000,000.00
2Total 65,000,000.0065,000,000.0065,000,000.0065,000,000.00
3 " " Arithmetic65,000,000.0065,000,000.00
4
5
6BracketsRates --- Arithmetic ---
7cell b7 is blankBy BracketCumulative
80735,000,000.0035,000,000.00
95,000,000630,000,000.0065,000,000.00
1025,000,00050.0065,000,000.00
11100,000,00040.0065,000,000.00
12250,000,00030.0065,000,000.00
13500,000,00020.0065,000,000.00
141,000,000,00010.0065,000,000.00
151E+308
16
7a
Cell Formulas
RangeFormula
B2B2=SUMPRODUCT(--(B1>A8:A14),B1-A8:A14,B8:B14-B7:B13)
C2C2=SUMPRODUCT(--(B1>aB),B1-aB,aR)
D2D2=SUM(IF(B1>aB,(B1-aB)*aR))
E2E2=SUM((B1>aB)*(B1-aB)*aR)
B3B3=D11
C3C3=SUM(C8:C11)
C8:C14C8=MAX(0,MIN($B$1,A9)-A8)*B8
D8D8=MAX(0,MIN($B$1,A9)-A8)*B8+N(D7)
D9:D14D9=MAX(0,MIN($B$1,A10)-A9)*B9+D8
A15A15=BigNum


Commission2022.xlsm
ABC
17Number1,000,000,000.002,880,000,000.00
18
7a
Cell Formulas
RangeFormula
C17C17=SUM((B17>aB)*(B17-aB)*aR)
 
Last edited:
Upvote 0
A15 is the number as shown. The named information BigNum is =9.99999999999999E+307

The formulas is D2 and E2 work as shown if you have a current version of Excel.

Your profile does not show the version of Excel that you use!
 
Upvote 0
Commission2022.xlsm
ABC
1
2Total Units:10,000,000
3Total Costs:65,000,000
7a
Cell Formulas
RangeFormula
C3C3=SUM((C2>aB)*(C2-aB)*aR)


For details and alternative structures for the formula, see the previous post.
N.B. aB and aR are named arrays of the Bracket information and Rate Differential information as mentioned in previous post.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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