我的工作簿中有两张 Excel 工作表。
我在一张纸上有参考表。我需要查找单元格中是否存在某个字符串(其中有一个句子),并在引用表中查找该字符串的值并将其写入。
这就是我想要做的:(Sheet 1
是操作表;Sheet 2
是参考表。)
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
我想比较Sheet 2, Column A
匹配中的任何字符串是否与Sheet 1, Column A
. 然后,如果它们匹配,则针对字符串 in 的值Sheet 2, Column 2
应该在Sheet 1, Column B
.
你能指导我如何为此编写宏吗?