Top-slicing discounts

inarbeth

Well-known Member
Joined
Apr 8, 2002
Messages
913
Struggling with making Excel do the math on what I hope is a comparatively simple problem. I want to calculate the result after applying discounts that work on successive slices of a price. So in Cell G1, I place the price. The customer is entitled to a discount depending on the price. Up to 5000 there is no discount, between 5000 and 10000 a 5% discount on the excess, between 10000 and 20000, 10% on the excess and above 20000, 15% on the excess.

So if the price were 8500 the discounted price would be 5000 +(3500*0.95) = 8325.
If the price were 22000 then the discounted price would be 5000 + (5000*0.95) + (10000*0.90) +(2000*0.85) = 20450

Ideally I would like to set up a table so that the threshholds are not "hard-coded", i.e. with the thresholds 0, 5000, 10000, 20000 in A1:A4 and the discounts (or discount multipliers) 1, 0.95, 0.90, 0.85 in B1:B4. Tried using SUMIF but can't seem to make it work.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Using A1:A3 for the thresholds and B1:B3 as the rates (no need for the 0 and 100% lines) enter this formula where ever you need the result:

Code:
=IF(G1<=A1,A1,IF(G1<=A2,A1+(G1-A1)*B1,IF(G1<=A3,A1+(A2-A1)*B1+(G1-A2)*B2,A1+(A2-A1)*B1+(A3-A2)*B2+(G1-A3)*B3)))

There may be a fancier way but this gets the job done.

Dave
 
Upvote 0

Forum statistics

Threads
1,215,678
Messages
6,126,176
Members
449,296
Latest member
tinneytwin

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