Unless cell B1 contains the Literal String of Text Characters: JANUARY-DECEMBER
your formula will fail.
What is the data in column B?
As a quick work around, since you are looking for the entire Year, just
check to make sure B1 is Not Blank:
B1 <> ""
See if that helps.