简体   繁体   English

没有特定行的Excel总和

[英]Excel sum without specific rows

I need help with creating sum formula on Excel sheet. 我需要帮助在Excel工作表上创建总和公式。

I need on excel show sum formula without specific rows . 我需要在没有特定行的 excel show sum公式上。 In these rows for example is word "W" or something other way. 在这些行中例如是单词“W”或其他方式。 And I need show sum for example: 我需要显示总和例如:

=SUM(A1:A5) ........ without if column E have = "W" 

I tried checkbox solution, but I finding other better solution: 我尝试了复选框解决方案,但我找到了其他更好的解

excel示例图像

Please can you help me, how can I do it? 请你能帮助我,我该怎么办?

EDIT : 编辑:

i also posting you my excel sheet what i tried from your solution, but not working: 我还发布了我的excel表格,我从你的解决方案中尝试了什么,但没有工作:

example of excel sheet excel表的例子

如果列E的值如下所示,则可以使用SUMIF公式仅对列A求和:

=SUMIF(E:E,"w",A:A)

You are looking for something like =SUMPRODUCT(--(NOT(E1:E5="W")),A1:A5) . 您正在寻找类似=SUMPRODUCT(--(NOT(E1:E5="W")),A1:A5) Sumproduct multiplies everything in one column with everything in another, and sums the results. Sumproduct将一列中的所有内容与另一列中的所有内容相乘,并对结果求和。 -- converts a boolean statement into a 1 or a 0. --将布尔语句转换为1或0。

So, with this formula, you would be multiplying each item in column A with either a 1 or a 0. Obviously, things multiplied by zero do not have any effect on the final sum :) 因此,使用此公式,您可以将A列中的每个项目乘以1或0.显然,乘以零的事物对最终总和没有任何影响:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM