![](/img/trans.png)
[英]Averaging + Summing a range of numbers in excel based on other cell values
[英]Summing costs of cell depending on the values in three other cells - Excel
如果我了解您想匯總每個業務部門每個月的成本。 這個公式應該對您進行輕微調整(因為我看不到您的列/行)。
=SUMPRODUCT(($A$2:$A$50=G$2)*($D$2:$D$50=$F3)*($C$2:$C$50*$B$2:$B$50))
- or if column "C" is the total
=SUMPRODUCT(($A$2:$A$50=G$2)*($D$2:$D$50=$F3)*($C$2:$C$50))
將G2
更改為您的月份標准
將F3
更改為您的業務標准
並相應地改變你的范圍
要打破這一點:
(A2:A50=G2) - Gets the cells that match the month criteria
(D2:D50=F3) - Gets the cells that match the business criteria
(C2:C50*B2:B50) - Multiply the Qty * Cost
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.