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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
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

_cn_10x24
_cn_13x30
_cn_16x20
_cn_17x17
_cn_24x24
_cn_24x30
_cn_2pc_16x20
_cn_2pc_17x17
_cn_30x30
_cn_30x40
_cn_3pc_16x20
_cn_3pc_16x24
_cn_5pc_10x21
_cn_9pc_12x12
_fr_11x14
_fr_12x12
_fr_16x20
_wd_10x15
_wd_10x15
_wd_12x12
_wd_13x19...etc

<colgroup><col></colgroup><tbody>
</tbody>
 
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,214,591
Messages
6,120,424
Members
448,961
Latest member
nzskater

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