Hi,
I've tried a few suggestions, but I cannot figure out how to add a condition to this formula: =SUMPRODUCT(G2:G100,F2:F100) / SUM(F2:F100) so that it will automatically recalculate when I add additional data. How I would rewrite it (but this doesn't work of course) is like this:
IF(c2:c100="GE"),SUMPRODUCT(G2:G100,F2:F100) / SUM(F2:F100)
I admit it, I'm not expert but thought that would help you see what I'm trying to do; I use the formula to calculate the weighted average of multiple stock purchases/dividend reinvesting of the same stock over time:
Column G: Stock Purchase Price
Column F: Number of Shares
Column C: Stock Ticker Symbol (GE for example); there are multiple stock tickers--not just GE.
Column C on a worksheet 2: Stock Ticker Symbol (GE for example)
Thank you in advance!
I've tried a few suggestions, but I cannot figure out how to add a condition to this formula: =SUMPRODUCT(G2:G100,F2:F100) / SUM(F2:F100) so that it will automatically recalculate when I add additional data. How I would rewrite it (but this doesn't work of course) is like this:
IF(c2:c100="GE"),SUMPRODUCT(G2:G100,F2:F100) / SUM(F2:F100)
I admit it, I'm not expert but thought that would help you see what I'm trying to do; I use the formula to calculate the weighted average of multiple stock purchases/dividend reinvesting of the same stock over time:
Column G: Stock Purchase Price
Column F: Number of Shares
Column C: Stock Ticker Symbol (GE for example); there are multiple stock tickers--not just GE.
Column C on a worksheet 2: Stock Ticker Symbol (GE for example)
Thank you in advance!