countif by date references

04/30/20 Edited 04/30/20
Accepted

I have a column of dates in one sheet called {Dates}

In a second sheet I want to analyze the dates based on if they fall into a specific calendar month

I have a column called Y (year) filled with data like 2020, and a column called M (month) filled with data like 1 (i.e. January) using the following formula:

=COUNTIFS({Dates}, MONTH(@cell) = M1, {Dates}, YEAR(@cell) = Y1)

I'm getting an invalid data type as a result.

I've also try comparing them to a column formated as a date called "target" as Month(@cell) =Month(target1) which also doesn't work.

Best Answer

Answers

Sign In or Register to comment.