Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google sheets Google Sheets查询-where子句和group by中的数组公式_Google Sheets_Google Sheets Formula - Fatal编程技术网

Google sheets Google Sheets查询-where子句和group by中的数组公式

Google sheets Google Sheets查询-where子句和group by中的数组公式,google-sheets,google-sheets-formula,Google Sheets,Google Sheets Formula,我想得到每个唯一税号的税值之和,一组税号的账单号 不知怎的,我的公式失败了。让我知道我犯了什么错误 =查询(账单!$A$2:$CM,“选择L、C、SUM(BC)、SUM(AV)、SUM(CE)、SUM(CC)、SUM(CD),其中L匹配“&ArrayFormula(“'””&textjoin(“|“、1、A2:A10)”和“按L、C、0分组”)”查看这是否有帮助 =Query(Bills!$A$2:$CM, "Select L,C, SUM(BC), SUM(AV), SUM(CE),

我想得到每个唯一税号的税值之和,一组税号的账单号 不知怎的,我的公式失败了。让我知道我犯了什么错误

=查询(账单!$A$2:$CM,“选择L、C、SUM(BC)、SUM(AV)、SUM(CE)、SUM(CC)、SUM(CD),其中L匹配“&ArrayFormula(“'””&textjoin(“|“、1、A2:A10)”和“按L、C、0分组”)”

查看这是否有帮助

=Query(Bills!$A$2:$CM, "Select L,C, SUM(BC), SUM(AV), SUM(CE), SUM(CC), SUM(CD) where L Matches '"&textjoin("|",1,A2:A10)&"' Group by L,C",0)

非常好。我的印象是,我们需要一个用于列出多个值的数组公式。谢谢。@RajB,很高兴听到它起作用。既然您是新来的,请查看: