I am trying to calculate the totals of a column when the date column is within a certain month. The value to find is in a different date format to the format in the criteria range and I can't figure out how create a formula using the two different date formats. Here are the columns where I am trying to get the totals from:
Here is where I am trying to count the rows when it falls within a certain month and year:
This is the formula I have created but this doesn't work and just returns 0:
=COUNTIFS($A$3:$A$27, YEAR(G3), $A$3:$A$27, MONTH(G3))
I have also tried this but it is still returning 0:
=COUNTIFS($A$3:$A$27, "=YEAR(G3)", $A$3:$A$27, "=MONTH(G3)")


=sum(--(year($A$1:$A$10)=(year(C1))*(month($A$1:$A$10)=month(C1)))This is an array formula so press CTRL + SHIFT + ENTER.=COUNTIFS($A$3:$A$27, ">="&G3, $A$3:$A$27, "<="&EOMONTH(G3,0))