Hi folks - I am trying to figure out the most simple formula to do the following:
IF the value of two items in the same column have the same value (stock name) AS WELL AS the same date AND the same additional value (buy or sell), then, calculate a weighted average price using the following sum: sumproduct(A1*B1+A2*B2)/sum(B1+B2).
Thanks.
IF the value of two items in the same column have the same value (stock name) AS WELL AS the same date AND the same additional value (buy or sell), then, calculate a weighted average price using the following sum: sumproduct(A1*B1+A2*B2)/sum(B1+B2).
Thanks.