Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets 如何从Google Sheets中的MarketWatch导入字段_Google Sheets_Google Sheets Query_Google Sheets Formula - Fatal编程技术网

Google sheets 如何从Google Sheets中的MarketWatch导入字段

Google sheets 如何从Google Sheets中的MarketWatch导入字段,google-sheets,google-sheets-query,google-sheets-formula,Google Sheets,Google Sheets Query,Google Sheets Formula,我想从MarketWatch中删除除息日期字段,在我的示例中,日期是“2018年11月15日”。这是链接: 到目前为止,我使用了以下代码: =index(ImporthtML("https://www.marketwatch.com/investing/stock/inn.pd","list",14),13,1) 它工作得很好,但似乎MarketWatch中发生了一些变化,我现在无法通过在查询中猜测不同的数字来理解它,因为我不懂这种语言 你能给我提供一个公式来刮这块地吗?提前谢谢 =REGE

我想从MarketWatch中删除
除息日期
字段,在我的示例中,日期是“2018年11月15日”。这是链接:

到目前为止,我使用了以下代码:

=index(ImporthtML("https://www.marketwatch.com/investing/stock/inn.pd","list",14),13,1)
它工作得很好,但似乎MarketWatch中发生了一些变化,我现在无法通过在查询中猜测不同的数字来理解它,因为我不懂这种语言

你能给我提供一个公式来刮这块地吗?提前谢谢

=REGEXREPLACE(INDEX(IMPORTHTML(
 "https://www.marketwatch.com/investing/stock/inn.pd", 
 "list", 23), 13, 1),
 "Ex-Dividend Date", "")

'True'日期选项(即数字格式,而非文本):

您查找的信息有效地从ColumnN移动到ColumnX(在此之前插入了10个列表/列),因此
14
24
,但仍保留在同一“行”(
13

如果同样的事情再次发生,你只需要一点尝试和错误,就可以再次追踪你所寻找的信息

=1*mid(index(ImporthtML("https://www.marketwatch.com/investing/stock/inn.pd","list",23),13,0),18,50)