Comparing two columns & counting

S

snix

How do I count two coloumns to match two variables. This is as far as I have
got:

=COUNTIF(D111:D115,"Liver")+COUNTIF(E111:E115,"Prem")

Please help, getting desperate!!!
 
A

Aladin Akyurek

If you mean to count co-occurrences...

=SMPTODUCT(--($D$111:$D$115=H2),--($E$111:$E$115=G2)

where H2 houses a condition like "Liver" and G2 a condition like "Prem".
 
L

Leo Heuser

Isn't that a drainage function:
SwaMP-TO-DUCT

Apologize, Aladin, I just couldn't resist it <bg>
 

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