Compare 2 lists, look for substrings from List1 in larger strings in List2

svendfj

Board Regular
Joined
Mar 19, 2011
Messages
99
Office Version
  1. 2016
Platform
  1. Windows
Hello! I have a Workbook that is updated every week with a list, in column A on Sheet1. I
want to go through the Sheet1 list one cell at a time, and look for matches in Sheet2, column A, and copy the text from that cell on Sheet2 into column B for the current row in Sheet1.
The Sheet1 strings are a subset of the Sheet2 strings. For example, I would take "red cat" from a cell in Sheet1 and be able to find a match in a Sheet2 cell that contains 'small red cat and brown dog".
<strike></strike>

My research has not revealed existing programs that can easily be leveraged.
Thank you in advance for any perspective you can please share.

Sven
 
Awesome jtakw!

You're welcome.

The Concatenation idea Aladin suggested is a good idea; however, if 2 or 3 Columns are populated on the same row (say A1, B1, and C1), the end result will be a combined string of All 3, which may or may not be what the OP is after.
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,224,824
Messages
6,181,187
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