Index for partial match in lookup value

A Rossi

New Member
Joined
Apr 6, 2016
Messages
13
Hi everyone

I am trying to get an Index Match from a table based on alphanumeric values contained in the lookup value.

Sheet2 Table1 ColumnA Header[Item] contains the lookup array
Sheet2 Table1 ColumnB header[Shape] contains the return value array

Sheet1 ColumnA contains the lookup value
Sheet1 ColuimnB is where the return value will populate

Ex. find cn_16x20 within BRP-222_cn_16x20

I keep getting NA. Can't figure it out.

Thanks Rick

below is the formula

Code:
=INDEX(Table1[Shape],MATCH(TRUE,ISNUMBER(SEARCH(Table1[Item],A2)),0))
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
cn and x won't be ISNUMBER = TRUE, also I'm going to suggest the the whole will be text
 
Upvote 0
Hi

But i have about 30 different values to match. I have a few different types of formulas with no luck

[TABLE="width: 139"]
<colgroup><col></colgroup><tbody>[TR]
[TD]_cn_10x24[/TD]
[/TR]
[TR]
[TD]_cn_13x30[/TD]
[/TR]
[TR]
[TD]_cn_16x20[/TD]
[/TR]
[TR]
[TD]_cn_17x17[/TD]
[/TR]
[TR]
[TD]_cn_24x24[/TD]
[/TR]
[TR]
[TD]_cn_24x30[/TD]
[/TR]
[TR]
[TD]_cn_2pc_16x20[/TD]
[/TR]
[TR]
[TD]_cn_2pc_17x17[/TD]
[/TR]
[TR]
[TD]_cn_30x30[/TD]
[/TR]
[TR]
[TD]_cn_30x40[/TD]
[/TR]
[TR]
[TD]_cn_3pc_16x20[/TD]
[/TR]
[TR]
[TD]_cn_3pc_16x24[/TD]
[/TR]
[TR]
[TD]_cn_5pc_10x21[/TD]
[/TR]
[TR]
[TD]_cn_9pc_12x12[/TD]
[/TR]
[TR]
[TD]_fr_11x14[/TD]
[/TR]
[TR]
[TD]_fr_12x12[/TD]
[/TR]
[TR]
[TD]_fr_16x20[/TD]
[/TR]
[TR]
[TD]_wd_10x15[/TD]
[/TR]
[TR]
[TD]_wd_10x15[/TD]
[/TR]
[TR]
[TD]_wd_12x12[/TD]
[/TR]
[TR]
[TD]_wd_13x19...etc[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
You have an array formula are you entering your formula with CTRL-SHIFT-ENTER? If not you will get an #NA .
 
Upvote 0
Try to post a small part of Table1, the value in A2, and the result that must obtain.


Hi Aladin


14ca7gz.png


2d91cmr.png
 
Upvote 0
Does this work for you?

=LOOKUP(9.99999999999999E+307,SEARCH(Table1[Item],A2),Table1[Shape])


Works GREAT!

I have never seen that one before. Will be adding it to my snippets library.

Thanks

P.S. I have another code i am working on. Can i message you when ready?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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