CountIf formula question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a spreadsheet in Excel 2003 and Column A has dates in the following
formats: 1/1/2007. I'm trying to create a Formula that counts how many
cells have January on them, so I created something like this:
Countif(A1:15), 1/2007, but is not working because it returns 0. is there a
way to Count the number of cells with January on them?

Thanks,
 
=SUMPRODUCT(--(A1:A15<>""),--(MONTH(A1:A15)=1))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Similar Threads


Back
Top