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 2007

Tip: Looking for answers? Try searching our database.

countif

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luc Vandenhoeck - 03 Apr 2007 22:38 GMT
Hi
Is it possible to use two criteria with this function?
THX
Pete_UK - 03 Apr 2007 22:43 GMT
No, but you can use SUMPRODUCT( ... ) or an array-entered
SUM(IF( ... )) to achieve multi-criteria counting. Perhaps if you
could post some details of what you want to do ...

Pete

On Apr 3, 10:38 pm, "Luc Vandenhoeck" <luc.vandenhoe...@pandora.be>
wrote:
> Hi
> Is it possible to use two criteria with this function?
> THX
Bob I - 03 Apr 2007 22:50 GMT
the "Criteria" have to evaluate to true for the count if to work. Figure
out how to make what "two criteria" you have in mind equal true and you
have the bugger licked.

People here would offer examples IF you provided a sample of your
"criteria" and data.

> Hi
> Is it possible to use two criteria with this function?
> THX
Bob Phillips - 03 Apr 2007 22:54 GMT
=SUMPRODUCT(--(rng1="text value"),--(rng2=numeric_value))

Signature

---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Hi
> Is it possible to use two criteria with this function?
> THX
Ron Coderre - 04 Apr 2007 01:02 GMT
Let's see if I understand correctly, by way of example:

With
A1:A10 containing this list
Dave
Dave
Steve
Steve
Steve
Bill
Bill
Jane
Jane
Jane

If you want to count the number of cells that
contain either "Dave" OR "Bill" (in this case: 4)

Try this:
B1: =SUM(COUNTIF(A1:A10,{"dave","bill"}))

Alternatively,
B1: Dave
B2: Bill

C1: =SUMPRODUCT(COUNTIF(A1:A10,B1:B2))

Is that what you meant?

Does that help?
***********
Regards,
Ron

XL2002, WinXP

> Hi
> Is it possible to use two criteria with this function?
> THX
joeu2004 - 04 Apr 2007 01:32 GMT
On Apr 3, 1:38 pm, "Luc Vandenhoeck" <luc.vandenhoe...@pandora.be>
wrote:
> Is it possible to use two criteria with this function?

Not really.  But if the two criteria are something like 100<range and
range<=200, the following might work for you:

=countif(range, ">100") - countif(range, ">200")

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.