I need a macro to count how many rows match some criteria.
In this example, the macros needs to be able to count where column2 is A or B and where column3 is X or W:
column1 column2 column3
name1 A X
name2 B X
name3 A W
name4 C X
name5 A Z
name6 C X
name7 B W
It should return 4, as name1, name2, name3, name7 are matching.
I have tried with COUNTIFS and array formulas but it seems that it's not possible without VBA.
Is this possible?