Tiered Pricing Formula Using Table

osscie3

Board Regular
Joined
Apr 30, 2014
Messages
70
Hi all, I've got a table that I'm referring to for a tiered pricing formula. I've read through as many threads as I can count but can't seem to find the answer to my issue. My formula is always a thousand off my manual calculation.

My formula is - =SUMPRODUCT(--(J2>C2:C6), J2-C2:C6, E2:E6)

J2 = 430,970

Formula returns - 9,964.55
Manual calculation returns - 10,964,55 (100,000@0.035 (3,500) + 250,000@0.025 (6250) + 80,970@0.015 (1214.55))

Any ideas?

My table is as follows:
A B C D E
MinMaxThresholdFeeDiff. Rate
0100,00000.0350.035
100,001250,000100,0000.025-0.010
250,001500,000250,0000.015-0.010
500,0011,000,000500,0000.005-0.010
1,000,0011,000,0010-0.005

<tbody>
</tbody>
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Does this return what you want?


Excel 2013/2016
ABCDEFG
1MinMaxThresholdFeeDiff. Rate
20100,00000.0350.035430,970
3100,001250,000100,0000.025-0.01
4250,001500,000250,0000.015-0.0110,965
5500,0011,000,000500,0000.005-0.01
61,000,0011,000,0010-0.005
Sheet1
Cell Formulas
RangeFormula
G4=SUMPRODUCT(FREQUENCY(ROW(INDIRECT("1:"&G2)),SUBTOTAL(9,OFFSET(B2,0,0,1+ROW(B2:B5)-ROW(B2)))),D2:D6)
 
Upvote 0
I can't see why it produces 9964.55 either.

I was using

=SUMPRODUCT((J2>C2:C^)*(J2-C2:C6)*(E2:E6)

and that too produces 9964.55

(I really only replied to this so it would subscribe me as I wanted to see what the solution was :) )
 
Upvote 0

Excel 2010
ABCDJ
19,960.50
2430,700.00
3
4MinFeeDiff. Rate
500.0350.035
6100,0000.025-0.01
7250,0000.015-0.01
8500,0000.005-0.01
91,000,0000-0.005
10
11100,000.003,500.00
12150,000.003,750.00
13180,700.002,710.50
14430,700.009,960.50
1a
Cell Formulas
RangeFormula
C1= SUMPRODUCT(--(J2>$A$5:$A$9),J2-$A$5:$A$9,C5:C9)
C5=B5-N(B4)
B11=B5*A11
B12=B6*A12
B13=B7*A13
A12=A7-A6
A13=J2-SUM(A11:A12)
 
Upvote 0
With your layout
=SUMPRODUCT(--(J2>C2:C6),J2-C2:C6,E2:E6) gives 9960.50


Excel 2010
ABCDEIJ
1MinMaxThresholdFeeDiff. Rate
20100,00000.0350.035430700
3100,001250,000100,0000.025-0.01
4250,001500,000250,0000.015-0.01
5500,0011,000,000500,0000.005-0.01
61,000,0011,000,0010-0.005
7
89,960.50
9
10100,000.000.0353,500.00
11150,000.000.0253,750.00
12180,700.000.0152,710.50
13430,700.009,960.50
1b
Cell Formulas
RangeFormula
E8=SUMPRODUCT(--(J2>C2:C6),J2-C2:C6,E2:E6)
B13=SUM(B10:B12)
B10=C3
B11=C4-C3
B12=J2-SUM(B10:B11)
C10=D2
C11=D3
C12=D4
D10=B10*C10
D11=B11*C11
D12=B12*C12
D13=SUM(D10:D12)
 
Last edited:
Upvote 0
Hi all, I've got a table that I'm referring to for a tiered pricing formula. I've read through as many threads as I can count but can't seem to find the answer to my issue. My formula is always a thousand off my manual calculation.

My formula is - =SUMPRODUCT(--(J2>C2:C6), J2-C2:C6, E2:E6)

J2 = 430,970

Formula returns - 9,964.55
Manual calculation returns - 10,964,55 (100,000@0.035 (3,500) + 250,000@0.025 (6250) + 80,970@0.015 (1214.55))

Any ideas?

My table is as follows:
A B C D E
Min
Max
Threshold
Fee
Diff. Rate
100,000
0.035
0.035
100,001
250,000
100,000
0.025
-0.010
250,001
500,000
250,000
0.015
-0.010
500,001
1,000,000
500,000
0.005
-0.010
1,000,001
1,000,001
-0.005

<tbody>
</tbody>

Hi,

You guys are chasing a ghost, there's nothing wrong with the result here, it is Correct at 9964.55.

Highlighted in Bold Red above, OP's Manual calculation is Wrong, it should be (100000 @ .035 = 3500) + (150000 @ .025 = 3750) + (180970 @ .015) = 2714.55, so Total Is 9964.55

However, I would change C6 to 1000000 (instead of 1000001) because anything over 1000000 will be off by .005


Excel 2010
ABCDEFGHIJ
1MinMaxThresholdFeeDiff. Rate
20100,00000.0350.0351000500
3100,001250,000100,0000.025-0.0113500
4250,001500,000250,0000.015-0.01
5500,0011,000,000500,0000.005-0.01
61,000,0011,000,0000-0.005
7
8MinMaxThresholdFeeDiff. Rate
90100,00000.0350.0351000500
10100,001250,000100,0000.025-0.0113500.005
11250,001500,000250,0000.015-0.01
12500,0011,000,000500,0000.005-0.01
131,000,0011,000,0010-0.005
Sheet2
Cell Formulas
RangeFormula
J3=SUMPRODUCT(--(J2>C2:C6), J2-C2:C6, E2:E6)
J10=SUMPRODUCT(--(J9>C9:C13), J9-C9:C13, E9:E13)
 
Last edited:
Upvote 0
I have severe cataracts. My two posts had an incorrect amount in J2.
With J2 = 430,970 formulas show 9,964.55
 
Upvote 0
Hi,

You guys are chasing a ghost, there's nothing wrong with the result here, it is Correct at 9964.55.

Highlighted in Bold Red above, OP's Manual calculation is Wrong, it should be (100000 @ .035 = 3500) + (150000 @ .025 = 3750) + (180970 @ .015) = 2714.55, so Total Is 9964.55

However, I would change C6 to 1000000 (instead of 1000001) because anything over 1000000 will be off by .005

Excel 2010
ABCDEFGHIJ
1MinMaxThresholdFeeDiff. Rate
20100,00000.0350.0351000500
3100,001250,000100,0000.025-0.0113500
4250,001500,000250,0000.015-0.01
5500,0011,000,000500,0000.005-0.01
61,000,0011,000,0000-0.005
7
8MinMaxThresholdFeeDiff. Rate
90100,00000.0350.0351000500
10100,001250,000100,0000.025-0.0113500.005
11250,001500,000250,0000.015-0.01
12500,0011,000,000500,0000.005-0.01
131,000,0011,000,0010-0.005

<colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
J3=SUMPRODUCT(--(J2>C2:C6), J2-C2:C6, E2:E6)
J10=SUMPRODUCT(--(J9>C9:C13), J9-C9:C13, E9:E13)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

You're exactly right. This is why I love this forum. More sets of eyes is better than only mine. It should NOT be 250,000 * 0.025 as 250k is just the threshold. I had a feeling I was manually calculating it wrong but I just couldn't see it. Thanks so much.
 
Upvote 0
You're welcome, I started off trying to dissect your Table and Formula looking for what might have been causing the error, and could not find anything. While verifying numbers step by step, that's when I realized the mistake with your manual calculation..., it's happened to all of us...

Anyway, I still recommend changing C6 (in my sample table) from 1000001 to 1000000
 
Upvote 0

Forum statistics

Threads
1,216,222
Messages
6,129,586
Members
449,520
Latest member
TBFrieds

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