ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Excel Formula with two clauses (https://www.excelbanter.com/excel-worksheet-functions/64228-excel-formula-two-clauses.html)

jmrd

Excel Formula with two clauses
 
How can I enter a formula in excel that counts two text clauses. For instance:
If range A1:A50=John AND range B1:B50=Smith, count 1?

Bob Phillips

Excel Formula with two clauses
 
=SUMPRODUCT(--A1:A50="John"),--(B1:B50="Smith"))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"jmrd" wrote in message
...
How can I enter a formula in excel that counts two text clauses. For

instance:
If range A1:A50=John AND range B1:B50=Smith, count 1?





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

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