Hello,
I need a macro to lookup a string in a cell against a column on another worksheet. Attached is the sample spreadsheet of what I am looking for. "Sheet 2" has the master data or the column against which I want to do a look up. "Sheet 1, Column A" is what I want to look up and "Sheet 1, Column B" is the output which is "Yes" when the string is present in the master data and "No" when it is not.
So, for example in the attached spreadsheet, "Sheet 1, cell (2,1)" = "Apple Iphone 7 USA". Now this string contains "Apple" which is present in "Sheet 2, Column A" so the output will be "Yes". Similarly, "Sheet 1, cell (4,1)" = "Motorola Razr USA Oppo China", now none of these words is present in the "Sheet 2, Column A", hence the output is "No".
Thanks for all the help and let me know if you have any questions.
Bookmarks