Counting multiple criteria

K

KCR

Hello

I am trying to count a combination of criteria across a visitor information
log.

For example I am trying to count how many times a NEW visitor with LUNG
cancer attended a BOOKED activity. E.g. from the below I would want to be
able to end up with the answer 2:

New or Return Cancer Type Activity

New Lung Drop In
Return Skin Booked
New Lung Booked
New Skin Drop In
New Lung Booked

Can anyone help? I hope this make sense!

Many thanks
KCR
 
A

Ashish Mathur

Hi,

you can also use the following array formula Ctrl+Shift+Enter

=sum(if((range1="New")*(range2="Lung")*(range3='Drop In"),1)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 
P

Peo Sjoblom

You can shorten that to

=SUM((range1="New")*(range2="Lung")*(range3="Drop In"))


--


Regards,


Peo Sjoblom
 

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