Hi
I need to make a cumulative calculation using the following figures.
Number of transactions
52
71
34
87
96
For the first 100 transactions I will be charged $300, from 101 - 200 it will be $275, and for 201+ it will be $250.
I need to populate the figure in each line so I can subtotal at the end.
Any help would be great.
With your transactions in column A starting in row 2 this formula in column B, starting at row 2, should work:
=(MIN(30000,SUM(A$2:A2)*300)+MAX(0,MIN(27500,(SUM(A$2:A2)-100)*275))+MAX(0,(SUM(A$2:A2)-200)*250))-SUM(B$1:B1)
Maybe this:
"Relax. What is mind? No matter. What is matter? Never mind!"
Your formula gives different results to mine.
I don't want to make judgements, but mine are more correct that yours![]()
So the main question is: what's expected result for Input 101![]()
"Relax. What is mind? No matter. What is matter? Never mind!"
$30,275 - 100 transactions @ $300 + 1 transaction @ $275
However, if they were laid out as two transactions:
100
1
Your formula would correctly calculate the first transactional value at £30,000, but then would put the second at $30,275, because it would add the value of the 1st 100 transactions to the 2nd single transaction.
I must be reading this differently, see this workbook.
If you need any more information, please feel free to ask.
However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
Also
If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.
Place bets now!
Hi
Apologies for not responding yesterday, I got dragged into meetings all day. I got the correct values from Andrew R's initial response, thanks to all for your help and my apologies if my explanation wasn't clear. I guess the word cumulative confused the issue.
Thanks again.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks