Replying to myself to update this thread and to ask another question.
I said previously that =DATE(,1,) worked. Oh no it didn't. The year it generated was wrong. Anyway I found a different way of achieving what I wanted.
However another little oddity reared its head.
Using the array formula in
Ian72's post, I extended it further. That's when I found an
apparent oddity.
Basically I wanted 4 conditions to be true so an AND() function seemed appropriate. Entering
=COUNT(IF(AND(YEAR(Dates)=YEAR(J$38),MONTH(Dates)=MONTH(J$38),DegreesF>$T41,DegreesF<$T42),1))
as an array formula didn't work, it always gave a result of 1.
However entering
=COUNT(IF(YEAR(Dates)=YEAR(J$38),IF(MONTH(Dates)=MONTH(J$38),IF(DegreesF>$T41,IF(DegreesF<$T42,1)))))
as an array formula gave me the result I wanted.
Why the difference?
As far as I can see they are logically the same, unless it's something to do with setting it as an array formula.
Any ideas?
Tony
We have more and more laws, and less and less enforcement