#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 210
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default 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

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count and Count if funtions Debi Excel Worksheet Functions 3 September 27th 05 08:41 PM
Count Question inkpassion Excel Discussion (Misc queries) 1 September 13th 05 12:05 AM
complex count question JBoulton Excel Worksheet Functions 13 March 24th 05 02:57 AM
Pivot Tables - "simple" question Eoin Bairead Excel Discussion (Misc queries) 1 February 28th 05 07:07 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"