![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
CountIF multiple conditions
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 |
|
|||
|
Re: CountIF multiple conditions
=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. potentus wrote: > > 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 |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|