I have two Excel sheets in a workbook.
I have the reference table in one sheet. I need to find if a certain string exists in the cell (which has a sentence) and look up the value against that string in reference table and write it.
This is what I'm trying to do: (Sheet 1 is the operation sheet; Sheet 2 is the reference sheet.)
VLOOKUP(FIND{"compare","contrast","x",..},from the sheet 1 column 1),if string exists,the value against that string in sheet 2 column 2 written in sheet 2 column 2)
{"compare","contrast"} are all words in sheet 1 column 1
I want to compare if any of the strings in the Sheet 2, Column A match with the string (in the sentence or array of strings) in Sheet 1, Column A. Then, if they match, the value against the string in Sheet 2, Column 2 should be generated at Sheet 1, Column B.
Can you please guide me how to write a macro for this?