New Google Sheets custom functions sometimes display “Loading…” indefinitely

后端 未结 13 1683
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 06:34

SPECIFIC FOR: \"NEW\" google sheets only.

This is a known issue as highlighted by google in the new sheets.

Issues: If you write complex* custom f

13条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-24 06:59

    Just to add to Azmo 's answer...

    I in fact removed all trailing semi-colons from the code:

    // check if an item can be checked off
    function checkedOff( need, have ) {
      var retStr = "nope"
      if( have >= need ){
        retStr = "yep"
      }
      return retStr
    }
    

    And discovered, that when doing this over a large range you can also max out the acceptable number of calls to the API.

    To get around it I added an IF THEN check around my custom script call.

    So instead of:

    =checkedOff(H10,H11)

    Use something like this to check for a populated field before execution:

    =if(H17<>"-",checkedOff(H10,H11),0)

提交回复
热议问题