how to make a custom function NOT recalculate in Google Sheet

最后都变了- 提交于 2021-02-10 15:43:45

问题


I find that each time i log in. The heavy functions I have do recalculate. IN particular it is functions including UrlFetch that recalculate and make 100s of calls to the url when I log in. I would rather just rely on the data I drew last time. Is there a way to block (haphazard) recalculation?


回答1:


Thanks for Ruben's help:

Function recalculation cannot be disabled.

the workarounds are (1.) to make a "switch" input to the function, which while in "don't update state" would make the function return nothing. If the function is of the "=FUNCTION()", in-cell, type, the empty return will overwrite your data, unfortunately. :/

(2) Functions that are in-cell, as above, will recalc no matter what. While, clearly, functions that are triggered otherwise - not in cells - would not.

What I will probably do is to write non-in-cell functions that drop the formulas into the cells. These will run, and re-run, only when pressing a button



来源:https://stackoverflow.com/questions/63431445/how-to-make-a-custom-function-not-recalculate-in-google-sheet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!