count between dates

D

Doug Loewen

I have a table with a column of dates from the years 2001
to 2005. The cells are formatted as 5-Jul-04. Is there a
formula I can use to search the column and count all the
dates in a given year, i.e. 10 dates in 2004.
 
R

Ron Rosenfeld

I have a table with a column of dates from the years 2001
to 2005. The cells are formatted as 5-Jul-04. Is there a
formula I can use to search the column and count all the
dates in a given year, i.e. 10 dates in 2004.

If the dates are in column A:

=COUNTIF(A:A,">"&DATE(2004,1,0))-COUNTIF(A:A,">"&DATE(2004,12,31))


--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top