Forum Discussion
Time Weighted Rate of Return using dates
- Jul 29, 2021
Just to clarify.... I was not suggesting any change in your format or frequency of data. It was not clear to me what problem you wanted to solve. So my intention was only to demonstrate the TWRR calculation. I should have made that clear the first time. Sorry.
-----
Re: ``I'm aiming to find a way to calculate it basically the same way my bank does``
To that end, it would be helpful to see what the "bank" calculates, and how it is reported.
Re: ``nor is my first language English, so there may have been some lost in translation``
I understand. And to make matters worse, IMHO, the financial community uses terminology that is misleading or confusing, even to a native English speaker.
That is why a concrete example of the actual calculations that you want to accomplish would be helpful.
I will try to keep my English as simple as possible. But my English is not so good either, being a born American (wink). So feel free to ask for clarification, as needed.
-----
Re: ``Correct me if I'm wrong, but if I want to use your provided formula - I need to extract the dates for deposits?``
Yes. The purpose of the TWRR is to reflect the true market rate of return, excluding "external factors" like deposits and withdrawals.
For example, if the ending balance was 100,000 yesterday, and the ending balance is 110,000 today because the market rate of return was 1% (1000) and we deposited 9000, we want the TWRR to be 1% (101000/100000 - 1), not 10% (110000/100000 - 1).
Suppose 6 days later, the ending balance is 120,000 because the market rate of return over that period was again 1% (1100) and we deposited 8900 on the last day. Again, we want the TWRR for that period to be 1% (111100/110000 - 1), not 9.09% (120000/110000 - 1).
And the cumulative market rate of return and TWRR for the total of 7 days is (1+1%)*(1+1%) - 1 = 2.01%, not 120000/100000 - 1 = 20%.
With that in mind, see the attached Excel file.
The TWRR in column E is the __cumulative__ market rate of return.As a proof of concept, see the periodic market rate of return and the cumulative market rate of return that are calculated in columns G and H.
-----
If the cumulative period is a year or less, investment firms report the cumulative TWRR.
But if the cumulative period is more than a year, investment firms report the average compounded annual TWRR, which might be calculated by (1+cumTWRR)^(days/365) - 1.
Sorry again for not being clear enough. I got no issues with the implementation of the formula. It works flawlessly for what I specified. Now I'm just curious if it is possible to augment it to handle gap rows, see figure below where a division with zero occurs on the last row due to the empty cells prior - the selected cell will of course be empty as well in the final revision.
/Q
QWeelon wrote: ``the selected cell will of course be empty as well in the final revision``
If you merely want the selected cell (E7) to appear blank, I can offer some idea that might or might not be acceptable. Those solutions require formulas in all rows in column E.
See the worksheets "one blank row" and "multi blank rows" in the attached Excel file.
Use "one blank row" if there is always only one blank row between data lines.
Use "multi blank rows" if there is any number of blank rows between data lines.
But if you want the entire row to be empty (no value or formula), I cannot help you.
In either case, if you use Office 365 or the latest revision of Excel (2019?), there might be new features that can help (someone) create a soluton. I am not familiar with any of those new features.
- QWeelonJul 31, 2021Brass ContributorFantastic, that did it! I don't know how you are able to pop those up like that - looks almost like gibberish to me. Thanks again. 🙂
Real great!