• 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.

Excel Sheet For Calculation Of Profit By FiFo Method

pratiksathe.lhs

New Member
Hello, I have tried to create excel for calculating profit of particular stock using fifo method. But the results are not coming as expected. Need your help to suggest excel file or formula.
FIFO cost =SUMPRODUCT((-SUMIF(B$2:B7,"<0")>SUMIF(OFFSET(B$1,,,ROW(B$1:B6)),">0"))*(-SUMIF(B$2:B7,"<0")-SUMIF(OFFSET(B$1,,,ROW(B$1:B6)),">0"))*(C$2:C7-N(+C$1:C6)))-SUM(E$1:E6)
FIFO Gain =IF(B7>0,0,-B7*C7-E7)
Alpha return= Capital Gain rate- Bank rate
 
Sir, I want to calculate profit on shares using FIFO (first in first out) method. Share purchased first can be sold first. Calculations given by all stock brokers are usually present on Average cost method. I have attached one excel working where I tried to calculate but its not working. I have also given sample of expected results.
Outcomes- 1. Absolute Return on shares using FIFO method.
2. Alpha return on shares using FIFO method.
3. Annualized return for each stock sold.
4. FIFO cost of holdings.
Thanks in advance for support..!!
 

Attachments

  • FIFO WORKBOOK UPDATED.xlsx
    13.3 KB · Views: 2

pratiksathe.lhs

Sure that You explained something which should be clear for You ...
I gotta guess many things and I could offer something like this green range.
 

Attachments

  • FIFO WORKBOOK UPDATED.xlsb
    23.1 KB · Views: 5

pratiksathe.lhs

Your above file has different details than Your original thread as well as Your #3 reply file.
This seems to be different case now.
You should open a new thread for that.
 
Back
Top