Excel 2003 - complex COUNTIF

A

atferrari

I was asked to help a student with the basics of Excel. It's embarrasin
but I couldn't properly solve this:

Having 69 students, males and females, (M and F) of varying ages, I a
asked to calculate in a cell the number of females older than 17.

I tried to use the function COUNTIF, as follows:

=COUNTIF(C2:C70;AND(E2:E70="F";D2:D70>17))

range C2:C70 with the names (I expect the function to count over thi
range's cells

range D2:D70 with the ages

range E2:E70 with *F* or *M*

What I am doing wrong? (Using ranges instead of single cell, perhaps?

I know it can be done with a matrix (product) but not at the level o
this student who is just starting with Excel

The only way I found is testing one of the ranges to get TRUE/FALSE i
a column and the applying COUNTIF to THAT column

Do you know something more elegant and practical

Yes, I know Excel 2007 has COUNTIFS but I use 2003
 

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