ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Counif multiple condition (https://www.excelbanter.com/excel-worksheet-functions/117898-counif-multiple-condition.html)

Avadivelan TCS

Counif multiple condition
 
Hi,
I want to count all the "A" or "B" in the range.
Ex:
A
C
D
E
B
A
Result : 3.

Thanks in advance for your reply.

Biff

Counif multiple condition
 
Try one of these:

=COUNTIF(A1:A6,"A")+COUNTIF(A1:A6,"B")

=SUM(COUNTIF(A1:A6,{"A","B"}))

Biff

"Avadivelan TCS" wrote in message
...
Hi,
I want to count all the "A" or "B" in the range.
Ex:
A
C
D
E
B
A
Result : 3.

Thanks in advance for your reply.




Avadivelan TCS

Counif multiple condition
 
Thanks. Its working.

"Biff" wrote:

Try one of these:

=COUNTIF(A1:A6,"A")+COUNTIF(A1:A6,"B")

=SUM(COUNTIF(A1:A6,{"A","B"}))

Biff

"Avadivelan TCS" wrote in message
...
Hi,
I want to count all the "A" or "B" in the range.
Ex:
A
C
D
E
B
A
Result : 3.

Thanks in advance for your reply.





Biff

Counif multiple condition
 
You're welcome. Thanks for the feedback!

Biff

"Avadivelan TCS" wrote in message
...
Thanks. Its working.

"Biff" wrote:

Try one of these:

=COUNTIF(A1:A6,"A")+COUNTIF(A1:A6,"B")

=SUM(COUNTIF(A1:A6,{"A","B"}))

Biff

"Avadivelan TCS" wrote in
message
...
Hi,
I want to count all the "A" or "B" in the range.
Ex:
A
C
D
E
B
A
Result : 3.

Thanks in advance for your reply.








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

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