excel_caveman
New Member
- Joined
- May 3, 2023
- Messages
- 5
- Office Version
- 365
- Platform
- Windows
Hello, I have found a couple of threads that look like they would help, but they haven't quite got the right answer. I am trying to use SUMPRODUCT (can't use macros etc.) to calculate the price of a contract based on the volume of units sold. The unit price is determined by a cumulative tiered pricing model. As an example, someone purchasing 800 units should be charged (250 x $20) + (250 x $17.5) + (250 x $15) + (50 x $12.5)= $13,750. Table starts in cell A1, so B2 in the formula below is referencing the 250 in the To column, and B11 is where I am entering the volume to be caluclated.
I have used the following, but it does not seem to be working =SUMPRODUCT((B11>{0;B2;B3;B4;B5;B6;B7;B8;B9})*(B11-{0;B2;B3;B4;B5;B6;B7;B8;B9})*{0;C2;C3;C4;C5;C6;C7;C8;C9})
Thanks in advance
From | To | Unit price |
0 | 250 | $20.0 |
251 | 500 | $17.5 |
501 | 750 | $15.0 |
751 | 1,000 | $12.5 |
1,001 | 1,500 | $10.0 |
1,501 | 2,000 | $7.5 |
2,001 | 2,500 | $5.0 |
2,501 | 100,000 | $2.5 |
I have used the following, but it does not seem to be working =SUMPRODUCT((B11>{0;B2;B3;B4;B5;B6;B7;B8;B9})*(B11-{0;B2;B3;B4;B5;B6;B7;B8;B9})*{0;C2;C3;C4;C5;C6;C7;C8;C9})
Thanks in advance