Try this:
=(COUNTIF(B1:B4,"home")+ COUNTIF(C1:C4,"weekend"))
Tom --
=SUMPRODUCT((C2:C10="Home")*(D2:D10="Weekend"))
will you the count of game records for which both criteria/conditions simultaneously hold.
If you are interested in a count by month, enter month numbers 1 to 12 say in G from G2 on, and
in H2 enter: =SUMPRODUCT((MONTH($A$2:$A$10)=G2)*($C$2:$C$10="Home")*($D$2:$D$10="Weekend"))
Copy down this till to the row of the month number 12.
Note. I assumed that A2:D10 houses your sample data throughout the above.
Aladin
========
That was my first instinct too, but it gives the total number of home games PLUS the total number of weekend games. I need to get the number of games that are BOTH home and weekend, but countif only seems to allow one criteria...
Thanks!
-Tom
If Column B and C were the "Home/Away" and the
"Weekend/Weekday/Night" columns respectively...
=(COUNTIF(B1:B4,"home")+ COUNTIF(C1:C4,"weekend"))
would produce a count of 4 instead of the correct
value, 1.
The array formula, {=SUM((C1:C4="Home")*(D1:D4="Weekend"))},
is needed to produce the correct results.
Note: Array formulas must be entered using the
Control+Shift+Enter key combination. The
outermost braces, {}, are not entered by you --
they're supplied by Excel in recognition of a
properly entered array formula.