[英]Excel COUNTIFS formula match 'not' x
So, I have two columns of interest, which I want to be able to COUNTIFS
on, an example of the sort of data is as follows. 因此,我有两列感兴趣的列,我希望能够对
COUNTIFS
列进行排序,数据的示例如下。
Stage | Revasc
I | N
II | N
I | CABG
III | PCI
AE | CABG+PCI
I wanted to count these as two variables, one of numbers with revasc, and numbers without, but the easiest way I can think of this would be: 我想将它们视为两个变量,一个是带有revasc的数字,另一个是不带数字的数字,但是我能想到的最简单的方法是:
COUNTIFS(A2:A6, "I", B2:B6, "NOT N")
But I can't find how to represent NOT
in excel formulae. 但是我找不到如何在Excel公式中表示
NOT
。 In usual regex it would be !N
but this clearly doesn't work. 在通常的正则表达式中,它将是
!N
但这显然不起作用。 Any pointers? 有指针吗?
使用=COUNTIFS(A2:A6, "I", B2:B6, "<>N")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.