Cumulative amounts at different threshold rates

controlz

New Member
Joined
Jul 15, 2016
Messages
10
Hi,
There are many ways to calculate what I need to do but I can't seem to finish any route that I've attempted. I'm trying to calculate excise tax rates for gallons of alcohol transferred. The first 30K gallons cost 1.00/gallon, the next 100K (30,001-130,000) cost 0.90/gallon, and anything above costs 0.54/gallon. Can someone help me with my formula. I was going to do the calc per tranche but also do one calc with different rates. Can i get a brainiac to assist? Please help!
1588468338057.png
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Give this a try. Your inputs are in the blue cells. The cumulative gallons are determined, and the total excise taxes due on the cumulative gallons are determined from a single formula. That formula relies on using the difference in rates as one moves from one tier to the next higher, so band rates of 1.00, 0.90, and 0.54 have band rate differences of 1.00, -0.10, and -0.36. You'll see arrays using those differences in the formula. As a check, take November as an example, where the total gallons transferred by then are distributed among the three rate bands, and each band's taxes are determined. The answer is given in the green cell, which matches with the green cell in O4.
UKtax20200428.xlsx
ABCDEFGHIJKLMNOPQ
1Start at 0JanFebMarAprMayJunJulAugSepOctNovDecSum
2Gallons Transferred Total (monthly)15028119621950393291000010000200002000020000200002000020000
3Cumulative gallons015028269904649355822658227582295822115822135822155822175822195822
4Cumulative Excise Taxes0150282699044843.753239.862239.871239.889239.8107239.8123143.9133943.9144743.9155543.9
5Monthly Excise Taxes150281196217853.78396.190009000180001800015904.08108001080010800155543.9
6
7
8Low ThresholdRateRate DiffJanFebMarAprMayJunJulAugSepOctNovDec
90First 300001.001.003000030000
1030000Next 1000000.90-0.1010000090000
11130000everything above0.54-0.364582224743.88
12144743.9
13
Sheet1
Cell Formulas
RangeFormula
E3:P3E3=D3+E2
E4:P4E4=SUMPRODUCT(--(E3>={0;30000;130000}),E3-{0;30000;130000},{1;-0.1;-0.36})
E5:P5E5=E4-D4
Q5Q5=SUM(E5:P5)
Q9:Q11Q9=O9*C9
Q12Q12=SUM(Q9:Q11)
 
Upvote 0
The formula is for the Cumulative amount.
With calculations such as certain taxes, commissions, etc., the rates are tiered relating to specified brackets. Alternative methods of calculation include Boolean logic, if functions, VLookup functions, or SumProduct formulas. Certain calculations such as the Vlookup approach require interim calculations. The SumProduct solution is probably the most concise.
N.B.
1. It is not necessary to use Named Ranges. The heading for the brackets includes [rB] which is the named range for E4:E7
2. If you do not want to have the table on your sheet
a) put the table on another sheet or
b) build the table and convert the ranges to values or
c) build the arrays directly or
d) name the arrays in Name Manager

See Between 2 numbers

T202005a.xlsm
BCDEFG
1T202005a1b
2AmountTax
3150,000.00130,800.00Bracket [rB]RateRate_Delta [rR]
4130,800.000100%100%
530,00090%-10%
6130,00054%-36%
1bb
Cell Formulas
RangeFormula
C3C3=SUMPRODUCT(--(B3>rB),B3-rB,rR)
C4C4=SUMPRODUCT(--(B3>E4:E6),B3-E4:E6,G4:G6)
G4:G6G4=F4-N(F3)
Named Ranges
NameRefers ToCells
'1bb'!rB='1bb'!$E$4:$E$6C3:C4
'1bb'!rL='1bb'!$E$4:$H$6C3:C4
'1bb'!rR='1bb'!$G$4:$G$6C3:C4
 
Upvote 0
I'll add one more option (starting at row 8) if you'd prefer to see the breakdown by month and rate tier. As Dave mentions, the approach is based on cumulative gallons through the month in question. This takes the cumulative gallons and distributes them among the rate tiers and then applies the appropriate rate to that tier for the Cumulative Excise Taxes (row 13). Monthly excise taxes are then determined based on the difference between consecutive monthly cumulative results. In this example, I adjusted the October quantity to give 150000 cumulative gallons for comparison with Dave's post (see red cells). You'll see that all three options produce equivalent results.
Book3
BCDEFGHIJKLMNOP
1Start at 0JanFebMarAprMayJunJulAugSepOctNovDec
2Gallons Transferred Total (monthly)15028119621950393291000010000200002000020000141782000020000
3Cumulative gallons015028269904649355822658227582295822115822135822150000170000190000
4Cumulative Excise Taxes015028.0026990.0044843.7053239.8062239.8071239.8089239.80107239.80123143.88130800.00141600.00152400.00
5Monthly Excise Taxes15028.0011962.0017853.708396.109000.009000.0018000.0018000.0015904.087656.1210800.0010800.00
6
7
8Low Threshold (gallons)RateRate DiffJanFebMarAprMayJunJulAugSepOctNovDec
901.001.00150282699030000300003000030000300003000030000300003000030000
10300000.90-0.1000164932582235822458226582285822100000100000100000100000
111300000.54-0.36000000005822200004000060000
1299999999
13Cumulative Excise Taxes0.0015028.0026990.0044843.7053239.8062239.8071239.8089239.80107239.80123143.88130800.00141600.00152400.00
14Monthly Excise Taxes15028.0011962.0017853.708396.109000.009000.0018000.0018000.0015904.087656.1210800.0010800.00
controlz
Cell Formulas
RangeFormula
E3:P3E3=D3+E2
E4:P4E4=SUMPRODUCT(--(E3>={0;30000;130000}),E3-{0;30000;130000},{1;-0.1;-0.36})
E14:P14,E5:P5E5=E4-D4
E9:P9E9=MIN(E$3,$B10-$B9)
E10:P11E10=MIN(E$3-SUM(E$9:E9),$B11-$B10)
E13:P13E13=SUMPRODUCT($C$9:$C$11,E9:E11)
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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