ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   EXCEL multiple criteria in countif function (https://www.excelbanter.com/excel-programming/304289-excel-multiple-criteria-countif-function.html)

tvbrower

EXCEL multiple criteria in countif function
 
This is a question similiar to ROBERT's Dated 5/18/2004

Is it possible to have two criteria for a countif
statement like (COUNTIF(A1:A10,="X"))or(COUNTIF
(A1:A10,"T"))

-Travi

--
Message posted from http://www.ExcelForum.com


Chip Pearson

EXCEL multiple criteria in countif function
 
Travis,

Use two COUNTIFs and add the results. E.g.,

=COUNTIF(A1:A10,"X")+COUNTIF(A1:A10,"T")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"tvbrower " wrote in
message ...
This is a question similiar to ROBERT's Dated 5/18/2004

Is it possible to have two criteria for a countif
statement like (COUNTIF(A1:A10,="X"))or(COUNTIF
(A1:A10,"T"))

-Travis


---
Message posted from http://www.ExcelForum.com/




Patrick Molloy[_4_]

EXCEL multiple criteria in countif function
 
I don't have excel open just now, but
=SUM( (A1:A10="X") * (B1:B10="Y") )

your formula would be simpler:

= COUNTIF(A1:A10,"X") + COUNTIF (A1:A10,"T")



--
Patrick Molloy
Microsoft Excel MVP
---------------------------------
I Feel Great!
---------------------------------
"tvbrower " wrote in message
...
This is a question similiar to ROBERT's Dated 5/18/2004

Is it possible to have two criteria for a countif
statement like (COUNTIF(A1:A10,="X"))or(COUNTIF
(A1:A10,"T"))

-Travis


---
Message posted from http://www.ExcelForum.com/




Alan Beban[_2_]

EXCEL multiple criteria in countif function
 
Chip Pearson wrote:
Travis,

Use two COUNTIFs and add the results. E.g.,

=COUNTIF(A1:A10,"X")+COUNTIF(A1:A10,"T")


Or =SUM(COUNTIF(A1:A10,{"T","X"}))

Alan Beban


All times are GMT +1. The time now is 05:34 PM.

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