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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel count with 2 conditions



 
 
Thread Tools Display Modes
  #1  
Old December 23rd, 2009, 07:34 PM posted to microsoft.public.excel.misc
Janet
external usenet poster
 
Posts: 211
Default Excel count with 2 conditions

I'm sure this is an easy one for you but I just can't get it to work
correctly. I have a spreadsheet that I want to count certain criteria.
Example:
A B C
Name Gender Score
Calvin M 3
William M 4
Jessica F 1
Sarah F 3
Bryan M 1
Anna F 3

I need to how many females scored a 3. What would you suggest I use for a
formula?
  #2  
Old December 23rd, 2009, 07:39 PM posted to microsoft.public.excel.misc
mike
external usenet poster
 
Posts: 3,942
Default Excel count with 2 conditions

=SUMPRODUCT(--(B1:B6="F")*(C1:C6=3))

"janet" wrote:

I'm sure this is an easy one for you but I just can't get it to work
correctly. I have a spreadsheet that I want to count certain criteria.
Example:
A B C
Name Gender Score
Calvin M 3
William M 4
Jessica F 1
Sarah F 3
Bryan M 1
Anna F 3

I need to how many females scored a 3. What would you suggest I use for a
formula?

  #3  
Old December 23rd, 2009, 09:01 PM posted to microsoft.public.excel.misc
wx4usa
external usenet poster
 
Posts: 121
Default Excel count with 2 conditions

On Dec 23, 2:39*pm, Mike wrote:
=SUMPRODUCT(--(B1:B6="F")*(C1:C6=3))

"janet" wrote:
I'm sure this is an easy one for you but I just can't get it to work
correctly. *I have a spreadsheet that I want to count certain criteria. *
Example:
* *A * * * * * B * * * * * *C
Name * * *Gender * * Score
Calvin * * * M * * * * * *3
William * * M * * * * * *4
Jessica * * *F * * * * * *1
Sarah * * * F * * * * * * 3
Bryan * * * *M * * * * * *1
Anna * * * * F * * * * * * 3


I need to how many females scored a 3. *What would you suggest I use for a
formula? *


Just curious, what does the "--" in the formula do?
 




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 05:28 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.