Google表Importhtml刷新错误管理

发布于 2025-02-13 18:10:50 字数 168 浏览 0 评论 0原文

我有一个电子表格,该电子表格使用ImporthTML从各个网站进口10个表。我有一个刷新脚本,可以帮助我每30分钟更新一次数据。这很好。我的问题是,很多次或多次InporthTML失败的失败导致所有使用我正在导入的数据的单元格给出了错误的结果。如果刷新时出现错误,有什么办法可以将我从ImporthTML中获取的数据保留?

I have a spreadsheet that imports from various websites 10 tables using importhtml. I have a refresh script which helps me to update that data every 30 minutes. This is working fine. My problem is that plenty of times one or more of the importhtml fails which has as result all the cells that are using the data i am importing to give wrong results. Is there any way to keep the data I had taken earlier from importhtml if there is an error at refreshing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抱着落日 2025-02-20 18:10:50

也许不是您需要的,而是尝试将导入包装到1-2个IFERRORS中:

=IFERROR(IMPORTHTML(...); IMPORTHTML(...))

或:

=IFERROR(IFERROR(IMPORTHTML(...); IMPORTHTML(...)); IMPORTHTML(...))

如果发生某些导入错误,则IFERROR会重新尝试。在某些情况下,它可能会有所帮助 - OFC并非总是如此。

maybe not what you need, but try to wrap your imports into 1-2 IFERRORs like:

=IFERROR(IMPORTHTML(...); IMPORTHTML(...))

or:

=IFERROR(IFERROR(IMPORTHTML(...); IMPORTHTML(...)); IMPORTHTML(...))

this way if some importing error occurs the IFERROR will re-try it. it may help in some cases - ofc not always.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文