簡體   English   中英

Excel-查找一系列數據以匹配字符串中的字符

[英]Excel - lookup a range of data to match characters in string

在我來到這里之前,我瘋狂地搜尋着。

我有2列信息(為了保護隱私,我必須使用備用數據)。 見下文。

我想在第三列中查看第一列的列表(或范圍)並返回匹配的單詞。 例如,我需要第一句話的第三列(櫃台上有杯子)說“ CUP”。

我已經嘗試過各種功能組合,但我做得還不夠。

1st column    2nd column                       3rd column
Desk          There is a cup on the counter    **Result should be: Cup**
Chair         You need to plug the cord in
Cup           The desk is red
Cord          I have a large computer
Computer      I put the chair over there

假設第1行是標題行,請將此公式放在單元格C2中並向下復制:

=IFERROR(INDEX($A$2:$A$6,MATCH(1,INDEX(COUNTIF(B2,"*"&$A$2:$A$6&"*"),),0)),"")

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM