"COUNTIF(AND"

J

John_Lamb

I have 2 columns of data the first contains students classes, the
second their gender. I would like to enter a function that counts the
male or female students in a group. I have tried "COUNTIF(AND.... with
no success
 
B

Bob Phillips

=SUMPRODUCT(--(A1:A100="class"),--(B1:B100="male"))

--

HTH

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

CLR

Hi John..........

A Pivot Table could be used here also to give you a nice display of each
Class and the count of Males and Females in each and the total students in
each as well.........

Vaya con Dios,
Chuck, CABGx3
 
J

John_Lamb

Thanks to all for the help, I managed using the sumproduct function. I
will have a look at pivot tabled as well.
 

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