如何在 Google 表格中使用 importhtml 在同一个电子表格中连续导入来自多个 URL 的表格?

How to use importhtml in Google Sheets to import tables from multiple URLS coninuously in same spreadsheet?

URL1URL2URL3各包含一个table。
我目前正在将每个导入到不同的工作表中。
有没有办法在同一个电子表格中连续导入它们?

Update1: tables 中的行数每天都不同,所以我必须手动完成。我想知道是否有办法将两个 importhtml 函数与查询或连接结合起来?
类似于 =importhtml (url1, table,2) & importhtml (url2, table,2)

Update2:我在此处附上示例文件 link https://docs.google.com/spreadsheets/d/1VdFMzRTwcaFAglGNpqvzGytdz_mqohtxGgAywKlLi0U/edit?usp=sharing
A1 中有一个 table,在 I1 中有另一个。
这是股市数据,所以它每天都在变化。我想知道有没有办法组合公式?

编辑

(跟随 OP 的 request

This worked perfectly. Is there anyway to loose the header row of the second table...

请将 IMPORTHTML 函数包含在 QUERY

={QUERY(IMPORTHTML("xxx","table",1), "where Col1 is not null",1);
  QUERY(IMPORTHTML("yyy","table",1), "where Col1 is not null offset 1",0)}

请注意,在第二个 QUERY 中我们使用 offset 1",0
这将消除第二个 table.

的 headers

专业提示
由于您现在拥有查询中的所有内容,您还可以利用所有许多非常灵活的查询 properties/clauses,如 select, order by, group-by


I am currently importing each in different sheets, is there anyway to import them continuously in the same spreadsheet?

很可能是的。这在很大程度上取决于您使用的公式和 table 的结构。
如果它们都具有相同数量的列,您可以创建一个类似

的数组
={IMPORTHTML("xxx","table",1);
IMPORTHTML("yyy","table",1)}
IMPORTHTML("zzzz","table",1)}

以上公式会将 table 个堆叠在另一个之上。

(如果没有更多信息和预期结果,很难给出明确的答案)