Calculate price based on amount with different price on different amounts?

behedwin

Active Member
Joined
Dec 10, 2014
Messages
399
I have a sheet with column NAME and AMOUNT

In AMOUNT i define how many users a customer have.
So it could be like this:

NAMEAMOUNT
Customer A10000
Customer B3000

I want to calculate a customers price. And our price model is like this:
For the first 500 users, users pay 1 dollar.
For user 501-3000 users pay 0.75 dollar.
For user 3000-7000 users pay 0.5 dollar
For users 7000 and above users pay 0.25 dollar.

How can i caluclate a users price based on this set of rules?

I am interessted in either splitting the AMOUNT into these sections, so automatically take the first 500 and put in one column and so on.
Or just have a formula that can calculate everything, is this possible?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Assuming your data starts on Cell A1, the PRICE Column header would be in C1 and the C2 would have the following formula:
Excel Formula:
=IF(B2>7000,500*1+2500*0.75+4000*0.5+(B2-7000)*0.25,IF(B2>3000,500*1+2500*0.75+(B2-3000)*0.5,IF(B2>500,500*1+(B2-500)*0.75,B2*1)))
Results were calculated as follows:
1688156589813.png

Re
 
Upvote 0
With older versions, use the SumProduct formula.
With the named arrays, the table is not required.

Use Name Manager and create new names
array of bracket information New aB Value {0;500;3000;7000}
array of rate differential aR Value {1;-0.25;-0.25;-0.25}

Commissions 2023.xlsm
ABCDE
1AmountOlder versions
210,0005,125.005,125.005,125.00
33,0002,375.002,375.002,375.00
4
5Bracket Rate
6
701
85000.75
93,0000.5
107,0000.25
2c
Cell Formulas
RangeFormula
C2:C3C2=SUM((B2>$A$7:$A$10)*(B2-$A$7:$A$10)*($B$7:$B$10-$B$6:$B$9))
D2:D3D2=SUM((B2>aB)*(B2-aB)*aR)
E2:E3E2=SUMPRODUCT(--(B2>aB),(B2-aB),aR)
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,348
Members
452,638
Latest member
Oluwabukunmi

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