#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Countif

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
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.).


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Countif

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

"Jacob Skaria" wrote:

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


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jay Jay is offline
external usenet poster
 
Posts: 671
Default Countif

Thank you, Jacob. Ignore my other reply. I found extra spaces in the two
month columns that wouldn't work. You're the greatest!

"Jacob Skaria" wrote:

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
countif?? Antonio Excel Discussion (Misc queries) 14 May 10th 08 05:18 PM
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


All times are GMT +1. The time now is 09:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"