Google 工作表:IMPORTHTML 未获取 table 10

Google Sheets: IMPORTHTML not fetching table 10

我一直在定期用股息更新我的财务资料 returns。 虽然网上的收益率可能不是100%准确,但我还是希望拉一下Foward的年度股息率。

我之前使用以下方法从 Yahoo 获取 Yield:

=vlookup("Forward Annual Dividend Yield"&"*",IMPORTHTML("https://finance.yahoo.com/quote/O/key-statistics","table",10),2,0)

现在看来,IMPORTHTML无法拉动table10.反馈给我#REF

=IMPORTHTML("https://finance.yahoo.com/quote/O/key-statistics","table",10)

其中

=IMPORTHTML("https://finance.yahoo.com/quote/O/key-statistics","table",9)

没有问题反馈 "Avg Vol (3month) - 1.92M" "Avg Vol (10 day) - 1.55M" 等等。

如果从其他站点拉取table 10没有问题,我哪里错了?

这边工作得很好:

=IMPORTHTML("https://finance.yahoo.com/quote/O/key-statistics", "table", 10)


=INDEX(IMPORTHTML("https://finance.yahoo.com/quote/O/key-statistics", "table", 10), 2, 2)

作为替代方案,您可以尝试:

=INDEX(IMPORTXML("https://finance.yahoo.com/quote/O/key-statistics", 
 "//td[@class='Fz(s) Fw(500) Ta(end)']"), 51, 1)