Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to count the numbers?

Does anyone have any suggestion on how to count the matched values?

There is a list of values under column A & B
[Column A] 1,5,6,8,9,10,3,20
[Column B] 6,4,9

I would like to count the number of values in column B, which is matched any
value in column A. In this case, the matched values are 6 & 9, and it will
return 2 in cell C1.
Does anyone have any suggestions?
Thank you for any suggestions
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default How to count the numbers?

If you're not getting answers that work, you may want to rephrase your question
instead of just posting it again and again and again.

Eric wrote:

Does anyone have any suggestion on how to count the matched values?

There is a list of values under column A & B
[Column A] 1,5,6,8,9,10,3,20
[Column B] 6,4,9

I would like to count the number of values in column B, which is matched any
value in column A. In this case, the matched values are 6 & 9, and it will
return 2 in cell C1.
Does anyone have any suggestions?
Thank you for any suggestions
Eric


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to count the numbers?

Try this:

=SUMPRODUCT(--(ISNUMBER(MATCH(B1:B3,A1:A8,0))))

--
Biff
Microsoft Excel MVP


"Eric" wrote in message
...
Does anyone have any suggestion on how to count the matched values?

There is a list of values under column A & B
[Column A] 1,5,6,8,9,10,3,20
[Column B] 6,4,9

I would like to count the number of values in column B, which is matched
any
value in column A. In this case, the matched values are 6 & 9, and it will
return 2 in cell C1.
Does anyone have any suggestions?
Thank you for any suggestions
Eric



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to count the numbers?

Thank everyone for suggestions

I would like to add a given condition for this matching.

There is a list of values under column A & B
[Column A] 1,5,6,8,9,10,3,20
[Column B] 6,4,9

I still want to count the number of matched values in column B.
The condition is expanded the range for each value on column B and the range
value is stored in cell D1, which is 1.
For example, without applied the given condition, the value 4 in column B is
not a matched value on column A, because there is no 4 value in column A, but
once the condition applied, the value of 4 in column B will become any value
between 3 [4-1] and 5 [4+1].
If the range value is 2, then the value of 4 in column B will become any
value between 2 [4-2] and 6 [4+2].
Since the range value is 1 in this case and 5 in column A is matched the
range between 3 [4-1] and 5 [4+1], therefore the original value 4 in column B
becomes a matched value in this case.

Therefore the matched values with given condition are 6,4,9, which is 3
matched values and return 3 in cell C1.

Does anyone have any suggestions on how to add this given condition in order
to determine the number of matched values in column B?

Thank everyone very much for any suggesitons
Eric





"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(ISNUMBER(MATCH(B1:B3,A1:A8,0))))

--
Biff
Microsoft Excel MVP


"Eric" wrote in message
...
Does anyone have any suggestion on how to count the matched values?

There is a list of values under column A & B
[Column A] 1,5,6,8,9,10,3,20
[Column B] 6,4,9

I would like to count the number of values in column B, which is matched
any
value in column A. In this case, the matched values are 6 & 9, and it will
return 2 in cell C1.
Does anyone have any suggestions?
Thank you for any suggestions
Eric




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 count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Number count - postcodes and need to count the numbers of tim... Mark - Aust Excel Discussion (Misc queries) 1 October 24th 05 10:00 AM
Sum Count of Two Numbers in the same Row Sam via OfficeKB.com Excel Worksheet Functions 8 September 18th 05 08:11 PM
Count comma separated numbers, numbers in a range with dash, not t Mahendra Excel Discussion (Misc queries) 0 August 8th 05 05:56 PM
count a group of numbers but do not count duplicates Lisaml Excel Worksheet Functions 2 January 26th 05 11:19 PM


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