Hello, I'm trying to count how many dates in each state per year (snapshot below). I've tried this formula but it's not counting correctly:
=COUNTIFS({State/country}, @cell = "NSW", {Date 6th Day was worked:}, AND(IFERROR(YEAR(@cell), 0) - 2021))
What do I need to change?