简体   繁体   English

Excel,计算一列的总和,其中另一列中的相应行等于一个值

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

相关问题 在Excel中,对每行中一列中的所有值求和,其中另一列是特定值 - In Excel, sum all values in one column in each row where another column is a specific value Excel等于相应列中的相同值 - Excel equals same value in corresponding column 根据另一列中的值求和一列中的值-Excel 2013 - Sum the value in one column based on the value in another column - excel 2013 将一列中的所有数值相加,而另一列中的日期年份等于2014? - Sum all number values in one column where year of date in another column equals 2014? Excel-在另一列中找到匹配项的行中获取列的值 - Excel - Get value of a column in a row where match found in another column 如果另一列的对应行中有条目,则对一列中的字段求和 - Sum fields in a column if there is an entry in a corresponding row in another column 从一列中的一行复制一个单元格,具体取决于另一列中相应行中的值 - Copy cells from one a row in a column dependant on a value in the corresponding row in another column Excel:为A列的相同值计算B列的平均值,其中仅存在B列的所有值对应于相同的A值 - Excel: calculate average of column B for same values of column A where only all values of column B to corresponding same A value is present excel vba-在列中查找单元格的值并记录相应行的另一列中的文本 - excel vba - finding a value of a cell in a column and recording what text is in the another column of the corresponding row Excel:对应单元格中匹配特定值的行的列中的总和 - Excel: Sum Values in a Column for Rows Where a Particular Value is Matched in a Corresponding Cell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM