COUNT multiple ranges

  • Thread starter Thread starter _Scott_
  • Start date Start date
S

_Scott_

Hi Guys

This formlua has has me stumped, what I am trying to do is...

IF the data in column B equals say POP & the data in Column C equals JOP
that entry receives a count (both entries must be on the same row to receive
a count)


example data
A B C D E
1 POP JOP
2 PPP JOP
3 POP GUP
4 POP JOP
5 YUP KUP
6 POP JOP

So the above table would return the count of 3

any help will be appreciated
 
=SUMPRODUCT(--(B1:B6="POP"),--(C1:C6="JOP"))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Thanks for that works brilliantly
Bob Phillips said:
=SUMPRODUCT(--(B1:B6="POP"),--(C1:C6="JOP"))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
are you just counting the POP-JOP combination or would JOP-POP be valid
too?
 

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

Back
Top