Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Luke
 
Posts: n/a
Default match cell in array1 with all cells in array2

Sheet1 has Array1 = g1:bw10
Sheet2 has Array2 = ca12:ct20

in sheet3 I need to display only the numbers from the range in sheet2 that
are equal to those in the range in sheet1.
I tried:
=IF(ISNA(MATCH(Sheet3!G1,Sheet3!$ca$12:$ct$20,0))= FALSE,"",Sheet3!G1)
filled down and accross as needed
But doesn't display anything even though there are matches.
Can you help me?
Thank you
Luke
  #2   Report Post  
KL
 
Posts: n/a
Default

Hi,

The MATCH function doesn't work on bidimensional ranges. Try this
array-entered (Ctrl+Shift+Enter) formula instead:

=IF(OR(Sheet3!G1=Sheet3!$CA$12:$CT$20),Sheet3!G1," ")

or this non-array formula:

=SUMPRODUCT(OR(Sheet3!G1=Sheet3!$CA$12:$CT$20)*She et3!G1)

Regards,
KL


"Luke" wrote in message
...
Sheet1 has Array1 = g1:bw10
Sheet2 has Array2 = ca12:ct20

in sheet3 I need to display only the numbers from the range in sheet2 that
are equal to those in the range in sheet1.
I tried:
=IF(ISNA(MATCH(Sheet3!G1,Sheet3!$ca$12:$ct$20,0))= FALSE,"",Sheet3!G1)
filled down and accross as needed
But doesn't display anything even though there are matches.
Can you help me?
Thank you
Luke



  #3   Report Post  
Alan Beban
 
Posts: n/a
Default

Do you mean that if a number in any position in Array2 is included at
least once in any position(s) in Array1, you want it included in the
output list? Are the numbers in Array 2 unique? If not, do you want the
non-unique numbers included more than once in the output list if they
are also included in Array1?

Alan Beban

Luke wrote:
Sheet1 has Array1 = g1:bw10
Sheet2 has Array2 = ca12:ct20

in sheet3 I need to display only the numbers from the range in sheet2 that
are equal to those in the range in sheet1.
I tried:
=IF(ISNA(MATCH(Sheet3!G1,Sheet3!$ca$12:$ct$20,0))= FALSE,"",Sheet3!G1)
filled down and accross as needed
But doesn't display anything even though there are matches.
Can you help me?
Thank you
Luke

  #4   Report Post  
Luke
 
Posts: n/a
Default

any number that it matches (regardless of duplicates) can show in the output
sheet 3. No unique numbers

"Alan Beban" wrote:

Do you mean that if a number in any position in Array2 is included at
least once in any position(s) in Array1, you want it included in the
output list? Are the numbers in Array 2 unique? If not, do you want the
non-unique numbers included more than once in the output list if they
are also included in Array1?

Alan Beban

Luke wrote:
Sheet1 has Array1 = g1:bw10
Sheet2 has Array2 = ca12:ct20

in sheet3 I need to display only the numbers from the range in sheet2 that
are equal to those in the range in sheet1.
I tried:
=IF(ISNA(MATCH(Sheet3!G1,Sheet3!$ca$12:$ct$20,0))= FALSE,"",Sheet3!G1)
filled down and accross as needed
But doesn't display anything even though there are matches.
Can you help me?
Thank you
Luke


  #5   Report Post  
KL
 
Posts: n/a
Default

....or this array-entered (if the values are numbers):

=OR(Sheet3!G1=Sheet3!$CA$12:$CT$20)*Sheet3!G1

KL


"KL" wrote in message
...
Hi,

The MATCH function doesn't work on bidimensional ranges. Try this
array-entered (Ctrl+Shift+Enter) formula instead:

=IF(OR(Sheet3!G1=Sheet3!$CA$12:$CT$20),Sheet3!G1," ")

or this non-array formula:

=SUMPRODUCT(OR(Sheet3!G1=Sheet3!$CA$12:$CT$20)*She et3!G1)

Regards,
KL


"Luke" wrote in message
...
Sheet1 has Array1 = g1:bw10
Sheet2 has Array2 = ca12:ct20

in sheet3 I need to display only the numbers from the range in sheet2
that
are equal to those in the range in sheet1.
I tried:
=IF(ISNA(MATCH(Sheet3!G1,Sheet3!$ca$12:$ct$20,0))= FALSE,"",Sheet3!G1)
filled down and accross as needed
But doesn't display anything even though there are matches.
Can you help me?
Thank you
Luke







  #6   Report Post  
KL
 
Posts: n/a
Default

stupid me! Here is a simple and fast one:

=IF(COUNTIF(Sheet3!$CA$12:$CT$20,Sheet3!G1),Sheet3 !G1,"")

Regards,
KL



"KL" wrote in message
...
...or this array-entered (if the values are numbers):

=OR(Sheet3!G1=Sheet3!$CA$12:$CT$20)*Sheet3!G1

KL


"KL" wrote in message
...
Hi,

The MATCH function doesn't work on bidimensional ranges. Try this
array-entered (Ctrl+Shift+Enter) formula instead:

=IF(OR(Sheet3!G1=Sheet3!$CA$12:$CT$20),Sheet3!G1," ")

or this non-array formula:

=SUMPRODUCT(OR(Sheet3!G1=Sheet3!$CA$12:$CT$20)*She et3!G1)

Regards,
KL


"Luke" wrote in message
...
Sheet1 has Array1 = g1:bw10
Sheet2 has Array2 = ca12:ct20

in sheet3 I need to display only the numbers from the range in sheet2
that
are equal to those in the range in sheet1.
I tried:
=IF(ISNA(MATCH(Sheet3!G1,Sheet3!$ca$12:$ct$20,0))= FALSE,"",Sheet3!G1)
filled down and accross as needed
But doesn't display anything even though there are matches.
Can you help me?
Thank you
Luke







  #7   Report Post  
Luke
 
Posts: n/a
Default

KL
I tried the last formula you posted and I get random hits in various places
but they are not corresponding to the actual position(s) where they are
located at in sheet2.
I was thinking that the number from any given sell in sheet1 would show up
in sheet3 in the exact position of the found match in sheet2.
does that make since?
Luke

"KL" wrote:

stupid me! Here is a simple and fast one:

=IF(COUNTIF(Sheet3!$CA$12:$CT$20,Sheet3!G1),Sheet3 !G1,"")

Regards,
KL



"KL" wrote in message
...
...or this array-entered (if the values are numbers):

=OR(Sheet3!G1=Sheet3!$CA$12:$CT$20)*Sheet3!G1

KL


"KL" wrote in message
...
Hi,

The MATCH function doesn't work on bidimensional ranges. Try this
array-entered (Ctrl+Shift+Enter) formula instead:

=IF(OR(Sheet3!G1=Sheet3!$CA$12:$CT$20),Sheet3!G1," ")

or this non-array formula:

=SUMPRODUCT(OR(Sheet3!G1=Sheet3!$CA$12:$CT$20)*She et3!G1)

Regards,
KL


"Luke" wrote in message
...
Sheet1 has Array1 = g1:bw10
Sheet2 has Array2 = ca12:ct20

in sheet3 I need to display only the numbers from the range in sheet2
that
are equal to those in the range in sheet1.
I tried:
=IF(ISNA(MATCH(Sheet3!G1,Sheet3!$ca$12:$ct$20,0))= FALSE,"",Sheet3!G1)
filled down and accross as needed
But doesn't display anything even though there are matches.
Can you help me?
Thank you
Luke







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 merge two cells without deleting data from the cell? Batmans_Wife Excel Discussion (Misc queries) 50 April 3rd 23 10:54 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Concatenating cells to produce a cell ref from another excel file ItsMeAgain Excel Worksheet Functions 1 June 24th 05 02:06 PM
How do I make a cell equal to another cells value and not it's fo. TroutKing Excel Worksheet Functions 2 January 17th 05 06:15 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


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