Lookup data in a column cell using an Array, return specific value to new column

notanexpertinexcel

New Member
Joined
Jul 4, 2016
Messages
10
I need a formula that will search sheet1 columnB for specific text from sheet 2 columns B through column AZ. If Match, return a the value from sheet2 columnA and place in sheet 1 columnC, second match to columnD, third to ColumnE, etc.

The text in sheet 2 that I'm searching for can be found anywhere within sheet1 column b, and there can be partial matches. I tried using a combination of Search and Match, but it's not working. And the text can be found more than once as it can belong to multiple rows in sheet 2.

=

Example:

Sheet 1 (my list of data that I'm searching)

ColumnA ColumnB ColumnC ColumnD ColumnE
MIGRAT2703ANKLE LIMITED AP,LAT RIGHT
MIGRAT3624ANKLE LIMITED AP,LAT RIGHT
MIGRAT3252AORTA
MIGRAT2284AORTOGRAM ABD BIL ILIOFEM Sand I AbdomenArthrogram
MIGRAT3626AORTOGRAM ABD W SERIAL S Abdomen
MIGRAT2285AORTOGRAM ABD W SERIAL Sand I
MIGRAT2644AORTOGRAM ABD W SERIAL Sand I
MIGRAT2707AORTOGRAM ABD W SERIAL Sand I
MIGRAT3589AORTOGRAM ABD W SERIAL Sand I
MIGRAT3627AORTOGRAM ABD W SERIAL Sand I
MIGRAT3854AORTOGRAM ABD W SERIAL Sand I
MIGRAT2286AORTOGRAM THORAC W SRIAL S I
MIGRAT3628AORTOGRAM THORAC W SRIAL S I
MIGRAT3253ART DUPLEX LOW EXT UNLAT LEFT
MIGRAT3320ARTH SHOULDER RIGHT, CT ANGIOGRAPHY ABD L
MIGRAT31ARTHROGRAM ANKLE LEFT
MIGRAT797ARTHROGRAM ANKLE RIGHT
MIGRAT32ARTHROGRAM ELBOW INJ W MRI LEFT
MIGRAT798ARTHROGRAM ELBOW INJ W MRI LEFT
MIGRAT2708ARTHROGRAM ELBOW INJ W MRI LEFT
MIGRAT33ARTHROGRAM ELBOW INJ W MRI RIGHT
MIGRAT799ARTHROGRAM ELBOW INJ W MRI RIGHT
MIGRAT2709ARTHROGRAM ELBOW INJ W MRI RIGHT
MIGRAT3145ARTHROGRAM ELBOW INJ W MRI RIGHT
MIGRAT34ARTHROGRAM ELBOW LEFT
MIGRAT2710ARTHROGRAM ELBOW LEFT
MIGRAT35ARTHROGRAM ELBOW RIGHT
MIGRAT800ARTHROGRAM ELBOW RIGHT
MIGRAT2711ARTHROGRAM ELBOW RIGHT
MIGRAT2287ARTHROGRAM HIP
MIGRAT2288ARTHROGRAM HIP INJ W MRI
MIGRAT3629ARTHROGRAM HIP INJ W MRI
MIGRAT801ARTHROGRAM HIP INJ W MRI LEFT
MIGRAT36ARTHROGRAM HIP INJ W MRI RIGHT
MIGRAT3146ARTHROGRAM HIP INJ W MRI RIGHT
MIGRAT802ARTHROGRAM HIP LEFT
MIGRAT2289ARTHROGRAM HIP LEFT
MIGRAT2712ARTHROGRAM HIP LEFT
MIGRAT37ARTHROGRAM HIP RIGHT

<tbody>
</tbody>

Sheet 2 (My lookup values)

Abdomenabdadrenalrenalvisceralaortagramarterial embolizationkidney
Arthrogramsarthrogram elbowarthrogram kneearthrogram hiparthrogram shoulderarthrogram TMJarthrogram SIarthrogram wrist

<tbody>
</tbody>
Extremities Lowerlower extremankletoesfootfemurtibia
Extremities Upperupper extremclavicleupper extelbowshoulderfinger
Extremity Lower Distaliliacankletoesfootheellower ext
Extremity Lower Proximalangiogram extangioplasty illiacangioplasty peripheralarad kneearteriogram extarthrogram knee
Extremity Upper Distalfingerwristhandelbowupper extforearm
Extremity Upper Proximalshoulderhumerusclaviclescapula

<tbody>
</tbody>

ALSO, not sure if someone has advanced knowledge, but my ultimate goal is that if there are more than 1 match (so that there is data in column D in sheet 1, that it would copy the existing row into another row and add that 2nd match in column C (instead of column D). I will easily be able to upload into my receiving system otherwise, i will have to update it manually for 1000's of rows.

NOTE: I tried to use the Mr.ExcelHTML but it is freezing up Excel 2013, windows 7.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I think this is a simpler solution than you think. I am a little fuzzy on your directions. Could you provide the desired outcome on perhaps 5 or so rows? I would like to see what you truly need,

cheers
 
Upvote 0
Here's an example on a couple.

MIGRAT32ARTHROGRAM ELBOW INJ W MRI LEFTemptycell
MIGRAT23CT ABDOMEN W O CONTRASTemptycell

<colgroup><col><col><col></colgroup><tbody>
</tbody>

BECOMES

MIGRAT32ARTHROGRAM ELBOW INJ W MRI LEFTArthrograms
MIGRAT32ARTHROGRAM ELBOW INJ W MRI LEFTExtremities Upper
MIGRAT32ARTHROGRAM ELBOW INJ W MRI LEFTExtremity Upper Distal

<colgroup><col><col><col></colgroup><tbody>
</tbody>
MIGRAT23CT ABDOMEN W O CONTRASTAbdomen

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Matched search terms are highlighted in Red.

Returned values are in Blue.

<colgroup><col><col span="2"></colgroup><tbody>
</tbody>

Abdomenabdadrenalrenalvisceral

<tbody>
</tbody>
Arthrogramsarthrogram elbowarthrogram kneearthrogram hiparthrogram shoulder

<tbody>
</tbody>
Extremities Upperupper extremclavicleupper extelbowshoulderfinger
Extremity Lower Distaliliacankletoesfootheellower ext
Extremity Lower Proximalangiogram extangioplasty illiacangioplasty peripheralarad kneearteriogram extarthrogram knee
Extremity Upper Distalfingerwristhandelbowupper extforearm

<tbody>
</tbody>




Thank you for your help!
 
Upvote 0
No worries on this. I did this manually, as there was a time deadline. I appreciate all the advice. Was hoping that I could put together a small .mdb or similar that I could easily add rows and it would automatically file itself according to the synonyms.

Thanks again!

K
 
Upvote 0

Forum statistics

Threads
1,216,086
Messages
6,128,734
Members
449,466
Latest member
Peter Juhnke

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