![](/img/trans.png)
[英]How to set value in another column of Google Sheets based on certain value of column in the same sheets
[英]Google Sheets, how to count if text is set column is set to true
我有一个具有以下布局的 Google 表格
Key Points Category Done
1 4 A Yes
2 4 B
3 1 B
4 5 C Yes
5 7 D Yes
6 4 B
7 2 C Yes
如果“完成”为“是”,我需要一个可以根据类别对分数求和的公式。 所以 output 应该是
Points done Category
7 C
4 A
7 D
我可以使用哪个公式? (我不想用 pivot 表)
尝试:
=QUERY({A2:D}; "select sum(Col2),Col3 where Col4 = 'Yes' group by Col3 label sum(Col2)''")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.