I have a table that contains MIC values for a drug. I have another column that contains a binary response if a particular gene is present…its either “YES” or “NO”.

Column A contains the name of each sample. Column B contains MICs ranging from 0.03 to 16. Column C contains “YES” or “NO”. I’d like a formula that counts the number of “YES” with respect to MICs of 16 only.

Can someone help me? My formula keeps returning 0.

The formula I’m using is:

```
=SUMIFS(C2:C349,A2:A349,"YES",B2:B349,"16")
```

Use COUNTIFS()

```
=COUNTIFS(C2:C349,"YES",B2:B349,"16")
```

Tags: excelexcel