Hello,
I am trying to figure out a formula that will give the the running total sum of a list of data for descending dates, but stop once the running total (of 'X') hits a certain number (say 100).
Input(Dates in M/D/YY):
<tbody>
</tbody>
In this example, a would return the sum of 50+32+37=119 (the first instance of the running total being greater than 100) and the corresponding running total of y which was 2+4+6=12
output:
<tbody>
</tbody>
I've tried complex array formulas and a variety of lookups, but can't seem to crack this one. Any help would be greatly appreciated.
Thanks!
~Ghrain22
I am trying to figure out a formula that will give the the running total sum of a list of data for descending dates, but stop once the running total (of 'X') hits a certain number (say 100).
Input(Dates in M/D/YY):
ID | Date | X | Y | |
a | 4/1/16 | 50 | 2 | |
a | 3/1/16 | 32 | 4 | |
a | 2/1/16 | 37 | 6 | |
a | 1/1/16 | 25 | 8 | |
b | 4/1/16 | 17 | 2 | |
b | 3/1/16 | 88 | 4 | |
b | 2/1/16 | 52 | 6 | |
b | 1/1/16 | 17 | 8 | |
<tbody>
</tbody>
In this example, a would return the sum of 50+32+37=119 (the first instance of the running total being greater than 100) and the corresponding running total of y which was 2+4+6=12
output:
ID | X | Y | ||
a | 119 | 12 | ||
b | 105 | 6 |
<tbody>
</tbody>
I've tried complex array formulas and a variety of lookups, but can't seem to crack this one. Any help would be greatly appreciated.
Thanks!
~Ghrain22