[英]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.