Count if for # for how many cells contain a specific date range

  • Thread starter Thread starter Bryan
  • Start date Start date
B

Bryan

I have a worksheet with multiple dates in a column. I
want to count how many cells in that column contain dates
for a particular month. Right now I am using countif with
this formula ">12/31/2003 and <02/01/2004" to try to get
Jan 04. I know that I have 18 cells with Jan 04 dates,
but the formula is returning 1. Please advise.
 
Hi
try something like
=SUMPRODUCT(--(YEAR(A1:A100)=2003),--(MONTH(A1:A100)=12))
 
Try


=COUNTIF(Range,">"&DATE(2003,12,31)-COUNTIF(Range,">"&DATE(2004,01,31)
 
Leave those in there! That's not an abbreviation or shorthand or anything.
 

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

Back
Top