I'm trying to count the occurrence of a given month in a column of months. I've tried various formulas using both COUNTIF and SUMPRODUCT, but every method returns "wrong data type" or 0. I've even created a simplified sheet with the most basic example, and it's still returning the error.
Any help would be appreciated:
The formula I'm using to count, for example, the number of times a date in April occurs:
=SUMPRODUCT((A:A>=DATEVALUE("4/1/2018"))*(A:A<=DATEVALUE("4/30/2018")))
Returns wrong data type
=COUNTIFS(A:A,">=4/1/2018",A:A,"<=4/30/2018")
Returns 0
Once this is working properly, I then will need to expand the formula to only count the number of months in the column corresponding to text in another column. In the pasted graphic above, how many 'dog' entries for April.


