简体   繁体   English

是否可以在 Google 表格中限制 importhtml?

[英]Is it possiable to limit importhtml in Google sheet?

I have lot of data on Google sheet.我在谷歌表上有很多数据。 I run importhtml formula to get data.我运行 importhtml 公式来获取数据。 as I have a lot of data I got error因为我有很多数据我得到了错误

Error
Loading data may take a while because of the large number of requests. Try to reduce the amount of IMPORTHTML, IMPORTDATA, IMPORTFEED or IMPORTXML functions across spreadsheets that you've created.

So I just want to run formula only when first get the result then next cell run import formula.所以我只想在第一次得到结果然后下一个单元格运行导入公式时运行公式。 for ex:例如:

in this sheet all formulas run on the same time, is there any way when a1 formula got values than cell A2 run, and when Cell a2 got values then Cell A3 run在这张表中,所有公式都同时运行,当 a1 公式得到的值比单元格 A2 运行时,有什么办法吗?当单元格 a2 得到值时,单元格 A3 运行

       |      Column A |              
  =====| =================================
   A1  | =query(TRANSPOSE(ImportHtml(H2, "table", 1)), "select * limit 1 offset 1", 0)  
  =====| =================================
   A2  | =query(TRANSPOSE(ImportHtml(H2, "table", 1)), "select * limit 1 offset 1", 0)  
  =====| =================================
   A3  | =query(TRANSPOSE(ImportHtml(H2, "table", 1)), "select * limit 1 offset 1", 0)   

and want like something this想要这样的东西

       |      Column A |              
  =====| =================================
   A1  | =query(TRANSPOSE(ImportHtml(H2, "table", 1)), "select * limit 1 offset 1", 0)  
  =====| =================================
   A2  | wait for get result for A1  


       |      Column A |              
  =====| =================================
   A1  | Name 1  
  =====| =================================
   A2  | A1 get result now run formula here 

Hope it makes some sense希望它有一些意义

you could try to build on the error you got and wrap your formula into IF statement like:您可以尝试建立在您得到的错误的基础上,并将您的公式包装到IF语句中,例如:

A1: your formula A1: your formula
A2: =IF(ISERROR(A1),,your formula) A2: =IF(ISERROR(A1),,your formula)
A3: =IF(ISERROR(A2),,your formula) A3: =IF(ISERROR(A2),,your formula)
etc.等等

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM