If you want to count the entries in one table in Excel, which fulfill a certain condition, you can use countif. This looks like:
=countif(a:a;5)
This will count all cells, which have the value 5.
But sometimes, you might want to do this:
Count all values where the corresponding values are as follows:
A:A=”Heaven” and B:B=”and” and C:C=Heaven
You can not do this with countif. But it works with:
=SUMPRODUCT((A1:A4=”Heaven”)*(B1:B4=”and”)*(C1:C4=”Hell”))
This will just multiply the bool-results of the comparisons and sum them up.
That’s it.