Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 270
Default Countif with multiple criteria

Hi, I need to count how many people meet criteria in two different columns.
See below:

Prod Mktg NX
Finance EX
Ops-Cons Svc NX
Prod Mktg EX
Finance NX

How many people in Finance are also EX?
thanks for the help!!!
--
Paige
  #2   Report Post  
Posted to microsoft.public.excel.misc
Naz Naz is offline
external usenet poster
 
Posts: 85
Default Countif with multiple criteria

Hi

Assuming your data is in col A and B try

=COUNT(IF($A$1:$A$5=A7,IF($B$1:$B$5=B7,COUNTA($B$1 :$B$5))))

where A7 = the first criteria and B7 is the second criteria
the formula is an array formula so to use your press ctrl+shift+enter to use
rather than just enter.

If you have Excel 2007 you can use the easier formula

=COUNTIFS($A$1:$A$5,A7,$B$1:$B$5,B7)


--


_______________________
Naz,
London


"Paige" wrote:

Hi, I need to count how many people meet criteria in two different columns.
See below:

Prod Mktg NX
Finance EX
Ops-Cons Svc NX
Prod Mktg EX
Finance NX

How many people in Finance are also EX?
thanks for the help!!!
--
Paige

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 270
Default Countif with multiple criteria

Thank you!!! Darn...I wish I had 2007! :)
--
Paige


"Naz" wrote:

Hi

Assuming your data is in col A and B try

=COUNT(IF($A$1:$A$5=A7,IF($B$1:$B$5=B7,COUNTA($B$1 :$B$5))))

where A7 = the first criteria and B7 is the second criteria
the formula is an array formula so to use your press ctrl+shift+enter to use
rather than just enter.

If you have Excel 2007 you can use the easier formula

=COUNTIFS($A$1:$A$5,A7,$B$1:$B$5,B7)


--


_______________________
Naz,
London


"Paige" wrote:

Hi, I need to count how many people meet criteria in two different columns.
See below:

Prod Mktg NX
Finance EX
Ops-Cons Svc NX
Prod Mktg EX
Finance NX

How many people in Finance are also EX?
thanks for the help!!!
--
Paige

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Countif with multiple criteria

One way:

=SUMPRODUCT(--(A1:A5="Finance"),--(B1:B5="EX"))

HTH,
Paul

"Paige" wrote in message
...
Hi, I need to count how many people meet criteria in two different
columns.
See below:

Prod Mktg NX
Finance EX
Ops-Cons Svc NX
Prod Mktg EX
Finance NX

How many people in Finance are also EX?
thanks for the help!!!
--
Paige



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Countif with multiple criteria

Don't need 207

=SUMPRODUCT(--($A$1:$A$5="Finance"),--($B$1:$B$5="EX"))


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Paige" wrote in message
...
Hi, I need to count how many people meet criteria in two different
columns.
See below:

Prod Mktg NX
Finance EX
Ops-Cons Svc NX
Prod Mktg EX
Finance NX

How many people in Finance are also EX?
thanks for the help!!!
--
Paige





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default Countif with multiple criteria


Very very very useful. Thanks a ton


"Bob Phillips" wrote:

Don't need 207

=SUMPRODUCT(--($A$1:$A$5="Finance"),--($B$1:$B$5="EX"))


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Paige" wrote in message
...
Hi, I need to count how many people meet criteria in two different
columns.
See below:

Prod Mktg NX
Finance EX
Ops-Cons Svc NX
Prod Mktg EX
Finance NX

How many people in Finance are also EX?
thanks for the help!!!
--
Paige




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Countif with multiple criteria

Just out curiousity, what are the double minus signs for in the formula?

"PCLIVE" wrote:

One way:

=SUMPRODUCT(--(A1:A5="Finance"),--(B1:B5="EX"))

HTH,
Paul

"Paige" wrote in message
...
Hi, I need to count how many people meet criteria in two different
columns.
See below:

Prod Mktg NX
Finance EX
Ops-Cons Svc NX
Prod Mktg EX
Finance NX

How many people in Finance are also EX?
thanks for the help!!!
--
Paige




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Countif with multiple criteria

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

mmmbl wrote:

Just out curiousity, what are the double minus signs for in the formula?

"PCLIVE" wrote:

One way:

=SUMPRODUCT(--(A1:A5="Finance"),--(B1:B5="EX"))

HTH,
Paul

"Paige" wrote in message
...
Hi, I need to count how many people meet criteria in two different
columns.
See below:

Prod Mktg NX
Finance EX
Ops-Cons Svc NX
Prod Mktg EX
Finance NX

How many people in Finance are also EX?
thanks for the help!!!
--
Paige





--

Dave Peterson
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
Countif, Multiple criteria Chris Excel Discussion (Misc queries) 4 September 21st 06 02:57 AM
countif multiple criteria Iamwhoiam Excel Worksheet Functions 1 June 27th 06 08:26 PM
COUNTIF MULTIPLE CRITERIA will A Excel Discussion (Misc queries) 18 March 8th 06 06:58 PM
Countif for multiple criteria Jim Rennie Excel Worksheet Functions 3 June 21st 05 01:38 AM
Countif with multiple criteria and multiple worksheets JJ Excel Worksheet Functions 1 December 28th 04 06:37 PM


All times are GMT +1. The time now is 12:56 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"