not a logical 'and' in excel?

G

Guest

I am trying to do a countif statement for if two columns fulfill certain
criteria, as in:
If column A contains "text1" AND(&&) column B contains "text2" then count,
if only one of the criteria's is matched then dont count!

But i cant seem to get the && to work.
Thanks
 
B

Bob Phillips

=sumproduct(--(a1:1000="text1"),--(B1:B1000="text2"))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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