First time I have been in a forum, not very experienced with excel, please bare with me.
I am trying to create a stock trading journal with calculations in it.
Currently I am using
=IF(H35="Stock",Q35/V35,P35*V35/V35) in column W and column AA
to give me the cost basis of a stock purchase designated by the word ""stock"", otherwise if a trade and not a purchase the formula gives the per share cost or profit earned by the trade .
Currently the spreadsheet is doing the calculation correctly in the green columns W & AA, but I need the formula to also show the sum of the initial cost basis at purchase and then with the increasing or decreasing cost basis of each following trade. I have manually showed the results I am looking for in yellow columns AF and AI I have been manually entering the original cost basis in same named column... not sure if that column could be deleted or needed to work out calculation or renamed and used to keep track of what I want manually.
If possible I would also like to the spreadsheet to do this automatically each time I enter a trade
when I enter a new trade the spreadsheet will look back to match up the entered stock symbol (column E) with the last trade for each lot in the trade (maybe by matching the stock symbol, matching purchase date and lot number) and then keep a running total, (as talked about earlier) adjusting the last matching lot number's cost basis by the net premium per share and putting that/those total(s) in the most recent row (Stocks Current Cost Basis Lot) or the column next to it if another column is needed to do the calculation... row by row trade by trade.
I have about 950 rows of trades and I would like to apply it from the bottom up
Can this be done?
Help if only pointing a direction I should research would be appreciated...
Please ask me any question if I was not exact or clear.
Thanks,
Rick
Bookmarks