简体   繁体   中英

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.

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:

COUNTIFS(A2:A6, "I", B2:B6, "NOT N")

But I can't find how to represent NOT in excel formulae. In usual regex it would be !N but this clearly doesn't work. Any pointers?

使用=COUNTIFS(A2:A6, "I", B2:B6, "<>N")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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