user3105519
user3105519

Reputation: 309

Having issues with SUMIFS formula in excel for two criteria

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")

Upvotes: 1

Views: 77

Answers (1)

Scott Craner
Scott Craner

Reputation: 152450

Use COUNTIFS()

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

Upvotes: 2

Related Questions