Countif - Array Question

M

Mike

I want to use a function to do determine the number of Yes and No Answers to
different questions from different departments. For example, here is a table:

DEPT QUESTION A QUESTION B QUESTION C
Adm No No Yes
Adm Yes Yes No
Comm No No
Fin Yes Yes Yes
Fin Yes No No

I want to add up the number of responses like so

QUESTION A QUESTION B QUESTION C
Adm Yes 1 1 1
No 1 1 1
Comm Yes ................
No

I tried using a COUNTIF array function like this:

COUNTIF (if ((DEPT Array="ADMIN"), QUESTION A Array, ""), "Yes")

This is not working - PLEASE HELP!
 
E

Elkar

Try SUMPRODUCT if you have more than 1 condition to check.

=SUMPRODUCT(--(A2:A100="Adm"),--(B2:B100="Yes"))

HTH,
Elkar
 

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