ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Count question (https://www.excelbanter.com/excel-discussion-misc-queries/123267-count-question.html)

Sung

Count question
 
What is the formula to count from a column based on multiple criteria.

For example,

City

Los Angeles
Phoenix
Los Angeles
New York
Chicago
New York

so i would like a formula to return the total count of new york and los
angeles. In this example it would be 4.

Thanks


Gary''s Student

Count question
 
=COUNTIF(A1:A6,"New York")+COUNTIF(A1:A6,"Los Angeles")

--
Gary''s Student


"Sung" wrote:

What is the formula to count from a column based on multiple criteria.

For example,

City

Los Angeles
Phoenix
Los Angeles
New York
Chicago
New York

so i would like a formula to return the total count of new york and los
angeles. In this example it would be 4.

Thanks


galimi

Count question
 
=SUM(IF(A1:A5="Los Angeles",1,0))+SUM(IF(A1:A5="New York",1,0))

Press control-shift-enter to enter it as a formulaic array
--
http://HelpExcel.com




"Sung" wrote:

What is the formula to count from a column based on multiple criteria.

For example,

City

Los Angeles
Phoenix
Los Angeles
New York
Chicago
New York

so i would like a formula to return the total count of new york and los
angeles. In this example it would be 4.

Thanks


Sung

Count question
 
THANKS!!!

"Gary''s Student" wrote:

=COUNTIF(A1:A6,"New York")+COUNTIF(A1:A6,"Los Angeles")

--
Gary''s Student


"Sung" wrote:

What is the formula to count from a column based on multiple criteria.

For example,

City

Los Angeles
Phoenix
Los Angeles
New York
Chicago
New York

so i would like a formula to return the total count of new york and los
angeles. In this example it would be 4.

Thanks


Sung

Count question
 
THANKS!!!

"galimi" wrote:

=SUM(IF(A1:A5="Los Angeles",1,0))+SUM(IF(A1:A5="New York",1,0))

Press control-shift-enter to enter it as a formulaic array
--
http://HelpExcel.com




"Sung" wrote:

What is the formula to count from a column based on multiple criteria.

For example,

City

Los Angeles
Phoenix
Los Angeles
New York
Chicago
New York

so i would like a formula to return the total count of new york and los
angeles. In this example it would be 4.

Thanks


RagDyeR

Count question
 
Try this:

=SUM(COUNTIF(A1:A7,{"New York","Los Angeles"}))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Sung" wrote in message
...
What is the formula to count from a column based on multiple criteria.

For example,

City

Los Angeles
Phoenix
Los Angeles
New York
Chicago
New York

so i would like a formula to return the total count of new york and los
angeles. In this example it would be 4.

Thanks




All times are GMT +1. The time now is 07:36 PM.

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