缺席)参数列表后。 (第704行,文件"代码")

时间:2017-10-04 21:53:24

标签: javascript google-apps-script google-sheets formula

我试图在代码中设置.Formula并且我一直收到有关Missing的错误。我知道它是双引号搞砸了我,并且\可以逃脱那些,但我不知道哪些双引号需要被转义。有人可以深入了解这个吗?

cell.setFormula('=({filter('Master Fulfillment Sheet'!$A$5705:$A,'Master Fulfillment Sheet'!D5705:D="Published",'Master Fulfillment Sheet'!D5705:D<>"",'Master Fulfillment Sheet'!G5705:G>(today()-30));filter('Tobe Fulfillment Sheet'!$A$2:$A,'Tobe Fulfillment Sheet'!E2:E<>"",'Tobe Fulfillment Sheet'!E2:E<>"Published",'Tobe Fulfillment Sheet'!E2:E<>"Needs Attention",'Tobe Fulfillment Sheet'!E2:E<>"*Onsite Blog Post*",'Tobe Fulfillment Sheet'!E2:E<>"Order Cancelled");filter('Kendra Fulfillment Sheet'!$A$2:$A,'Kendra Fulfillment Sheet'!E2:E<>"",'Kendra Fulfillment Sheet'!E2:E<>"Published",'Kendra Fulfillment Sheet'!E2:E<>"Needs Attention",'Kendra Fulfillment Sheet'!E2:E<>"*Onsite Blog Post*",'Kendra Fulfillment Sheet'!E2:E<>"Order Cancelled");filter('Megan Fulfillment Sheet'!$A$2:$A,'Megan Fulfillment Sheet'!E2:E<>"",'Megan Fulfillment Sheet'!E2:E<>"Published",'Megan Fulfillment Sheet'!E2:E<>"Needs Attention",'Megan Fulfillment Sheet'!E2:E<>"*Onsite Blog Post*",'Megan Fulfillment Sheet'!E2:E<>"Order Cancelled");filter('Kyle Fulfillment Sheet'!$A$2:$A,'Kyle Fulfillment Sheet'!E2:E<>"",'Kyle Fulfillment Sheet'!E2:E<>"Published",'Kyle Fulfillment Sheet'!E2:E<>"Needs Attention",'Kyle Fulfillment Sheet'!E2:E<>"*Onsite Blog Post*",'Kyle Fulfillment Sheet'!E2:E<>"Order Cancelled");filter('Mary Fulfillment Sheet'!$A$2:$A,'Mary Fulfillment Sheet'!E2:E<>"",'Mary Fulfillment Sheet'!E2:E<>"Published",'Mary Fulfillment Sheet'!E2:E<>"Needs Attention",'Mary Fulfillment Sheet'!E2:E<>"*Onsite Blog Post*",'Mary Fulfillment Sheet'!E2:E<>"Order Cancelled");filter('Mariah Fulfillment Sheet'!$A$2:$A,'Mariah Fulfillment Sheet'!E2:E<>"",'Mariah Fulfillment Sheet'!E2:E<>"Published",'Mariah Fulfillment Sheet'!E2:E<>"Needs Attention",'Mariah Fulfillment Sheet'!E2:E<>"*Onsite Blog Post*",'Mariah Fulfillment Sheet'!E2:E<>"Order Cancelled")})');

1 个答案:

答案 0 :(得分:0)

问题是代码使用'作为字符串分隔符和工作表名称分隔符,因为它在Google表格上使用但在Google Apps脚本上应该通过在\前面进行转义。

基本上,请'Master Fulfillment Sheet'替换\'Master Fulfillment Sheet\'

相关问题