Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Count Cells that meet Criteria

I want to count all the X's in Cells A5:A10 if there is a C in Cells B5:B10.
Can someone help? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Count Cells that meet Criteria

=SUMPRODUCT(--(A5:A10="X"),--(B5:B10="C"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"kmason" wrote in message
...
I want to count all the X's in Cells A5:A10 if there is a C in Cells

B5:B10.
Can someone help? Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default Count Cells that meet Criteria

=SUMPRODUCT(--(A5:A10="X"),--(B5:B10="C"))

"kmason" wrote:

I want to count all the X's in Cells A5:A10 if there is a C in Cells B5:B10.
Can someone help? Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 195
Default Count Cells that meet Criteria

Bob,

why do we need "--" between the brackets? I did this formulae as

=SUMPRODUCT((A5:A10="X")*(B5:B10="C"))

and this too worked fine, but again I don't know why I need to use " *
" multiplication here.

Please do let me know both the things.

thanks

Shail



Bob Phillips wrote:
=SUMPRODUCT(--(A5:A10="X"),--(B5:B10="C"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"kmason" wrote in message
...
I want to count all the X's in Cells A5:A10 if there is a C in Cells

B5:B10.
Can someone help? Thanks


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Count Cells that meet Criteria

Both will work. For explanation of -- see
http://mcgimpsey.com/excel/formulae/doubleneg.html

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"shail" wrote in message
ups.com...
Bob,

why do we need "--" between the brackets? I did this formulae as

=SUMPRODUCT((A5:A10="X")*(B5:B10="C"))

and this too worked fine, but again I don't know why I need to use " *
" multiplication here.

Please do let me know both the things.

thanks

Shail



Bob Phillips wrote:
=SUMPRODUCT(--(A5:A10="X"),--(B5:B10="C"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"kmason" wrote in message
...
I want to count all the X's in Cells A5:A10 if there is a C in Cells

B5:B10.
Can someone help? Thanks






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 195
Default Count Cells that meet Criteria

Thanks Bernard, I understand.

Shail


Bernard Liengme wrote:
Both will work. For explanation of -- see
http://mcgimpsey.com/excel/formulae/doubleneg.html

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"shail" wrote in message
ups.com...
Bob,

why do we need "--" between the brackets? I did this formulae as

=SUMPRODUCT((A5:A10="X")*(B5:B10="C"))

and this too worked fine, but again I don't know why I need to use " *
" multiplication here.

Please do let me know both the things.

thanks

Shail



Bob Phillips wrote:
=SUMPRODUCT(--(A5:A10="X"),--(B5:B10="C"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"kmason" wrote in message
...
I want to count all the X's in Cells A5:A10 if there is a C in Cells
B5:B10.
Can someone help? Thanks



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Count Cells that meet Criteria

See http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed
explanation.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"shail" wrote in message
ups.com...
Bob,

why do we need "--" between the brackets? I did this formulae as

=SUMPRODUCT((A5:A10="X")*(B5:B10="C"))

and this too worked fine, but again I don't know why I need to use " *
" multiplication here.

Please do let me know both the things.

thanks

Shail



Bob Phillips wrote:
=SUMPRODUCT(--(A5:A10="X"),--(B5:B10="C"))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"kmason" wrote in message
...
I want to count all the X's in Cells A5:A10 if there is a C in Cells

B5:B10.
Can someone help? Thanks




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
How do I count wildcard text meeting certain criteria in EXCEL? cybermaksim Excel Worksheet Functions 1 February 17th 06 04:03 AM
Counting cells that meet 2 differnet criteria USChad Excel Worksheet Functions 1 September 7th 05 07:58 PM
count cells using multiple criteria Alex68 Excel Discussion (Misc queries) 4 May 24th 05 05:26 PM
Counting Values that meet another cells criteria Jess Excel Worksheet Functions 1 March 8th 05 02:42 AM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 02:37 AM


All times are GMT +1. The time now is 02:08 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"