简体   繁体   中英

Excel - VLOOKUP return based on partial match

I have two sheets. Sheet 2 contains keywords. Sheet 1 contains some very long strings. Among the long strings, I need to find if there is match from the keyword on other page sheet 2.

Sheet 1:

工作表1

Sheet 2

工作表2

I used Wildcard but retuning #N/A

=VLOOKUP("*"&A2&"*",Sheet2:A,A,1,FALSE)

Try SEARCH() and FILTER() .

=TEXTJOIN(", ",1,FILTER(Sheet2!$A$1:$A$3,ISNUMBER(SEARCH(Sheet2!$A$1:$A$3,A2))))

TEXTJOIN() for joining multiple keyword if any.

在此处输入图像描述

Perhaps you could try using the LOOKUP() Function

在此处输入图像描述


• Formula used in cell B2

=LOOKUP(9^9,SEARCH($D$1,A2),$D$1)

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)),"")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM