Google sheets GoogleSheets使用公式生成的列,并将其用作Countifs公式中的编号数据

Google sheets GoogleSheets使用公式生成的列,并将其用作Countifs公式中的编号数据,google-sheets,sum,google-sheets-formula,array-formulas,google-sheets-query,Google Sheets,Sum,Google Sheets Formula,Array Formulas,Google Sheets Query,我在使用一个非常困难的公式时遇到困难,所以我需要一些帮助。 我需要制作一份自动填写的文件 我的问题是这个总数: =SUM( COUNTIFS( A2:A;D2; // get all models with the same name as in D2; B2:B;"2019"; // get all models build this year; C2:C;"<5000" // get all models wi

我在使用一个非常困难的公式时遇到困难,所以我需要一些帮助。 我需要制作一份自动填写的文件

我的问题是这个总数:

    =SUM(
      COUNTIFS(
        A2:A;D2;     // get all models with the same name as in D2;
        B2:B;"2019"; // get all models build this year;
        C2:C;"<5000" // get all models with maximum of 5000 kms;
      )
    )
=SUM(
COUNTIFS(
A2:A;D2;//获取与D2中同名的所有模型;
B2:B;“2019”//今年完成所有车型的建造;
C2:C;“试试这个:

=sum(arrayformula(COUNTIFS(A2:A,{D2:D9},B2:B,"2019",C2:C,"<5000" )))
=sum(arrayformula)(COUNTIFS)(A2:A,{D2:D9},B2:B,“2019”,C2:C,尝试:

=查询(A2:C,
“选择A,求和(C)
其中C<5000
和B=“&YEAR(TODAY())&”
分组
标签和(C)“'”,0)

选择一个,它们的方法不同于相同的方法。对于两个,这太广泛了。顺便说一句,对于countifs()范围必须是相同的大小和形状。你从第1行开始,其他的从第2行开始。使它们的大小相同。嗨,斯科特;前两个确实有效;我希望可以使用公式,但随后我会更新JS。我认为总和结果将始终与你的CountiF结果相同
=QUERY(A2:C, 
 "select A,sum(C) 
  where C < 5000 
    and B = "&YEAR(TODAY())&"
  group by A 
  label sum(C)''", 0)