Hi everyone,
I'm really hoping you can help me with this. I've worked on this for some time, but it seems like I'm going in circles. What I need is rather simple, and here it is:
1) You purchase 10 shares of AAPL stock at $110 per share. You have a buying average of $110 per share (duh), with an open invested equity of $1,100 on your imaginary balance sheet.
2) You sell 5 of those 10 shares at $125 per share. You receive $625 in funds. $75 goes to P&L as income. -$550 goes back to balance sheet to offset the asset sale. You now hold 5 shares at $110 per share.
3) You purchase 5 more shares at $105 per share. You now have 10 shares at an average price of $107.50 on your balance sheet.
4) You sell all 10 shares at $135 per share. You receive $1,350 in funds. $1,075 goes to your balance sheet to offset your asset sale. The remaining $275 goes to P&L as income. Balance sheet shows $0 for that particular asset.
5) Finally, you purchase 5 more shares of the same AAPL stock at $95 per share. Your balance sheet shows (or at least should show) an average price of $95 per share, and total invested equity of $950 on the balance sheet.
Can anyone help me do this on google sheets? I'm thiiiiiiiiiiiiis close to killing myself over this.
Thanks in advance for saving my life.
Bookmarks