![](/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.