A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Countif



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2010, 04:23 AM posted to microsoft.public.excel.worksheet.functions
Jay
external usenet poster
 
Posts: 704
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  
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.).


  #3  
Old May 28th, 2010, 02:31 AM posted to microsoft.public.excel.worksheet.functions
Jay
external usenet poster
 
Posts: 704
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  
Old May 28th, 2010, 03:21 AM posted to microsoft.public.excel.worksheet.functions
Jay
external usenet poster
 
Posts: 704
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.).


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:21 PM.


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