Forum Discussion

Hogstad_Raadgivning's avatar
Hogstad_Raadgivning
Iron Contributor
Jun 08, 2021
Solved

Excel Countifs return true if OR. (?)

Hi,   I was sure Countifs counted with AND, when all logical test was true. But This one list if one of the conditions is met.   =Countifs(B4:B9;B2;C4:C9;E4:E9)     Any excplanation to t...
  • HansVogelaar's avatar
    HansVogelaar
    Jun 08, 2021

    Hogstad_Raadgivning 

    As you have found, COUNTIFS is not the correct function for this. COUNTIFS(C4:C9,E4:E9) compares every cell in C4:C9 with every cell in E4:E9 instead of C4 with E4, C5 with E5 etc.

    Your SUMPRODUCT formula is the one to use.

Resources