trium
Member of DD Central
Posts: 380
Likes: 298
|
Post by trium on Jan 23, 2024 18:10:29 GMT
On another board, Ace referred to UB's inclusion of accrued interest in portfolio values saying he didn't know an easy way to exclude it (though he said he hadn't tried too hard). Maybe this might help? Sign in to UB, click "Transactions" then download the CSV (warning - there's a fair wait) Open the CSV in a spreadsheet program. Keeping the headings in Row 1, reverse the rest of the sheet so that the oldest entries come first. Insert a new row before Row 2 and set the new cells G2, H2 and I2 to zero. Set G3 to "=G2+D3" and make the heading for Column G "Cash" Set H3 to "=H2-IF(D3<0,D3,F3) and make the heading "On Loan". NOTE: If using Open Office replace the commas with semicolons Set I3 to "=I2+E3" and head it "Interest Paid" Use the drag handle to extend the formulae in G3 to I3 all the way down. The value of your portfolio (without accrued interest) on any given date is the sum of the figures read from Columns G and H at the end of that day. Column I is not used in the calculation and can be omitted, but I like to have it. The above assumes that you are starting from zero, ie going back to when you opened the account, but you can use different starting balances in Row 2 if for example you have last year's figures and you want to start a new sheet for this year. HTH
|
|
|
Post by Ace on Jan 23, 2024 19:38:51 GMT
Thanks trium, good work. I tried this on my UB ISA account. Removing the accrued interest dropped the XIRR from 8.67% to 8.13%. I'm no spreadsheet expert so I may be missing something, but to get it to work in Excel, I had to replace the semicolons with commas in the formula for H3.
|
|
trium
Member of DD Central
Posts: 380
Likes: 298
|
Post by trium on Jan 23, 2024 20:33:15 GMT
Thanks trium, good work. I tried this on my UB ISA account. Removing the accrued interest dropped the XIRR from 8.67% to 8.13%. I'm no spreadsheet expert so I may be missing something, but to get it to work in Excel, I had to replace the semicolons with commas in the formula for H3. Oh dear I didn't realise there would be this issue. I'm using Open Office and it throws an error if I use commas. I just tried Excel and you're right it doesn't like the semicolons. I'll edit the OP.
|
|
|
Post by Penny Pincher on Jan 24, 2024 16:31:49 GMT
... Set H3 to "=H2-IF(D3<0,D3,F3) and make the heading "On Loan". NOTE: If using Open Office replace the commas with semicolons ... The above assumes that you are starting from zero, ie going back to when you opened the account, but you can use different starting balances in Row 2 if for example you have last year's figures and you want to start a new sheet for this year. Thanks for this trium , I have a further small improvement. Your suggestion also assumses that no withdrawals have been made. Withdrawals are negative Bank Payments, so can I make the following suggestion for the On Loan Balance (column H); =H2-IF(B3="Loan Bought",D3,F3)
|
|