[英]Excel - VLOOKUP return based on partial match
I have two sheets.我有两张床单。 Sheet 2 contains keywords.
工作表 2 包含关键字。 Sheet 1 contains some very long strings.
工作表 1 包含一些很长的字符串。 Among the long strings, I need to find if there is match from the keyword on other page sheet 2.
在长字符串中,我需要查找其他页面 2 上的关键字是否匹配。
Sheet 1:第 1 张:
Sheet 2工作表 2
I used Wildcard but retuning #N/A我使用通配符但重新调整#N/A
=VLOOKUP("*"&A2&"*",Sheet2:A,A,1,FALSE)
If you have a list of keywords, and you want to return the one that matches, then try:如果您有一个关键字列表,并且想要返回匹配的关键字,请尝试:
=IFERROR(INDEX(KeyWords,AGGREGATE(15,6,1/ISNUMBER(FIND(KeyWords,A2))*ROW(KeyWords),1)),"")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.