Jon von der Heyden
MrExcel MVP, Moderator
- Joined
- Apr 6, 2004
- Messages
- 10,912
- Office Version
- 365
- Platform
- Windows
Hi there
I am struggling to create a formula to calculate the price per transaction.
Each row in this table is a transaction. The cost is calculated based on the cumulative volume for each customer. Price banding as follows:
So for e.g row7 Cust3, the 1st 999 should be charged at £3.12, and then the remaining 586 should be charged at £2.85. The calculation should be based on the cumulative volume and not the transaction volume.
Any help GREATLY appreciated.
I am struggling to create a formula to calculate the price per transaction.
Each row in this table is a transaction. The cost is calculated based on the cumulative volume for each customer. Price banding as follows:
Excel Workbook | ||||
---|---|---|---|---|
A | B | |||
3 | Volume > | Price | ||
4 | - | 3.12 | ||
5 | 1,000 | 2.85 | ||
6 | 5,000 | 2.58 | ||
7 | 10,000 | 2.31 | ||
8 | 20,000 | 2.04 | ||
9 | 35,000 | 1.77 | ||
10 | 50,000 | 1.50 | ||
11 | 65,000 | 1.23 | ||
12 | 80,000 | 0.96 | ||
13 | 100,000 | 0.69 | ||
14 | 125,000 | 0.41 | ||
Prices |
So for e.g row7 Cust3, the 1st 999 should be charged at £3.12, and then the remaining 586 should be charged at £2.85. The calculation should be based on the cumulative volume and not the transaction volume.
Any help GREATLY appreciated.

Book4 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Cust | Volume | Cum | Price | ||
2 | Cust1 | 1654 | 1654 | ? | ||
3 | Cust1 | 1106 | 2760 | |||
4 | Cust1 | 1139 | 3899 | |||
5 | Cust2 | 3878 | 3878 | |||
6 | Cust2 | 1539 | 5417 | |||
7 | Cust3 | 1585 | 1585 | |||
8 | Cust1 | 2852 | 6751 | |||
9 | Cust1 | 1249 | 8000 | |||
10 | Cust1 | 1812 | 9812 | |||
11 | Cust2 | 1795 | 7212 | |||
12 | Cust2 | 2995 | 10207 | |||
13 | Cust3 | 3405 | 4990 | |||
14 | Cust1 | 2037 | 11849 | |||
15 | Cust1 | 3744 | 15593 | |||
16 | Cust1 | 3626 | 19219 | |||
17 | Cust2 | 3696 | 13903 | |||
18 | Cust2 | 1576 | 15479 | |||
19 | Cust3 | 1206 | 6196 | |||
20 | Cust1 | 1782 | 21001 | |||
21 | Cust1 | 1162 | 22163 | |||
22 | Cust1 | 686 | 22849 | |||
23 | Cust2 | 2754 | 18233 | |||
24 | Cust2 | 3288 | 21521 | |||
25 | Cust3 | 3816 | 10012 | |||
26 | Cust1 | 1255 | 24104 | |||
27 | Cust1 | 518 | 24622 | |||
28 | Cust1 | 857 | 25479 | |||
29 | Cust2 | 1068 | 22589 | |||
30 | Cust2 | 1885 | 24474 | |||
Sheet1 |