简体   繁体   English

计算具有特定属性的行

[英]Count rows with specific property

I have the following table: 我有下表:

在此处输入图片说明

I only want to count each rows which look like that: K,0,1 我只想计算看起来像这样的每一行: K,0,1

I tried 我试过了

=AND(COUNTIF(A:A;"K");COUNTIF(B:B;0);COUNTIF(C:C;1))

However that only gives me a boolean value back and does not count? 但是,那只给我一个布尔值,不算在内?

I really appreciate your suggestions! 我非常感谢您的建议!

COUNTIFS extends the usefulness of the COUNTIF function by allowing you to specify from 2 to 127 criteria rather than just one as in COUNTIF. COUNTIFS允许您指定2到127个条件,而不仅仅是COUNTIF中的一个,从而扩展了COUNTIF函数的用途。

COUNTIFs(A:A;"K";B:B;0;C:C;1) It should work fine. COUNTIFs(A:A;"K";B:B;0;C:C;1)应该可以正常工作。 And solution is already stated by simoco via comment. simoco已经通过评论提出了解决方案。

Let me know, if it works. 让我知道,是否有效。

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

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