COUNTIF on one ranges with criteria from another

S

SaraK

Hello,

I want to perform a countif on a given range e.g.:
COUNTIF (G12:G29,"A")
after checking for a different criteria in a different range;
say A12:A29 equals GroupX.

In otherwords, how do I only count the C's in Range One when th
Range Two equals GroupX. The data is all text.

Thanks
 
P

Phonio

try using the subtotal function

it's something like this

=subtotal("a",a1:a10)

:cool
 
B

Bob Phillips

=SUMPRODUCT((A12:A29="GroupX")*(G12:G29="A"))

--

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