這是我的表:如何根據Google工作表中的下拉範圍計算總計?
Item | Person | Price
Shoes | John | $25
Clothes | John | $25
Pants | John | $50
Bags | Sarah | $50
Watch | Sarah | $150
Aftershave | John | $15
我成功的人表,使之下拉下面的教程。
我想知道另一列名爲總計將制定出基於用戶總:
Total Sarah:
Total John:
應該動態地找到所有Sarah
例如和更新的總。我一直在使用sumif
嘗試,但我該怎麼做sumif
如果選定列的所有行匹配的總
這是我的樣紙:
https://docs.google.com/spreadsheets/d/13MwyK-Suvvg9LfvzFcW-ojL9ilvb5OKCFjQwXgI4h70/edit?usp=sharing
我也試過
=query(sum(B:B,"count * where B ='John'" ,-1))
和
=sum(query(B:B, "select B where B='John'")+query(C:C, "select B,C where B='John'"))
謝謝,我發現這個解決方案最乾淨最簡單。有點像mySQL。我喜歡這個事實,你只需把這個專欄組合起來就可以了。很乾淨的解決方案 – TheBlackBenzKid
有時候比較容易吸收小步驟:) – pnuts