[英]Excel, Calculate Sum of one column where the corresponding row in another column equals a value
So I have the following formula which works perfectly to calculate the SUM of an entire column of another worksheet which I reference indirectly.所以我有以下公式可以完美地计算我间接引用的另一个工作表的整个列的总和。
=SUM(INDIRECT(A4&"!C:C"))
What I need now is to calculate the SUM of C (as above) but only when the relevant row in Column D is equal to Yes.我现在需要的是计算 C 的总和(如上),但仅当 D 列中的相关行等于 Yes 时。
Can this be done?这能做到吗?
Thanks,谢谢,
试试这个
=SUMIF(INDIRECT(A4&"!D:D"),"Yes",INDIRECT(A4&"!C:C"))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.