I'm trying to import the stock price to my google sheets, unfortunately Google Financials dosen't support stocks from the Oslo Exchange at the moment. I have been browsing online, but none of the code examples works.
E.g.
=IMPORTXML(ʺhttps://www.bloomberg.com/quote/GJF:NOʺ,ʺ//span[@class='priceText__1853e8a5']ʺ)
Should supposedly
Anyone who has an suggestion on how I can make this work?
ImportHTML
works for me.
This returns the USD Spot Gold price
=Round(Index(ImportHTML("http://www.bloomberg.com/markets/commodities/futures/metals/","table",1),4,3),2)
and this GBP/EUR
=round(Index(ImportHTML("http://www.bloomberg.com/markets/currencies/cross-rates","table",1),3,5),5)
ImportHTML
needs page source, table on page and row/col coordinates