Income-Tax like graduated pricing (kinda)

inquisitor

New Member
Joined
Jan 15, 2012
Messages
15
Greetings,

I can find information about how to build a formula to calculate income tax, but I can't seem to get them to work for my use case, which is admittedly a little different. Let's say I have a price chart:

FromToPrice Ea
01000200
1001500050
50011000045
100012500040
250015000038
5000110000036
10000125000035

<tbody>
</tbody>

The way I'd like this to work is every unit up to 1000 costs 200 each. Every unit beyond that up to 5000 costs 50 each. Every unit beyond 5000 up to 10,000 costs 45 each. And so on. A few examples to make this clear:

500 units should cost 100,000 (500x200).
1000 units should cost 200,000 (1000x200).
2000 units should cost 250,000 (1000x200 + 1000x50).
7500 units should cost 512,500 (1000x200 + 4000x50 + 2500x45).

What's the most efficient way to solve this problem with a formula? If not the most efficient, what's a pragmatic way to do it? Appreciate any help/guidance.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
With a formula you can try like this


Book1
ABC
1FromPrice Ea
20200
30100050
41001500045
5500110000140
6100012500038
7250015000036
85000110000035
9100001250000
10
11
12500100,000
131000200,000
142000250,000
157500512,500
16
Sheet1
Cell Formulas
RangeFormula
B12{=SUM(IF(IF(A$12>=B3:B9,B3:B9-B2:B8,$A$12-B2:B8)>0,IF(A$12>=B3:B9,B3:B9-B2:B8,$A$12-B2:B8),0)*C2:C8)}
B13{=SUM(IF(IF(A$13>=B3:B9,B3:B9-B2:B8,$A$13-B2:B8)>0,IF(A$13>=B3:B9,B3:B9-B2:B8,$A$13-B2:B8),0)*C2:C8)}
B14{=SUM(IF(IF(A$14>=B3:B9,B3:B9-B2:B8,$A$14-B2:B8)>0,IF(A$14>=B3:B9,B3:B9-B2:B8,$A$14-B2:B8),0)*C2:C8)}
B15{=SUM(IF(IF(A$15>=B3:B9,B3:B9-B2:B8,$A$15-B2:B8)>0,IF(A$15>=B3:B9,B3:B9-B2:B8,$A$15-B2:B8),0)*C2:C8)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
An alternative to the above...


Book1
ABC
1FromtoPrice
2
30200
40100050
51001500045
6500110000140
7100012500038
8250015000036
95000110000035
10100001250000
11
12
13500100000
141000200000
152000250000
167500512500
Sheet1
Cell Formulas
RangeFormula
B13=SUMPRODUCT(--(A13>B$3:B$10),A13-B$3:B$10,C$3:C$10-C$2:C$9)
B14=SUMPRODUCT(--(A14>B$3:B$10),A14-B$3:B$10,C$3:C$10-C$2:C$9)
B15=SUMPRODUCT(--(A15>B$3:B$10),A15-B$3:B$10,C$3:C$10-C$2:C$9)
B16=SUMPRODUCT(--(A16>B$3:B$10),A16-B$3:B$10,C$3:C$10-C$2:C$9)
 
Upvote 0

Excel 2010
ABCD
1Brackets
2VolumePriceDiff
30200200
41,00050-150
55,00045-5
610,00040-5
725,00038-2
850,00036-2
9100,00035-1
10250,000
11
12
13500100,000.00
141000200,000.00
152500009,225,000.00
4dd
Cell Formulas
RangeFormula
D3=C3-N(C2)
B13=SUMPRODUCT(--(A13>B$3:B$9),A13-B$3:B$9,$D$3:$D$9)
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,233
Members
449,092
Latest member
SCleaveland

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