Forum Discussion
rrachlow1990
Nov 05, 2023Copper Contributor
Macro Help
Hello all -
I've got a spreadsheet with about 3500 rows that I'm trying to clean up to be able to use in Pivot Tables. It's got merged info in columns B & C that are causing problems. Column B needs to be unmerged and have its data associated with each row. I'm trying to search on the info in Column C, but because it's merged, it won't "find" the data.
I know it's hard to visualize, but I don't see where to upload the spreadsheet...
Thanks!
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.
13 Replies
Sort By
- peiyezhuBronze Contributor
if with sql,
cli_no_header;
select colIdxf[2:]{udf_fillna_m(%s,'a$') %s} from consolidateSheet where f07!='Total'
 
- peiyezhuBronze Contributorknow it's hard to visualize, but I don't see where to upload the spreadsheet.
you can click
Open full text editor
then click attachment icon to upload files.- rrachlow1990Copper Contributor
peiyezhu - I don't mean to be obtuse here, but I just don't see the "attachment" icon 😞
Attachments are available to some users only. If you don't have that option, upload the workbook to a cloud store such as Google Drive, OneDrive or Dropbox. Share the uploaded file and post a link to it in a reply.