Google表格:IMPORTHTML无法获取表10

时间:2019-04-16 21:10:02

标签: google-sheets google-sheets-formula

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

我以前有以下条件可以从Yahoo中获得收益:

=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个月平均成交量-192万”,“ 10天平均成交量-1.55百万”等等。

如果从其他站点拉表10没问题,那我错了吗?

2 个答案:

答案 0 :(得分:1)

as an alternative you can try:

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

0

答案 1 :(得分:0)

在这方面工作正常:

void Scene::applyConstraint(Point &p1, Point &p2, float dt) {

    //Our spring constant
    const float k = 0.5f;

    //Hooke's Law is F = -k*dX
    glm::vec3 dir = p1.position - p2.position;
    glm::vec3 force =  -k*dir;   

    glm::vec3 accel1 = (force / p1.mass);
    glm::vec3 accel2 = (-force / p2.mass);

    p1.velocity += accel1 * dt;
    p2.velocity += accel2 * dt;

    p1.position += p1.velocity * dt;
    p2.position += p2.velocity * dt;
}

0


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

0