Tiered Pricing based on usage

Welsh Mark3

Board Regular
Joined
Apr 7, 2014
Messages
164
Office Version
  1. 365
I'm looking to build a formula that calculates pricing based on tiered usage.
Cell F7 will contain usage (a number between 1 and 250,000) Cell f9 is where I would like to insert the formula. The pricing structure I would like to use is laid out below.

Example 1 if usage is 30,000 the output would be 30,000 * 1
Example 2 If usage is 175,000 the output would be (50,000 * 1) + (50,000 * 0.75) + (75,000 * 0.5) = 125,000

Column G Column H Column I Column J
Cost Per API Call < 50,000Cost Per API Call > 50,000 <100,000Cost Per API Call > 100,000 < 200,00Cost Per API Call > 200,000
$1.00$0.75$0.50$0.25

I have tried to read similar posts but they seem slightly different from this request. Your help is appreciated.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
The recommended method is to build a table like this:

Book1
ABCDEFG
1CallsCostLowHighCostDelta
230000$ 30,000.00050000$ 1.00$ 1.00
3175000$ 125,000.0050000100000$ 0.75$ (0.25)
4100000200000$ 0.50$ (0.25)
5200000999999999$ 0.25$ (0.25)
Sheet3
Cell Formulas
RangeFormula
B2:B3B2=SUMPRODUCT((A2-$D$2:$D$5),--(A2>$D$2:$D$5),$G$2:$G$5)
G2:G5G2=F2-N(F1)


There are ways to do it without a table, but it makes the formula more complicated. Let me know if that's of interest.
 
Upvote 0
T202010b.xlsm
CDEFG
1BracketsRate
2Blank -->
301.00
450,0000.75
5100,0000.50
6200,0000.25
7175,000.00125,000.00
8
7a
Cell Formulas
RangeFormula
G7G7=SUMPRODUCT(--(F7>D3:D6),F7-D3:D6,E3:E6-E2:E5)
 
Upvote 0
T202010b.xlsm
CDEFG
1BracketsRate
2Blank -->
301.00
450,0000.75
5100,0000.50
6200,0000.25
7175,000.00125,000.00
8125,000.00
9
7a
Cell Formulas
RangeFormula
G7G7=SUMPRODUCT(--(F7>D3:D6),F7-D3:D6,{1;-0.25;-0.25;-0.25})
G8G8=MIN(F7,50000)*1+MAX(0,MIN(50000,F7-50000))*0.75+MAX(0,MIN(100000,F7-100000))*0.5+MAX(0,F7-200000)*0.25
 
Upvote 0
I may have phrased my requirement wrong - All the formulas work but not in the way I'm looking to implement.
They all seem to work by multiplying the number of calls by the price as per the bracket.

What I'm trying to do is if someone make 75000 calls, the first 50,000 charged at X and the remaining 25000 charged at Y
 
Upvote 0
All the formulas posted do exactly that. For example, your formula of 175,000 reduces to 50,000 * $1.00 + 50,000 * $.75 + 75,000 * $.50 = $125,000, just like you said. If it only looked at the bottom tier it would be 175,000 * $.50 = $87,500. None of the formulas give you that.
 
Upvote 0
I may have phrased my requirement wrong - All the formulas work but not in the way I'm looking to implement.
They all seem to work by multiplying the number of calls by the price as per the bracket.

What I'm trying to do is if someone make 75000 calls, the first 50,000 charged at X and the remaining 25000 charged at Y

Hi Welsh Mark3

Please post an example that you have tested and that did not work with the solutions posted here.
 
Upvote 0
Ok after some testing the formula is working. MIN(F7,50000)*1+MAX(0,MIN(50000,F7-50000))*0.75+MAX(0,MIN(100000,F7-100000))*0.5+MAX(0,F7-200000)*0.25

Is there a way to change the output so the minimum value is $100,000 or greater
 
Upvote 0
Click on the icon below the F(x) below and pasted to cell A1 on a clean sheet.
Review the formulas and ensure that they do what you require.
Use one of these formulas or edit and use one of the prior suggestions.

T202010b.xlsm
ABCDEFG
1BracketsRate
2Blank -->
301.00
450,0000.75
5100,0000.50
6200,0000.25
7100,000.0087,500.00
887,500.00
9
10Minimum100,000100,000.00
11100,000.00
12
7a
Cell Formulas
RangeFormula
G7G7=SUMPRODUCT(--(F7>D3:D6),F7-D3:D6,{1;-0.25;-0.25;-0.25})
G8G8=MIN(F7,50000)*1+MAX(0,MIN(50000,F7-50000))*0.75+MAX(0,MIN(100000,F7-100000))*0.5+MAX(0,F7-200000)*0.25
G10G10=MAX(F10,SUMPRODUCT(--(F7>D3:D6),F7-D3:D6,{1;-0.25;-0.25;-0.25}))
G11G11=MAX(100000,MIN(F7,50000)*1+MAX(0,MIN(50000,F7-50000))*0.75+MAX(0,MIN(100000,F7-100000))*0.5+MAX(0,F7-200000)*0.25)
 
Upvote 0

Forum statistics

Threads
1,215,597
Messages
6,125,741
Members
449,256
Latest member
Gavlaar

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