setting two conditions for countif

D

Danny J

Hi folks,

I am stuck and any help would be appreciated. I want to set a condition
which counts the number of people who have come on an outlook course. I
created the following equation:- =countif(A1:E20,and(b2="outlook",c2="y")).
A1:A20 being the worksheet, column A being the delegate name, column B the
course name and column c being did the delegate attend, y/n?

Looking at it I realise it must be wrong but cannot think of what the answer
should be.

Help!

Thanks,

Danny
 
P

Peo Sjoblom

One way

=SUMPRODUCT(--(A1:A20="name"),--(B1:B20="outlook"),--(C1:C20="y"))

if you want to count all names in A1:A20 when b is outlook and c is y use

=SUMPRODUCT(--(A1:A20<>""),--(B1:B20="outlook"),--(C1:C20="y"))


Regards,

Peo Sjoblom
 
D

Danny J

Thanks Peo,

I have some questions concerning Sum product which I have sent to the
newsgroup...hopefully it will appear soon.

Best wishes,

Danny
 

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