View Single Post
  #2   Report Post  
Domenic
 
Posts: n/a
Default


Try...

=SUMPRODUCT(--($A$1:$A$6="C"),--($B$1:$B$6=1))

OR

=SUMPRODUCT(--($A$1:$A$6=D1),--($B$1:$B$6=E1))

...where D1 contains your first criterion, such as C, and E1 contains
your second criterion, such as 1.

Hope this helps!

ckiraly Wrote:
I'm trying to do something that seems easy, but just don't know how to:

I want to count the number of times column B is not blank AND column A
is a specified value. ex:

A B

C 1
C
C 1
M 1
C
C 1

So I'm looking for the number of times that "C" AND "1" occur.

Any help is greatly appreciated.

Thanks!



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=385674