Filter Countif/Sumif应在arrayformula中显示空值,而不是0

Filter Countif/Sumif应在arrayformula中显示空值,而不是0,filter,google-sheets,google-sheets-formula,array-formulas,google-sheets-query,Filter,Google Sheets,Google Sheets Formula,Array Formulas,Google Sheets Query,我有很多关于countif和sumifs函数的数组公式。我希望countifs/sumifs返回一个空值(“”),而不是0 我的解决方案非常昂贵且很长: =ARRAYFORMULA(IF(SUMIFS(Sheet!$C$1:$C; 'Sheet!$A$1:$A; ">="&$A3; Sheet!$A$1:$A; "<="&$B3)=0; ""; SUMIFS(Sheet!$C$1:$C; Sheet!$A$1:$A; ">="&$A3; Sheet!$A

我有很多关于countif和sumifs函数的数组公式。我希望countifs/sumifs返回一个空值(“”),而不是0

我的解决方案非常昂贵且很长:

=ARRAYFORMULA(IF(SUMIFS(Sheet!$C$1:$C; 'Sheet!$A$1:$A; ">="&$A3; Sheet!$A$1:$A; "<="&$B3)=0; ""; SUMIFS(Sheet!$C$1:$C; Sheet!$A$1:$A; ">="&$A3; Sheet!$A$1:$A; "<="&$B3)))
=ARRAYFORMULA(如果)SUMIFS(工作表!$C$1:$C;'Sheet!$A$1:$A;“>=”&$A3;工作表!$A$1:$A;“=”&$A3;工作表!$A$1:$A



我添加了一个示例
=IFERROR(SUM(QUERY(Sheet2!A:C; 
 "select C 
  where month(A)+1="&MONTH(A3)&" 
    and year(A)="&YEAR(A3); 0)))
=IFERROR(SUM(FILTER(Sheet2!C:C; 
 YEAR(Sheet2!A:A)=YEAR(A3); MONTH(Sheet2!A:A)=MONTH(A3))))