Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9843

ArrayFormula to calculate stock position by date

$
0
0

I am creating a stock transaction tracking sheet where i enter buys and sells etc. I have a formula that can calculate a running position total but I cannot figure out how to convert it to an array formula.

enter image description here

The formula I have so far is

SUM(INDEX(FILTER(A:D, B:B=B2, row(B:B) <= row(B2)),,4))

Here's a copy of the sheet


Viewing all articles
Browse latest Browse all 9843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>