Hi, I have a similar issue but cannot get the final formula adopted onto my scheme...
my comms structure has a threshold where no commission is paid, see below...
0-40000 - ZERO%
40001-100000 - 20%
100001-200000 - 25%
200001-300000 - 30%
300001-350000 - 40%
350001+ - 50%
E.G. if the sales were 250,000, the final figure would be:
40001-100000 = 12000
100000-200000 = 25000
200001-250000 = 15000
TOTAL 52,000
The field in question is F23 - any suggestions???
Many thanks in advance!
Create in A1:C7 on a sheet called Admin...
<table style="width: 164pt; border-collapse: collapse;" width="219" border="0" cellpadding="0" cellspacing="0"><colgroup><col style="width: 45pt;" width="60"><col style="width: 48pt;" width="64"><col style="width: 71pt;" width="95"></colgroup><tbody><tr style="height: 13.2pt;" height="18"><td style="border: 0.5pt solid windowtext; background-color: transparent; width: 45pt; height: 13.2pt;" class="xl63" width="60" height="18">
threshold</td><td style="border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; background-color: transparent; width: 48pt;" class="xl64" width="64">
rate</td><td style="border-width: 0.5pt 0.5pt 0.5pt medium; border-style: solid solid solid none; border-color: windowtext; background-color: transparent; width: 71pt;" class="xl63" width="95">
differential rate</td></tr><tr style="height: 13.2pt;" height="18"><td style="border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background-color: transparent; height: 13.2pt;" class="xl65" align="right" height="18">
0</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl66" align="right">
0.00%</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl65" align="right">
0</td></tr><tr style="height: 13.2pt;" height="18"><td style="border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background-color: transparent; height: 13.2pt;" class="xl65" align="right" height="18">
40000</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl66" align="right">
20.00%</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl65" align="right">
0.2</td></tr><tr style="height: 13.2pt;" height="18"><td style="border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background-color: transparent; height: 13.2pt;" class="xl65" align="right" height="18">
100000</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl66" align="right">
25.00%</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl65" align="right">
0.05</td></tr><tr style="height: 13.2pt;" height="18"><td style="border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background-color: transparent; height: 13.2pt;" class="xl65" align="right" height="18">
200000</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl67" align="right">
30%</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl65" align="right">
0.05</td></tr><tr style="height: 13.2pt;" height="18"><td style="border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background-color: transparent; height: 13.2pt;" class="xl65" align="right" height="18">
300000</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl67" align="right">
40%</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl65" align="right">
0.1</td></tr><tr style="height: 13.2pt;" height="18"><td style="border-width: medium 0.5pt 0.5pt; border-style: none solid solid; border-color: windowtext; background-color: transparent; height: 13.2pt;" class="xl65" align="right" height="18">
350000</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl67" align="right">
50%</td><td style="border-width: medium 0.5pt 0.5pt medium; border-style: none solid solid none; border-color: windowtext; background-color: transparent;" class="xl65" align="right">
0.1</td></tr></tbody></table>
Name A2:A7 ThresholdValues, C2:C7 DiffRates using the Name Box.
C2, copy down:
=B2-N(B1)
F2: 250,000
G2:
=SUMPRODUCT(--(F2>ThresholdValues), (F2-ThresholdValues), DiffRates)