ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using Countif when column A=Num and Column B=Yes (https://www.excelbanter.com/excel-worksheet-functions/81615-using-countif-when-column-%3Dnum-column-b%3Dyes.html)

CMO

Using Countif when column A=Num and Column B=Yes
 
I have been trying to count the number of occurrences when the value in the
first column is 1277 and the value in the second column is "Yes". I have
come up with the following formula:

=SUMPRODUCT(('Master Report'!$H$2:$H$2000=B1)*('Master
Report'!$K$1:$K$2000="Yes"))

The result is #N/A

Please can anyone help!


Ardus Petus

Using Countif when column A=Num and Column B=Yes
 
=SUMPRODUCT(('Master Report'!$H$2:$H$2000=B1)*('Master
Report'!$K$2:$K$2000="Yes"))

Both arrays must have same number of rows

HTH
--
AP

"CMO" a écrit dans le message de
...
I have been trying to count the number of occurrences when the value in

the
first column is 1277 and the value in the second column is "Yes". I have
come up with the following formula:

=SUMPRODUCT(('Master Report'!$H$2:$H$2000=B1)*('Master
Report'!$K$1:$K$2000="Yes"))

The result is #N/A

Please can anyone help!





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

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