[英]Excel, how can i count values next to cells with the same name
Imagine that we have this table enter image description here想象一下,我们有这个表在此处输入图像描述
How can i count apples?我怎么数苹果?
I hope this will be useful to you我希望这对你有用
=SOMMEPROD((A2:A5="Apple")*(B2:B5))
Use SUMIF as follows,按如下方式使用 SUMIF,
=SUMIF (range, criteria, [sum_range]) =SUMIF(范围,标准,[sum_range])
In your case this is在你的情况下,这是
=SUMIF(A2:A5,"Apples",B2:B5) =SUMIF(A2:A5,"苹果",B2:B5)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.