0

I am trying to import some date from Yahoo Finance to Google Sheets, but I am facing some issues.

The information I am trying to receive is from this link:

https://finance.yahoo.com/quote/GPRO/financials?p=GPRO and the value I want to get back is Net Income for 2018 which is: "-109,034"

I was trying really hard in the last 6 hours, and started from the basic to retrieve whole info so I can filter it down.. but I wasn't successful

Below is the last code I write, but still doesn't return me anything..

=IMPORTXML("https://finance.yahoo.com/quote/GPRO/financials?p=GPRO","//*[@id=""mrt-node-Col1-1-Financials""]")

If someone can assist would be really appreciated.

Rubén
  • 34,714
  • 9
  • 70
  • 166
user1483138
  • 57
  • 1
  • 1
  • 7

2 Answers2

1

You need to change @id=""mrt-node-Col1-1-Financials"" for @id='mrt-node-Col1-1-Financials'

0

You can import the data from the website with IMPORTHTML instead and then find the Net Income value with a VLOOKUP.

=IMPORTHTML("https://finance.yahoo.com/quote/GPRO/financials?p=GPRO", "table", 1)

=VLOOKUP("Net Income", A:E, 2) The number 2 was selected because it is the result related to 2018.

ZektorH
  • 2,680
  • 1
  • 7
  • 20