Google sheets Google sheets在日期和类别上一次性使用过滤器

Google sheets Google sheets在日期和类别上一次性使用过滤器,google-sheets,filter,google-sheets-formula,google-query-language,Google Sheets,Filter,Google Sheets Formula,Google Query Language,我试图总结谷歌表单中的价值。我想要一个每月概览和每个类别的总数 我的数据具有以下特点: date, category, value 01-01-2021, blue, 50 02-01-2021, green, 100 01-02-2021, blue 50 15-01-2021, orange, 30 12-02-2021, orange, 50 18-01-2021, blue, 20 我想将其分组如下: month, category, value January, b

我试图总结谷歌表单中的价值。我想要一个每月概览和每个类别的总数

我的数据具有以下特点:

 date, category, value
 01-01-2021, blue, 50
 02-01-2021, green, 100
 01-02-2021, blue 50
 15-01-2021, orange, 30
 12-02-2021, orange, 50
 18-01-2021, blue, 20
我想将其分组如下:

 month, category, value
 January, blue, 70
 January, orange, 30
 February, blue, 50
 February, green, 100
 February, orange, 50
我设法对特定日期之间的值求和。因此,组合日期和值列,如上面的示例所示。现在,我想将该类别添加到其中

我的职能:

=SUMIFS(F2:F362;B2:B362;">="&D3;B2:B362 ;"<="&D4)
=SUMIFS(F2:F362;B2:B362;“>=”&D3;B2:B362;“试试:


或反向分发:

=QUERY(A1:C, 
 "select B,sum(C) 
  where A is not null 
  group by B 
  pivot month(A)+1", 1)


要添加外部日期边界,请执行以下操作:

=QUERY(A1:C, 
 "select B,sum(C) 
  where A >= date '"&TEXT(D3, "yyy-mm-dd")&"'
    and A <= date '"&TEXT(D4, "yyy-mm-dd")&"'
  group by B 
  pivot month(A)+1", 1)
=查询(A1:C,
“选择B,求和(C)
其中A>=日期“&”文本(D3,“yyy-mm-dd”)&”
和
=QUERY(A1:C, 
 "select B,sum(C) 
  where A >= date '"&TEXT(D3, "yyy-mm-dd")&"'
    and A <= date '"&TEXT(D4, "yyy-mm-dd")&"'
  group by B 
  pivot month(A)+1", 1)