How to populate Sheet2 from Sheet1 after finding matching word on Sheet2 from list in Sheet1?

nbwoodruff

New Member
Joined
Oct 4, 2013
Messages
4
I have 2 Worksheets in an Excel 2010 Workbook -

Sheet1
Column1: contains the word "dog"
Column2: contains the word "bark"

Sheet2
Column1: contains the sentence "I like dogs a lot."
Column2: is blank

What I need to do is search Sheet2/Column1 for the presence of "dog" and if it's present, populate the word "bark" in Sheet2/Column2 from Sheet1/Column2.

How can I do this?

Any help is appreciated!

Thank you!

NBW
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Enter this formula in Sheet2 B1 (assuming the phrase "I like dogs a lot" is in A1 on Sheet2).

=IF(ISERROR(SEARCH("dog",A1)),"",VLOOKUP("dog",Sheet1!A:B,2,0))

If there is a lot of data, or you will be looking up many phrases in column A of Sheet2, then you may want to substitute INDEX+MATCH for VLOOKUP to improve performance.
 
Upvote 0
Awesome, thanks! Will give it a try and report back. Only about 1,000 rows of data - so not too big - but slowly evolving and growing...
 
Upvote 0
Gehusi - ok, I can get that to work, thank you very much for this. Is there a way to make the 2 "dog" entries you have in the formal dynamic? Meaning, the word "dog" wouldnt be in the formula at and instead would be a range of cells for both instances of the word "dog"? Thanks again, Nathan
 
Upvote 0
A range of cells, no - that would require a bit more heavy lifting. A single cell? Easy enough - just replace "dog" with the cell reference containing the text you want to match. For example, if the text is in cell G1:

=IF(ISERROR(SEARCH(G1,D1)),"",VLOOKUP(G1,Sheet1!A:B,2,0))
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,843
Members
449,471
Latest member
lachbee

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