Google表格:IMPORTHTML没有提取表格10

问题描述 投票:0回答:2

我一直在用我的股息回报更新我的财务资料。虽然报告的在线收益率可能不是100%准确,但我仍然希望拉低Foward年度股息收益率。

我以前有以下从雅虎拉出收益率:

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

现在看来,IMPORTHTML无法拉表10.报告给我#REF

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

在哪里

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

没有问题报告“平均体积(3个月) - 1.92M”“平均体积(10天) - 1.55M”等等。

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

google-sheets google-sheets-formula
2个回答
1
投票

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

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

0


0
投票

在这方面工作得很好:

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

0


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

0

© www.soinside.com 2019 - 2024. All rights reserved.