Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Counting Occurence of Criteria in Multiple Lists of Data

I was wondering if there was a way to count the amount of times that
something occurs based on two sets of data. Take for example a list of
people's favorite fruits and sports:

Fruit Sports
Apple Hockey
Orange Soccer
Banana Football
Apple Hockey
Apple Soccer
Orange Hockey

How could I count the number of times that a person both liked Apples and
Hockey? Please let me know if you need a further explanation of what I am
looking for. Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 477
Default Counting Occurence of Criteria in Multiple Lists of Data

In C1 enter
=SUMPRODUCT(($A$2:$A$7="Apple")*($B$2:$B$7="Hockey "))


"hockey14" wrote:

I was wondering if there was a way to count the amount of times that
something occurs based on two sets of data. Take for example a list of
people's favorite fruits and sports:

Fruit Sports
Apple Hockey
Orange Soccer
Banana Football
Apple Hockey
Apple Soccer
Orange Hockey

How could I count the number of times that a person both liked Apples and
Hockey? Please let me know if you need a further explanation of what I am
looking for. Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Counting Occurence of Criteria in Multiple Lists of Data

Unfortunately, when I use the SUMPRODUCT formula, it gives me a value of 0 in
that column. Is there something that I am doing wrong??

"Jim May" wrote:

In C1 enter
=SUMPRODUCT(($A$2:$A$7="Apple")*($B$2:$B$7="Hockey "))


"hockey14" wrote:

I was wondering if there was a way to count the amount of times that
something occurs based on two sets of data. Take for example a list of
people's favorite fruits and sports:

Fruit Sports
Apple Hockey
Orange Soccer
Banana Football
Apple Hockey
Apple Soccer
Orange Hockey

How could I count the number of times that a person both liked Apples and
Hockey? Please let me know if you need a further explanation of what I am
looking for. Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Counting Occurence of Criteria in Multiple Lists of Data

Move to the cell with the formula, press F2 to go to EDIT mode and the press
<Ctrl + <Shift + <Enter to enter the formula as an array type formula.
--
Kevin Backmann


"hockey14" wrote:

Unfortunately, when I use the SUMPRODUCT formula, it gives me a value of 0 in
that column. Is there something that I am doing wrong??

"Jim May" wrote:

In C1 enter
=SUMPRODUCT(($A$2:$A$7="Apple")*($B$2:$B$7="Hockey "))


"hockey14" wrote:

I was wondering if there was a way to count the amount of times that
something occurs based on two sets of data. Take for example a list of
people's favorite fruits and sports:

Fruit Sports
Apple Hockey
Orange Soccer
Banana Football
Apple Hockey
Apple Soccer
Orange Hockey

How could I count the number of times that a person both liked Apples and
Hockey? Please let me know if you need a further explanation of what I am
looking for. Thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Counting Occurence of Criteria in Multiple Lists of Data

Not necessary to array enter unless the OP used some other formula (such as
transpose or frequency) within the sumproduct formula that requires it.

Perhaps he should double check the data to make sure it actually matches (ie
- no trailing spaces).


"Kevin B" wrote:

Move to the cell with the formula, press F2 to go to EDIT mode and the press
<Ctrl + <Shift + <Enter to enter the formula as an array type formula.
--
Kevin Backmann


"hockey14" wrote:

Unfortunately, when I use the SUMPRODUCT formula, it gives me a value of 0 in
that column. Is there something that I am doing wrong??

"Jim May" wrote:

In C1 enter
=SUMPRODUCT(($A$2:$A$7="Apple")*($B$2:$B$7="Hockey "))


"hockey14" wrote:

I was wondering if there was a way to count the amount of times that
something occurs based on two sets of data. Take for example a list of
people's favorite fruits and sports:

Fruit Sports
Apple Hockey
Orange Soccer
Banana Football
Apple Hockey
Apple Soccer
Orange Hockey

How could I count the number of times that a person both liked Apples and
Hockey? Please let me know if you need a further explanation of what I am
looking for. Thanks in advance.

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
formula for counting the occurence of more than one condition Dr Carl Excel Worksheet Functions 2 January 8th 08 09:45 PM
Multiple Criteria pulled from Drop Down Lists [email protected] Excel Discussion (Misc queries) 1 June 30th 06 08:42 PM
counting with multiple criteria Andyd74 Excel Worksheet Functions 3 May 24th 06 11:59 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Saleem Excel Worksheet Functions 1 January 12th 05 10:54 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Arain Excel Worksheet Functions 1 January 12th 05 08:33 AM


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