Thread: Countif
View Single Post
  #2  
Old May 25th, 2010, 05:35 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Countif

Try

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

--
Jacob (MVP - Excel)


"jay" wrote:

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.).