We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
How to import stock and fund prices in excel
Options
Comments
-
amittal6 said:coyrls said:There are multiple options for creating a dummy portfolio, some are more amenable to cut and paste than others. As I say Morningstar works for me.
Thanks. This is not about creating dummy portfolio! Rather about how to import the value of funds in the excel.
0 -
-
I never seriously used an online portfolio tool (until I read this thread). I always made do with my broker's view, or Microsoft Money/AceMoney and (especially at times of "portfolio upheaval") a spreadsheet.
Now I tried the Investors Chronicle portfolio tool (one may need to be a subscriber to get this, but I wouldn't consider NOT being a subscriber !) and I love it. I love the way that it shows the dividends that should get paid. And I love the way it handles splits. I look forward to seeing how it copes with a fund that was subject to "mandatory redemption" (i.e. was wound up) and for which my broker can't properly explain the small payments that still arrive in dribs and drabs !
But I was despairing of the way my portfolio is tabulated by Investors Chronicle, pretty well impossible to copy and paste into a spreadsheet. Then I noticed "export portfolio" (under "actions") and a .CSV file is presented ready to drop into my spreadsheet. Just perfect.0 -
I've created a Google Sheet (called Prices). For stocks I just need cells like =GOOGLEFINANCE("LON:SHEL","price"), for exchange rates =GOOGLEFINANCE("GBPEUR"), for some funds =GOOGLEFINANCE("LON:VWRP","price") but for others I need to scrape the FT site so =IMPORTXML("https://markets.ft.com/data/funds/tearsheet/summary?s=gb00bmn91t34:gbp","/html/body/div[3]/div[2]/section[1]/div/div/div[1]/div[2]/ul/li[1]/span[2]").
(This scraping often fails so I need to cut them to notepad, refresh the blank cell and the paste them back again. I only have two cells like that so can live with it but if someone has a better way I would be delighted to hear of it.)I then linked this to my Excel sheet using Power Query Editor and now I just refresh it as I need it, although you set it to it automatically.
Re: Power Query Editor, this is where someone else needs to help. It's been so long since I did this and it was a one off, such that I can't remember the details - sorry to be so useless. Anyone know how to link Google Sheets with Excel?Cheers1 -
Having enthused about the way that the Investors Chronicle portfolios export data in .CSV form, I should now point out some "wrinkles" I noticed.Firstly, in the case of certain managed funds, both the IC and FT show a price that is reflected in the portfolio view, but my broker (ii) has a more precise price. Bizarrely the total holding value in the IC portfolio is based on the more precise price that IC won't show me ! For instance, "Fundsmith Equity I Acc" today is shown as £7.03 on IC and FT, but ii have £7.0326 which is actually the value that the IC portfolio has used to calculate my holding value. So the most precise price available in the exported data can in every case be got by dividing the holding value by the number of units I hold.Secondly, in the case of one ETF (SJPA:LSE:GBX) the FT and IC today show a price of £42.00, but yesterday had a more precise price (£42.38) that matches the price that ii show. Once again the IC portfoilio shows the "rounded" price (even yesterday when it differed from what the IC page for this ETF was showing) but bases the total holding value on the more precise price. So once again the best resolution of price information can be got from the downloaded data by dividing the total holding value by the number of shares held. But I'm still a bit alarmed that the price shown on the portfolio screen view is so drastically "rounded". And the fact that the underlying price information changed over a Saturday night !0
-
UncleK said:I've created a Google Sheet (called Prices). For stocks I just need cells like =GOOGLEFINANCE("LON:SHEL","price"), for exchange rates =GOOGLEFINANCE("GBPEUR"), for some funds =GOOGLEFINANCE("LON:VWRP","price") but for others I need to scrape the FT site so =IMPORTXML("https://markets.ft.com/data/funds/tearsheet/summary?s=gb00bmn91t34:gbp","/html/body/div[3]/div[2]/section[1]/div/div/div[1]/div[2]/ul/li[1]/span[2]").
(This scraping often fails so I need to cut them to notepad, refresh the blank cell and the paste them back again. I only have two cells like that so can live with it but if someone has a better way I would be delighted to hear of it.)Have a look at mufunds - a Google Sheets add-on.....it grabs all the fund prices for you - all you need is the ISIN code for the fundEG "=muFunds("nav",GB00BZ82ZV81)" in a cell returns the latest price for Vanguard Global Equity Income INC into that cell.
3 -
Thanks for that, MK62. The instructions are a bit flakey but I eventually found something from the author saying that everything has to be in quotes, so even the one you quoted has to look like =muFunds("nav","GB00BZ82ZV81") to work so with that I am cooking on gas - finally..................!0
-
UncleK said:Thanks for that, MK62. The instructions are a bit flakey but I eventually found something from the author saying that everything has to be in quotes, so even the one you quoted has to look like =muFunds("nav","GB00BZ82ZV81") to work so with that I am cooking on gas - finally..................!Yes, that's correct, my bad.......I actually reference the ISIN from another cell so quotes not needed then.....ie put GB00BZ82ZV81 in cell D3, the formula is then =muFunds("nav",D3)I suspect that the add-on is probably using the same IMPORTHTML/IMPORTXML type scraping in the background, but it certainly makes everything simpler and neater.For anyone who prefers "local" spreadsheets, there is a similar extension for Libreoffice Calc - Financial Market Extension - https://github.com/cmallwitz/Financials-Extension - does pretty much the same thing but has a few more data options......I only have an old version of Excel, so don't really use that any more, but I expect that there will be something similar for that too.
1 -
It may well, MK62, but so far, it seems to be more reliable than the scraping the FT site I was doing before. Just a bit of googling shows that the Google Finance site is not well regarded so I am lucky to be getting most of the information I need from there. Long may it last - and thanks again.0
-
I tried mufunds with the ISIN in a specific cell and you still need quotes in the formula for the cell designation for it to work, otherwise you get Error Loading message. Unfortunately the prices shown bore no relation (not even close) to the latest prices on Morningstar for the first 3 trusts in my portfolio. So back to copy and paste for the whole portfolio.0
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 351.1K Banking & Borrowing
- 253.2K Reduce Debt & Boost Income
- 453.6K Spending & Discounts
- 244.1K Work, Benefits & Business
- 599.1K Mortgages, Homes & Bills
- 177K Life & Family
- 257.5K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards