Pricing by volume tier

BMil8

Board Regular
Joined
Aug 9, 2010
Messages
153
Office Version
  1. 365
I'm stumped on a formula. We have a tiered pricing model based on volume. I'm trying to create a table that breaks the YTD volume into the appropriate tier by month. Basically in the example below, the first 235,000 YTD are charged at a certain price, then 235,001-500,000 at a different price and so on. I'd just like a formula in the highlighted area to place the volume in the appropriate column. Did I give enough of an explanation?



Book9
BCDEFGHI
30235,001500,0012,000,001
4MonthYTD LinksNew by Month235,000500,0002,000,0005,000,000Total
5Jan217,569217,569217,569000217,569
6Feb237,56519,99617,4312,5650019,996
7Mar248,96311,398011,3980011,398
8Apr304,85655,893055,8930055,893
9May385,00080,144080,1440080,144
10Jun499,521114,5210114,52100114,521
11Jul608,976109,4550109,45500109,455
12Aug757,939148,9630126,02422,9390148,963
13Sep1,459,653701,71400701,7140701,714
14Oct3,059,7851,600,132001,275,347324,7851,600,132
15Nov4,148,9641,089,1790001,089,1791,089,179
16Dec6,598,6542,449,6900002,449,6902,449,690
17235,000500,0002,000,0003,863,6546,598,654
Sheet1
Cell Formulas
RangeFormula
F3:H3F3=E4+1
C11C11=C10+109455
C12C12=C11+148963
D5D5=C5
D6:D16D6=C6-C5
I5:I17I5=SUM(E5:H5)
E17:H17E17=SUM(E5:E16)
 
It would help if you would post an example of what your expected output would be.

The solution I gave matched what was in your original post.

But, I think that all you need to do is adjust the values in range E4:H4.

I got the total in column F to match what you said. I think I got Columns G and H to do what you want as well, but I'm not entirely sure.

Book1
BCDEFGHI
4MonthYTD LinksNew by Month23500026499914999995000000Total
5Jan217,569217,569217,569000217,569
6Feb237,56519,99617,4312,5650019,996
7Mar248,96311,398011,3980011,398
8Apr304,85655,893055,8930055,893
9May385,00080,144080,1440080,144
10Jun499,521114,5210114,52100114,521
11Jul608,976109,4550478108,9770109,455
12Aug757,939148,96300148,9630148,963
13Sep1,459,653701,71400701,7140701,714
14Oct3,059,7851,600,13200540,3451,059,7871,600,132
15Nov4,148,9641,089,1790001,089,1791,089,179
16Dec6,598,6542,449,6900002,449,6902,449,690
17235,000264,9991,499,9994,598,6566,598,654
Sheet2
Cell Formulas
RangeFormula
F4F4=(500000-E4)-1
G4G4=2000000-500000-1
C11C11=C10+109455
C12C12=C11+148963
D5D5=C5
D6:D16D6=C6-C5
I5:I17I5=SUM(E5:H5)
E17:H17E17=SUM(E5:E16)


I didn't change the VBA code at all.
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
BMil8's information in posts #1 and #10 is probably incorrect.
The brackets don't usually have gaps.
A formula solution is shown in post #9. An arithmetic solution by tier was also in post #8.
Brackets are probably like
Commissions 2023.xlsm
EFGH
32350005000002000000
4Bracket 1 0-235kBracket 2 235-500kBracket 3 500-2000kBracket 4 2000k & >
2hh


N.B. Previous post showed a Lambda version and formula solutions with the brackets and rates that I added so the calculation could be completed.
This post names the bracket information and the rate differential information. Some columns are hidden

Commissions 2023.xlsm
BCEFGHK
1Pricing cumulative sales
2
32350005000002000000
4MonthYTD LinksBracket 1 0-235kBracket 2 235-500kBracket 3 500-2000kBracket 4 2000k & >Sum
5Jan217,569.00217,569.00   10,878.45
6Feb237,565.0017,431.002,565.00  948.50
7Mar248,963.00 11,398.00  341.94
8Apr304,856.00 55,893.00  1,676.79
9May385,000.00 80,144.00  2,404.32
10Jun499,521.00 114,521.00  3,435.63
11Jul608,976.00 479.00108,976.00 2,193.89
12Aug757,939.00  148,963.00 2,979.26
13Sep1,459,653.00  701,714.00 14,034.28
14Oct3,059,785.00  540,347.001,059,785.0021,404.79
15Nov4,148,964.00   1,089,179.0010,891.79
16Dec6,598,654.00   2,449,690.0024,496.90
17235,000.00265,000.001,500,000.004,598,654.0095,686.54
185%3%2%1%
1911,750.007,950.0030,000.0045,986.54
2hh
Cell Formulas
RangeFormula
E5:H16E5=MAX(MAX(0,MIN($C5-E$3,F$3-E$3))-SUM(E$4:E4),0)
K5:K16K5=SUM((C5>rB)*(C5-rB)*rR)-SUM($J$4:J4)
E17:H17,K17E17=SUM(E5:E16)
E19:H19E19=E17*E18
 
Upvote 0
It would help if you would post an example of what your expected output would be.

The solution I gave matched what was in your original post.

But, I think that all you need to do is adjust the values in range E4:H4.

I got the total in column F to match what you said. I think I got Columns G and H to do what you want as well, but I'm not entirely sure.

Book1
BCDEFGHI
4MonthYTD LinksNew by Month23500026499914999995000000Total
5Jan217,569217,569217,569000217,569
6Feb237,56519,99617,4312,5650019,996
7Mar248,96311,398011,3980011,398
8Apr304,85655,893055,8930055,893
9May385,00080,144080,1440080,144
10Jun499,521114,5210114,52100114,521
11Jul608,976109,4550478108,9770109,455
12Aug757,939148,96300148,9630148,963
13Sep1,459,653701,71400701,7140701,714
14Oct3,059,7851,600,13200540,3451,059,7871,600,132
15Nov4,148,9641,089,1790001,089,1791,089,179
16Dec6,598,6542,449,6900002,449,6902,449,690
17235,000264,9991,499,9994,598,6566,598,654
Sheet2
Cell Formulas
RangeFormula
F4F4=(500000-E4)-1
G4G4=2000000-500000-1
C11C11=C10+109455
C12C12=C11+148963
D5D5=C5
D6:D16D6=C6-C5
I5:I17I5=SUM(E5:H5)
E17:H17E17=SUM(E5:E16)


I didn't change the VBA code at all.
Yes, you answered the question as I asked it. The error was on my side in how I submitted the table. Thanks for the follow up on just changing row 4. Much appreciated.
 
Upvote 0

Forum statistics

Threads
1,215,101
Messages
6,123,095
Members
449,095
Latest member
gwguy

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