Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / August 2006

Tip: Looking for answers? Try searching our database.

Count Cells that meet Criteria

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kmason - 24 Aug 2006 14:59 GMT
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
Bob Phillips - 24 Aug 2006 15:17 GMT
=SUMPRODUCT(--(A5:A10="X"),--(B5:B10="C"))

Signature

HTH

Bob Phillips

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

> 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
shail - 24 Aug 2006 15:33 GMT
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

> =SUMPRODUCT(--(A5:A10="X"),--(B5:B10="C"))
>
[quoted text clipped - 8 lines]
> B5:B10.
> > Can someone help?  Thanks
Bernard Liengme - 24 Aug 2006 15:41 GMT
Both will work. For explanation of -- see
http://mcgimpsey.com/excel/formulae/doubleneg.html

best wishes
Signature

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

> Bob,
>
[quoted text clipped - 23 lines]
>> B5:B10.
>> > Can someone help?  Thanks
shail - 24 Aug 2006 16:19 GMT
Thanks Bernard, I understand.

Shail

> Both will work. For explanation of -- see
> http://mcgimpsey.com/excel/formulae/doubleneg.html
[quoted text clipped - 32 lines]
> >> B5:B10.
> >> > Can someone help?  Thanks
Bob Phillips - 24 Aug 2006 16:31 GMT
See http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed
explanation.

Signature

HTH

Bob Phillips

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

> Bob,
>
[quoted text clipped - 23 lines]
> > B5:B10.
> > > Can someone help?  Thanks
Sloth - 24 Aug 2006 15:20 GMT
=SUMPRODUCT(--(A5:A10="X"),--(B5:B10="C"))

> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.