Home » excel » Having issues with SUMIFS formula in excel for two criteria

Having issues with SUMIFS formula in excel for two criteria

Posted by: admin May 14, 2020 Leave a comment

Questions:

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")
How to&Answers:

Use COUNTIFS()

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