#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bob
 
Posts: n/a
Default Match formula

hope i can get some help on this one
looking for a formula that looks into a group of numbers (8) and then
looks into another group of numbers (8) and returns a value if if there
are any matchs.

example
a b c d e
1 3 7 1 5 0
2 2 6 3 4 8 "result=1"
3
4
5

thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Match formula

Hi!

What result would you expect if these were the numbers:

a b c d e
1 3 7 1 8 0
2 3 6 3 4 8


Biff

"bob" wrote in message
oups.com...
hope i can get some help on this one
looking for a formula that looks into a group of numbers (8) and then
looks into another group of numbers (8) and returns a value if if there
are any matchs.

example
a b c d e
1 3 7 1 5 0
2 2 6 3 4 8 "result=1"
3
4
5

thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bob
 
Posts: n/a
Default Match formula

thanks Biff
ok i want to count the number of times a matching number appears in
row1 from a group of numbers in row2 so i would expect the result of
your question to be "3". i can do a countif (a1,a2:e2) in cell W1 then
do a countif(b1,a2:e2) in cell X1etc.but i have a group of 8 cells to
try and match and was hoping there would be an better way to do it in
just one cell for all 8 cells

something like =countif (a1:e1, anymatchs a2:e2) but i know thats not
it
thanks in advance

bob


Biff wrote:
Hi!

What result would you expect if these were the numbers:

a b c d e
1 3 7 1 8 0
2 3 6 3 4 8


Biff

"bob" wrote in message
oups.com...
hope i can get some help on this one
looking for a formula that looks into a group of numbers (8) and then
looks into another group of numbers (8) and returns a value if if there
are any matchs.

example
a b c d e
1 3 7 1 5 0
2 2 6 3 4 8 "result=1"
3
4
5

thanks in advance


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Match formula

Try this:

=SUMPRODUCT(COUNTIF(A1:E1,A2:E2))

Biff

"bob" wrote in message
oups.com...
thanks Biff
ok i want to count the number of times a matching number appears in
row1 from a group of numbers in row2 so i would expect the result of
your question to be "3". i can do a countif (a1,a2:e2) in cell W1 then
do a countif(b1,a2:e2) in cell X1etc.but i have a group of 8 cells to
try and match and was hoping there would be an better way to do it in
just one cell for all 8 cells

something like =countif (a1:e1, anymatchs a2:e2) but i know thats not
it
thanks in advance

bob


Biff wrote:
Hi!

What result would you expect if these were the numbers:

a b c d e
1 3 7 1 8 0
2 3 6 3 4 8


Biff

"bob" wrote in message
oups.com...
hope i can get some help on this one
looking for a formula that looks into a group of numbers (8) and then
looks into another group of numbers (8) and returns a value if if there
are any matchs.

example
a b c d e
1 3 7 1 5 0
2 2 6 3 4 8 "result=1"
3
4
5

thanks in advance




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
vezerid
 
Posts: n/a
Default Match formula

I think you need something like:

=SUM(--(COUNTIF(A1:E1,A2:E2)<0))

entered as array formula (i.e. confirmed with Shift+Ctrl+Enter). The
philosophy of this formula is that it goes over each element in row 2
and asks if the element appears at least once.

Is it what you want?
Kostis Vezerides



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Match formula

Try also:
=SUMPRODUCT(--ISNUMBER(MATCH(A2:E2,A1:E1,0)))
Adapt to suit for an 8 cells stretch ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bob
 
Posts: n/a
Default Match formula

thanks much max works like a charm..for some reason the other two did
not but thanks to all for trying will perhaps use those as needs
require

bob

Max wrote:
Try also:
=SUMPRODUCT(--ISNUMBER(MATCH(A2:E2,A1:E1,0)))
Adapt to suit for an 8 cells stretch ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Match formula

You're welcome !
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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 to calculate a 401K company match? Trish Excel Worksheet Functions 3 January 18th 06 06:05 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Formula doesn't match - ? Steve Excel Discussion (Misc queries) 2 July 23rd 05 11:39 PM


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