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 / New Users / April 2008

Tip: Looking for answers? Try searching our database.

CountIF multiple conditions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
potentus - 30 Apr 2008 19:50 GMT
Hi,

I have been searching for some help:

I have multiple columns and 2000 rows with numbers

I want the to count only those instances where the number 2 appears in
column A
AND the number 5 also appears in columns B

Thanks for the help

zach
Dave Peterson - 30 Apr 2008 19:57 GMT
=sumproduct(--(a1:a2000=2),--(b1:b2000=5))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers.  The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

And if you're using xl2007, you may want to look at =countifs() in excel's help.

> Hi,
>
[quoted text clipped - 9 lines]
>
> zach

Signature

Dave Peterson


Rate this thread:






 
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.