Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Harley
 
Posts: n/a
Default Using Countif with multiple criteria in the same column.

I need to count different criteria from the same column. For example, under
the column Names, the criteria for one breakout might be Tom, Beth, John,
Roger; the next breakout might be Joe, Sue, Randy, Bob.
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Using Countif with multiple criteria in the same column.

Sure, you can use the COUNTIFS function to count multiple criteria from the same column. Here's how you can do it:
  1. First, select the cell where you want to display the count result.
  2. Then, type the formula "=COUNTIFS(" in the formula bar.
  3. After that, select the range of cells that contain the Names column. For example, if the Names column is in column A and has data in rows 2 to 100, select the range A2:A100.
  4. Next, type a comma "," to separate the first criterion.
  5. Then, type the first criterion in quotes. For example, if the first criterion is "Tom", type "Tom" in quotes.
  6. Type another comma "," to separate the second criterion.
  7. Type the second criterion in quotes. For example, if the second criterion is "Beth", type "Beth" in quotes.
  8. Repeat steps 6 and 7 for each additional criterion you want to count. For example, if you want to count Tom, Beth, John, and Roger, you would type:

    =COUNTIFS(A2:A100,"Tom",A2:A100,"Beth",A2:A100,"Jo hn",A2:A100,"Roger")
  9. If you want to count a different set of criteria, simply replace the criteria in the formula with the new criteria. For example, if you want to count Joe, Sue, Randy, and Bob, you would type:

    =COUNTIFS(A2:A100,"Joe",A2:A100,"Sue",A2:A100,"Ran dy",A2:A100,"Bob")
  10. Press Enter to complete the formula. The cell will display the count result.

That's it! You can use this formula to count multiple criteria from the same column in Excel.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.misc
rsenn
 
Posts: n/a
Default Using Countif with multiple criteria in the same column.


Assuming you want a count of "Ted" plus "Bob" you could use a formula
similar to this.

=COUNTIF(C14:C19,"Ted")+COUNTIF(C14:C19,"Bob")


--
rsenn
------------------------------------------------------------------------
rsenn's Profile: http://www.excelforum.com/member.php...o&userid=29050
View this thread: http://www.excelforum.com/showthread...hreadid=492933

  #4   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Using Countif with multiple criteria in the same column.



=SUMPRODUCT(COUNTIF(A1:A10,{"Tom";"Beth";"John"}))



--
Regards,

Peo Sjoblom

(No private emails please)


"Harley" wrote in message
...
I need to count different criteria from the same column. For example,
under
the column Names, the criteria for one breakout might be Tom, Beth, John,
Roger; the next breakout might be Joe, Sue, Randy, Bob.


  #5   Report Post  
Junior Member
 
Posts: 1
Default

Thanks for these posts. They were very helpful


  #6   Report Post  
Junior Member
 
Posts: 2
Default

If you take =SUMPRODUCT(COUNTIF(A1:A10,{"Tom";"Beth";"John"})) , is it possible to setup 3 named ranges to hold 3 separate values instead of typing them directly into the formula i.e.

=SUMPRODUCT(COUNTIF(A1:A10,{namedrange1;namedrange 2;namedrange3}))

I tried but couldnt figure it out.....

:-)

Quote:
Originally Posted by Peo Sjoblom View Post
=SUMPRODUCT(COUNTIF(A1:A10,{"Tom";"Beth";"John"}))



--
Regards,

Peo Sjoblom

(No private emails please)


"Harley" wrote in message
...
I need to count different criteria from the same column. For example,
under
the column Names, the criteria for one breakout might be Tom, Beth, John,
Roger; the next breakout might be Joe, Sue, Randy, Bob.
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
Multiple Criteria using countif calmo Excel Worksheet Functions 6 October 25th 05 08:33 PM
Array Formula w/ Multiple SumIf Criteria Andy Excel Worksheet Functions 3 July 13th 05 08:56 PM
COUNTIF or SUMPRODUCT counting multiple criteria Peo Sjoblom Excel Worksheet Functions 0 May 31st 05 11:40 PM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM
Count rows based on multiple criteria Murph Excel Worksheet Functions 1 October 28th 04 07:13 AM


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

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

About Us

"It's about Microsoft Excel"