.setFormula() and received error missing ) argument list

后端 未结 1 623
无人及你
无人及你 2020-12-04 04:02

I have .setFormula() and stuck on this. I think the problem is the comma (&\",\"). I have researched several online forum before posting this q

相关标签:
1条回答
  • 2020-12-04 04:41

    You dont need single quotes ' around Sheet1.

    Try

    me.getRange('B8')
        .setFormula('=arrayformula(concatenate(filter(Sheet1!E2:E,Sheet1!E2:E<>"") & ", "))"');
    

    If you still need it, you need to escape it with backlashes like this \':

    me.getRange('B8')
        .setFormula('=arrayformula(concatenate(filter(\'Sheet1\'!E2:E,\'Sheet1\'!E2:E<>"") & ", "))"');
    

    Reference:

    String § Escape notation

    0 讨论(0)
提交回复
热议问题