【问题标题】:How to parse a string from the INDEX function Google sheets如何从 INDEX 函数 Google 表格中解析字符串
【发布时间】:2020-05-11 23:48:51
【问题描述】:

尝试为谷歌表格和除息日创建股票跟踪器,我尝试使用索引功能

=INDEX(IMPORTHTML(concatenate("https://finance.yahoo.com/quote/", D2,".TO?p=",D2,".TO&.tsrc=fin-srch"),"table",2),7,2)

上面的函数给出了输出 - “43965”而不是实际数据。

【问题讨论】:

  • 想要的输出是什么?分享您的工作表副本
  • 整件事“2020 年 4 月 29 日”

标签: date web-scraping indexing google-sheets google-sheets-formula


【解决方案1】:

43965 是 2020 年 5 月 14 日

的日期值

尝试:

=TEXT(INDEX(IMPORTHTML(CONCATENATE("https://finance.yahoo.com/quote/", D2,
 ".TO?p=", D2, ".TO&.tsrc=fin-srch"), "table", 2), 7, 2), "mmmm dd, yyyy")

【讨论】:

    猜你喜欢
    • 2015-11-07
    • 2017-09-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多