Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Count Vaules in a range that appear in another range

I have three ranges e.g.

Range 1 Range 2 Range 3
Bread Apples Bread
Apples Oranges Buns
Oranges Pears
Buns
Bread
Pears
Apples

I'm trying to construct a formula that counts the number of times, say, and
entry in Range 3 appears in Range 1 - In this instance the answer would be 3.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Count Vaules in a range that appear in another range

Hi,
try

=SUMPRODUCT(($A$2:$A$100=c2)+($A$2:$A$100=c3))

Being a2 to a100 range 1 and c2 and c3 products in range 3

"T Newbery" wrote:


I have three ranges e.g.

Range 1 Range 2 Range 3
Bread Apples Bread
Apples Oranges Buns
Oranges Pears
Buns
Bread
Pears
Apples

I'm trying to construct a formula that counts the number of times, say, and
entry in Range 3 appears in Range 1 - In this instance the answer would be 3.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Count Vaules in a range that appear in another range

Thanks, but is there a way to do this without enumerating everything in range
3. It's basically a lookup list that changes over time. I only want to change
the list, not everything that references it...

"Eduardo" wrote:

Hi,
try

=SUMPRODUCT(($A$2:$A$100=c2)+($A$2:$A$100=c3))

Being a2 to a100 range 1 and c2 and c3 products in range 3

"T Newbery" wrote:


I have three ranges e.g.

Range 1 Range 2 Range 3
Bread Apples Bread
Apples Oranges Buns
Oranges Pears
Buns
Bread
Pears
Apples

I'm trying to construct a formula that counts the number of times, say, and
entry in Range 3 appears in Range 1 - In this instance the answer would be 3.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Count Vaules in a range that appear in another range

=SUMPRODUCT(COUNTIF(A1:A100,C1:C100))


"T Newbery" wrote:

Thanks, but is there a way to do this without enumerating everything in range
3. It's basically a lookup list that changes over time. I only want to change
the list, not everything that references it...

"Eduardo" wrote:

Hi,
try

=SUMPRODUCT(($A$2:$A$100=c2)+($A$2:$A$100=c3))

Being a2 to a100 range 1 and c2 and c3 products in range 3

"T Newbery" wrote:


I have three ranges e.g.

Range 1 Range 2 Range 3
Bread Apples Bread
Apples Oranges Buns
Oranges Pears
Buns
Bread
Pears
Apples

I'm trying to construct a formula that counts the number of times, say, and
entry in Range 3 appears in Range 1 - In this instance the answer would be 3.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Count Vaules in a range that appear in another range

Hi,

I assume your range to be counted is in column B

=SUMPRODUCT(COUNTIF(A1:A100,B1:B100))

"T Newbery" wrote:

Thanks, but is there a way to do this without enumerating everything in range
3. It's basically a lookup list that changes over time. I only want to change
the list, not everything that references it...

"Eduardo" wrote:

Hi,
try

=SUMPRODUCT(($A$2:$A$100=c2)+($A$2:$A$100=c3))

Being a2 to a100 range 1 and c2 and c3 products in range 3

"T Newbery" wrote:


I have three ranges e.g.

Range 1 Range 2 Range 3
Bread Apples Bread
Apples Oranges Buns
Oranges Pears
Buns
Bread
Pears
Apples

I'm trying to construct a formula that counts the number of times, say, and
entry in Range 3 appears in Range 1 - In this instance the answer would be 3.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Count Vaules in a range that appear in another range

Thanks, that's exactly what I need.

I'm not even going to pretend I know why that works when COUNTIF by itself
doesn't...

"Teethless mama" wrote:

=SUMPRODUCT(COUNTIF(A1:A100,C1:C100))


"T Newbery" wrote:

Thanks, but is there a way to do this without enumerating everything in range
3. It's basically a lookup list that changes over time. I only want to change
the list, not everything that references it...

"Eduardo" wrote:

Hi,
try

=SUMPRODUCT(($A$2:$A$100=c2)+($A$2:$A$100=c3))

Being a2 to a100 range 1 and c2 and c3 products in range 3

"T Newbery" wrote:


I have three ranges e.g.

Range 1 Range 2 Range 3
Bread Apples Bread
Apples Oranges Buns
Oranges Pears
Buns
Bread
Pears
Apples

I'm trying to construct a formula that counts the number of times, say, and
entry in Range 3 appears in Range 1 - In this instance the answer would be 3.

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
How do I enter formula sum(range+range)*0.15 sumif(range=3) tkw Excel Discussion (Misc queries) 2 October 1st 09 09:17 PM
Multiple Criteria, Count If, Sum Product to get count across range Jonathan Excel Worksheet Functions 5 January 9th 08 11:32 PM
Sum first five vaules of changing range Lou Excel Discussion (Misc queries) 4 October 15th 07 01:37 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM


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