Formula for running total until a mark is reached and then restart

celias

New Member
Joined
Oct 1, 2015
Messages
37
Hello, I am looking for an excel formula that does the following:


We have a mark to reach, let's say MARK=12


In column A we have "random" amounts.
In column B, I want a formula that:
- Calculates the running amount in col A and
- If the running total has not reached then MARK then leave the cell empty, otherwise, display that running total, and THEN
- next cell repeats the process but ignoring the cells that were part of a running total previously displayed.


Example:
MARK = 12
Col A Col B
7
4
5 16
1
6
5 12
6
8 14
4
3
4
8 19
... and so on
Can you do this? I have been working on this for quite a few hours but haven't been able to find a formula for this. And it needs to be a formula; no VBA or POwer Query should be involved in a solution for this. Any tip would be very much appreciated. :)
Thank you in advance for your time, knowledge and kindness,
Celia
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Excel 2010
AB
27 
34
4516
51
66
7512
86
9814
104
113
124
13819
Sheet9
Cell Formulas
RangeFormula
B2=IF(SUM($A$2:A2)-SUM($B$1:B1)>=12,SUM($A$2:A2)-SUM($B$1:B1),"")
 
Upvote 0
Cross posted https://www.ozgrid.com/forum/forum/...-total-until-reaching-a-mark-and-then-restart

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,020
Members
449,480
Latest member
yesitisasport

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