RandomTandem
New Member
- Joined
- Jul 10, 2017
- Messages
- 17
If I have a list of dates (in chronological order) in Column A and a list of stock purchases or sales in column B. Is there a formula which will help me find the last date where the running total was equal to zero prior to a date I put in cell C1?
In the below example, If I put 13th Aug in cell C1, it would tell me 12th Aug but if I had 15th Aug in cell C1, it would put 14th Aug
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Purchase/Sale Amount[/TD]
[/TR]
[TR]
[TD]10th Aug[/TD]
[TD]+5[/TD]
[/TR]
[TR]
[TD]11th Aug[/TD]
[TD]+10[/TD]
[/TR]
[TR]
[TD]12th Aug[/TD]
[TD]-15[/TD]
[/TR]
[TR]
[TD]13th Aug[/TD]
[TD]+80[/TD]
[/TR]
[TR]
[TD]14th Aug[/TD]
[TD]-80[/TD]
[/TR]
[TR]
[TD]15th Aug[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
I would normally use a helper column to achieve this but I cannot do it in this example.
Thank you.
In the below example, If I put 13th Aug in cell C1, it would tell me 12th Aug but if I had 15th Aug in cell C1, it would put 14th Aug
[TABLE="width: 500"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Purchase/Sale Amount[/TD]
[/TR]
[TR]
[TD]10th Aug[/TD]
[TD]+5[/TD]
[/TR]
[TR]
[TD]11th Aug[/TD]
[TD]+10[/TD]
[/TR]
[TR]
[TD]12th Aug[/TD]
[TD]-15[/TD]
[/TR]
[TR]
[TD]13th Aug[/TD]
[TD]+80[/TD]
[/TR]
[TR]
[TD]14th Aug[/TD]
[TD]-80[/TD]
[/TR]
[TR]
[TD]15th Aug[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
I would normally use a helper column to achieve this but I cannot do it in this example.
Thank you.