ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Countif (https://www.excelbanter.com/excel-worksheet-functions/137294-countif.html)

SeanHooke

Countif
 
Hi,
I want to be able to count say "dog" if listed in one column if a "tick" or
yes/no value is entered into a second column in the same row position. i.e.
if the customer is "a" and we met delivery, so "yes" on the same line, count
1.

Thanks,
Sean.

JE McGimpsey

Countif
 
One way:

=SUMPRODUCT(--(A1:A1000="a"),--(B1:B1000="yes"))

See http://www.mcgimpsey.com/excel/doubleneg.html for an explanation of
how it works.

In article ,
SeanHooke wrote:

Hi,
I want to be able to count say "dog" if listed in one column if a "tick" or
yes/no value is entered into a second column in the same row position. i.e.
if the customer is "a" and we met delivery, so "yes" on the same line, count
1.

Thanks,
Sean.


Peo Sjoblom

Countif
 
=SUMPRODUCT(--(A2:A100="dog"),--(B2:B100="yes"))

Replace the hardcoded values with cells where you put the criteria

Regards,

Peo Sjoblom


"SeanHooke" wrote in message
...
Hi,
I want to be able to count say "dog" if listed in one column if a "tick"
or
yes/no value is entered into a second column in the same row position.
i.e.
if the customer is "a" and we met delivery, so "yes" on the same line,
count
1.

Thanks,
Sean.





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

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