Hello Friends,
Further in building a portfolio tracking sheet for tracking mutual fund, I need your help in finding following 2 things automatically, I will explain again that in detail here.
Sheet consist of data entries which are:
1. Every month there will be some money invested and that I named as "SIP".
2. And at some point of time I will withdraw that money which I labelled as "Sell".
Please have a look into the test sheet attached here.
The data here contains column D as sell or SIP/Sell transactions, Column E is amount invested or withdrawn, column F has Net asset value (NAV) and column G contains Units allotted. Now I want to write 2 formulae to auto calculate the Date as well as updated valuation of investment depending on following cases:
A. Date calculation cases:
1. If Column D has one or more "Sell" entries, then the date should be the latest date against the rows which has "Sell" in column D. Here in attached sheet it should be 4/14/2018 (answer).
Or
2. If column D doesn't have "Sell" entry, the formula should give the latest Date entered in table.
B. Now for the Valuation calculation:
1. If Column D has one or more "Sell" entries, then the Valuation should be sum of all entries of column E against "Sell" in column D. Here in attached sheet it should 37535.8+1256.448=38792.748 (answer).
Or
2. If column D doesn't have "Sell" entry, the formula should give the answer = (Sum of Column G entries) * (Latest NAV .i.e last entry in column F).
I hope I am being clear on the question that I want to ask. Let me know if you need any more information on this.
Bookmarks