Countif

J

jay

I have two worksheets. I would like to have a formula that counts data
according to the following conditions.

Worksheet 1
A B C
02/15/2009 Keyword Keyword
01/14/2009 Keyword Keyword
01/31/2009 Keyword Keyword

Worksheet 2
A B C
January Total Keyword Total Keyword
February Total Keyword Total Keyword

I would like staff to be able to enter data into Worksheet 1 and have
Worksheet 2 automatically count the occurrences of the keyword in the given
month (January or February, etc.).
 
J

Jacob Skaria

Try

=SUMPRODUCT((TEXT(Sheet1!$A$1:$A$100,"mmmm")=A1)*
(Sheet1!$B$1:$C$100="keyword"))
 
J

jay

Jacob, this is working for some months but not others? I can't seem to find
out why. What exactly does the mmmm stand for?


=SUMPRODUCT((TEXT(Sheet1!$A$2:$A$750,"mmmm")=A6)*(Sheet1!$C$2:$C$750="assault on resident"))
 

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

Countif Formulas 2
possible countif formula? 3
VBA code relative to current date 5
Subtotal by 2 different criteria 1
Access Access Eliminate Blank Query Results 1
Working out VAT owed 1
Intersect and Union 2
COUNTIF 10

Top