can someone please assist.
i am trying to calculate weighted ave cost( WAC) per share. every time a sale happens ( negative figures) a formula must calculate the WAC cost per share of all prior unsold stock( positive figures). where selling of shares takes place, formula must not calculate the weighted ave.
each investor can belong to many fund ID. so each time the formula sees a new fund but same investor, it starts the whole process again
i am trying to calculate weighted ave cost( WAC) per share. every time a sale happens ( negative figures) a formula must calculate the WAC cost per share of all prior unsold stock( positive figures). where selling of shares takes place, formula must not calculate the weighted ave.
each investor can belong to many fund ID. so each time the formula sees a new fund but same investor, it starts the whole process again