• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Please help me for excel formula

Hello,

Good day!
I'm trying to make a formula for my portfolio in the stock market, but I don't know to what formula what I am going to use. Please help me to formulate the right formula.

1. Total Amount (Stocks Only)
I want to get the sum of the total amount (Stocks Only) per each stock code and if the Action is "Buy" (TRADING LOG-COL Sheet), all of the amount should be added and if the Action is "Sell" (TRADING LOG-COL Sheet) will subtract.

2. Net Amount (Stocks + Fee)
Same the sequence of Stocks Only but the fee should add.

And If you have an idea on how to get the Gain/Loss, % Gain/Loss, Portfolio%, please help me also. Thank you in advance and God bless.
 

Attachments

  • PORTFOLIO.xlsm
    443.6 KB · Views: 6
Hello Sir Deepak,

Thanks you so much for your response.
I already un-merged the cells as your advice. Please see the attached file.
Thanks.
 

Attachments

  • PORTFOLIO.xlsm
    382.4 KB · Views: 6
would a simple SUMIFS () do?
=SUMIFS(StocksOnly;Code,'COL-PORTFOLIO'!$C10,Action,"BUY")-SUMIFS(StocksOnly,Code,'COL-PORTFOLIO'!C10,Action,"SELL")
 
Back
Top