The formula below works, but not always. It looks to be dependent of the stock exchange where it is traded on.
=IMPORTXML(CONCATENATE("https://finance.yahoo.com/quote/", index(A2)),"/html/body/div[1]/div/div/div[1]/div/div[3]/div[1]/div/div[1]/div/div/div/div[2]/div[2]/table/tbody/tr[6]/td[1]")
Can someone help me with the formula of ticker CPINV.BR? In Yahoo Finance, it can be found here. I want to obtain the 'Forward Dividend & Yield' of 7.17%. How to I do this?
FYI, below an example of a Google Sheets where the formula above works for some tickers and not for others. https://docs.google.com/spreadsheets/d/1VUgq63x3n5UxvWUiyuW7sG8iM6dZ7i3tZSLN3Tfq2AI/edit?usp=sharing
Can also someone link the description on how the table in Yahoo are built up? This is so useful since I want to be able to filter on several parameters, but can't determine the 'table and row' logic on Yahoo Finance.
Here is code using Powershell with HTMLAgilityPack. I used Descendants
Look like there is two Results