Count rows with 2 criteria

S

Shane

Hi,
I am trying to count the number of rows that satisfy 2
criteia, eg A="Q" and B="1" (where Col B is a text field
and not a number), in this case the answer would be 2

A B
Q 1
Q 1
R 3
S 2
S 1
R 2

Any help would be greatly appreciated.
 
B

Bob Phillips

Hi Shane,

=SUMPRODUCT((A1:A100="Q")*(B1:B100="1"))

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top