ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   not a logical 'and' in excel? (https://www.excelbanter.com/excel-worksheet-functions/13153-not-logical-excel.html)

marmie2005

not a logical 'and' in excel?
 
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

Bob Phillips

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

--

HTH

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


"marmie2005" wrote in message
...
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





All times are GMT +1. The time now is 12:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com