Search for value from array in cell return value if found

stuartnico

New Member
Joined
Jun 16, 2015
Messages
10
Column A - Sheet 2 ARRAY
1:2
1:4
1:5
1:6
1:8
1:10
1:12
1:20
etc etc

<tbody>
</tbody>

Column A
Column B
Tamiya 1:6 Tank
Formula search A for any in Sheet 2 list return if found
= 1:6
Eduard 1:12 Plane
1:12
Revell 1:8 Plane
1:8

<tbody>
</tbody>


I suspect index and match are the way to go but no matter how I try I can't seem to work it out.
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I've any number of ways to search for a value on its own but not yet a list of values and which value matches either to return the value found or a row no.
 
Upvote 0
Hello,

Is there something preventing from using : =INDEX(Sheet2!A:A,MATCH(A1,Sheet2!A:A,0)) ...???
 
Upvote 0
Hello,

Is there something preventing from using : =INDEX(Sheet2!A:A,MATCH(A1,Sheet2!A:A,0)) ...???

On mine when I use MATCH(A1,Sheet2!A:A,0) for example I would hope to a return a row all I get is #N/A so nothing is passed onto INDEX
 
Upvote 0
Correction to be tested on the Match portion ... MATCH("*"&A1&"*",Sheet2!A:A,0)
 
Upvote 0
Nearly works for example is search a cell and came across 1:35 said from the list it was 1:3 not 1:35 needs to be an exact match.

Apologies. Yes - this is a potential issue.

You should be ok if you ensure that your Sheet2 list is in ascending order. If you can't guarantee this, then you will need to use a small modification, viz:

=LOOKUP(1,0/SEARCH(" "&Sheet2!$A$1:$A$8&" "," "&A1&" "),Sheet2!$A$1:$A$8)

Regards
 
Upvote 0

Forum statistics

Threads
1,214,904
Messages
6,122,169
Members
449,070
Latest member
webster33

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top