I want to import specific data from a table from Yahoo finance to Google sheets.
So far, I have managed to import the table from Yahoo but the specific row eg float data
I have used this: =IMPORTHTML("http://finance.yahoo.com/q/ks?s="& $B$1&"+Key+Statistics","table", 2)
This line select the stock symbol in my spreadsheet, then draws the table from Yahoo,
You can accomplish it by accessing that index, try:
=index(IMPORTHTML("http://finance.yahoo.com/q/ks?s="& $B$1&"+Key+Statistics","table", 2), 4, 2)
the index function will basically get a single item when the output is a table.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.