Average cost on a tiered pricing table

littleowl

New Member
Joined
Apr 14, 2024
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Hi All, hope you can help me :)

Can you please help with the formulas to find the average cost a client will pay if they purchase initially let's say 13,000 and then also if this quantity increases/decreases along the way?

Tier 1: from 1 to 5,999 at $10.50
Tier 2: from 6,000 to 7,999 at $10.00
Tier 3: from 8,000 to 9,999 at $9.50
Tier 4: from 10,000 to 12,499 at $9.00
Tier 5: from 12,500 to 14,999 at $8.50
Tier 6: from 15,000 to 19,999 at $8.00
Tier 7: from 20,000 or above at $7.50


Thanks.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
You can try the following. I have not used a MacOS.
The following can be written with SumProduct.
The Lambda may useful if you have a number of rate structures.

N.B. You can copy the post example to a clean sheet. Click below the f(x) in the heading and move to your sheet's cell A1, and paste.

Use Name Manager to Name the Lambda function and put the Lambda information in the Value = area.

Commissions 2024.xlsm
ABCDEFG
1
2
3QuantityAmountAverage010.50
413,000$128,750.009.90386,00010.00
520,000$185,750.009.28758,0009.50
610,0009.00
713,000$128,750.0012,5008.50
820,000$185,750.009.287515,0008.00
920,0007.50
10
2a
Cell Formulas
RangeFormula
C4:C5C4=SUM((B4>$F$3:$F$9)*(B4-$F$3:$F$9)*($G$3:$G$9-$G$2:$G$8))
D4:D5D4=C4/B4
C7:C8C7=GrossP($F$3:$G$9,B7)
D8D8=GrossP_Avg(F3:G9,B8)
Lambda Functions
NameFormula
GrossP=LAMBDA(rngRateData,Quantity,LET(rng, rngRateData, q, Quantity, b, CHOOSECOLS(rng, 1), r, CHOOSECOLS(rng, 2), ro, VSTACK(0, DROP(r, -1)), SUM((q > b) * (q - b) * (r - ro)) ))
GrossP_Avg=LAMBDA(rngRateData,Quantity,LET(rng, rngRateData, q, Quantity, b, CHOOSECOLS(rng, 1), r, CHOOSECOLS(rng, 2), ro, VSTACK(0, DROP(r, -1)), SUM((q > b) * (q - b) * (r - ro))/q ))
 
Upvote 0
The same formula built differently; you can try the version(s) that you prefer.


Cell Formulas
RangeFormula
M2:M39M2=GrossP_Avg($F$3:$G$9,L2)
N2:N39N2=LET(q,L2,b,$F$3:$F$9,r,$G$3:$G$9,ro,VSTACK(0,DROP(r,-1)),SUM((q>b)*(q-b)*(r-ro))/q)
O2:O39O2=LET(q,L2,b,{0;6000;8000;10000;12500;15000;20000},r,{10.5;-0.5;-0.5;-0.5;-0.5;-0.5;-0.5},SUM((q>b)*(q-b)*r)/q)
Lambda Functions
NameFormula
GrossP_Avg=LAMBDA(rngRateData,Quantity,LET(rng, rngRateData, q, Quantity, b, CHOOSECOLS(rng, 1), r, CHOOSECOLS(rng, 2), ro, VSTACK(0, DROP(r, -1)), SUM((q > b) * (q - b) * (r - ro))/q ))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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