Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Counting rows that contain any one item listed in another row

Hi, I have the following table:

Area Person Members
X Jack Jack
Y Mary Peter
Z Jack
X Peter
X Mary
Z Mary

I want to count the number of Persons who are Members and have entries in
Area X. So in the example above it should return 2 (Jack and Peter have X
entries and are Members but Mary is not a member though she has X entry).

How to do this in Excel?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 53
Default Counting rows that contain any one item listed in another row

Hi Sergio,

This is what i did,
create a new column "count"

and put the below formula for getting the count of the name that is obey you
2 specification.

=SUMPRODUCT(($A$2:$A$7="X")*($B$2:$B$7=C2))

Finally i took the sum total of the "count" column to get the total no of
entries.

Please click on "yes" if this answer has helped you.
--

Kind Regards,
Satti Charvak
Only an Excel Enthusiast


"Sergio Dutra" wrote:

Hi, I have the following table:

Area Person Members
X Jack Jack
Y Mary Peter
Z Jack
X Peter
X Mary
Z Mary

I want to count the number of Persons who are Members and have entries in
Area X. So in the example above it should return 2 (Jack and Peter have X
entries and are Members but Mary is not a member though she has X entry).

How to do this in Excel?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting rows that contain any one item listed in another row

Try this:

=SUMPRODUCT(--(A2:A7="x"),--(ISNUMBER(MATCH(B2:B7,C2:C3,0))))

--
Biff
Microsoft Excel MVP


"Sergio Dutra" wrote in message
...
Hi, I have the following table:

Area Person Members
X Jack Jack
Y Mary Peter
Z Jack
X Peter
X Mary
Z Mary

I want to count the number of Persons who are Members and have entries in
Area X. So in the example above it should return 2 (Jack and Peter have X
entries and are Members but Mary is not a member though she has X entry).

How to do this in Excel?



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
Counting cells with text not listed. ladygr Excel Worksheet Functions 2 October 12th 07 09:38 PM
How to select a listed item? Eric Excel Worksheet Functions 3 August 11th 07 02:20 AM
How to select a listed item? Eric Excel Discussion (Misc queries) 1 August 10th 07 05:26 PM
Counting transactions as listed in reports Daiv Excel Discussion (Misc queries) 1 February 25th 07 11:02 PM
Delete rows listed less than 8 times??? anilos81 Excel Worksheet Functions 10 November 10th 05 04:29 PM


All times are GMT +1. The time now is 06:45 AM.

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"