I have a column (A) that contains a series of dates in the format mm/dd/yyyy
. I want to run a count to return how many of them were in 2013.
Is this possible?
I tried using this formula, but it didn't work:
=COUNTIF (ARRAYFORMULA ( LEFT (C:C, 4)), "2013")
Best Answer
In addition to the solution provided by OnenOnlyWalter, here's another formula:
The
YEAR
function simply returns the year in 4 digits. TheARRAYFORMULA
will just take on the complete column and theCOUNTIF
will finish it off by counting the occurrences.If you're using a header, then you can adjust the above formula like this: