A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I count number of cels the matches 2 conditions ?



 
 
Thread Tools Display Modes
  #1  
Old February 27th, 2005, 07:35 PM
Abra
external usenet poster
 
Posts: n/a
Default How do I count number of cels the matches 2 conditions ?

How do I count number of cels the matches 2 conditions (I am using COUNTIF
and AND) ??? I need the total of cels that matches the 2 conditions and not
the sum of the cels.
Thanks
  #2  
Old February 27th, 2005, 07:45 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default

=SUMPRODUCT(--(A1:A100="value1"),--(A1:A100="value2"))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Abra" wrote in message
...
How do I count number of cels the matches 2 conditions (I am using COUNTIF
and AND) ??? I need the total of cels that matches the 2 conditions and

not
the sum of the cels.
Thanks



  #3  
Old February 27th, 2005, 08:56 PM
Ragdyer
external usenet poster
 
Posts: n/a
Default

You could use Countif() in conjunction with Sum() to count against any
number of conditions:

=SUM(COUNTIF(A1:A100,{"cond#1","cond#2","cond#3"}) )
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Abra" wrote in message
...
How do I count number of cels the matches 2 conditions (I am using COUNTIF
and AND) ??? I need the total of cels that matches the 2 conditions and

not
the sum of the cels.
Thanks


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Access 2000? Air-ron General Discussion 2 October 29th, 2004 06:19 PM
Count and display the Number of "Yes" in various fields ehale Setting Up & Running Reports 6 September 30th, 2004 04:47 PM
auto number and count cells not values within the cells Judi J Worksheet Functions 5 August 27th, 2004 05:40 AM


All times are GMT +1. The time now is 08:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.