簡體   English   中英

Excel在范圍內的字符串中找到字符串返回對應列中的數據

[英]Excel find string in string in range return data in corresponding column

Excel又麻煩了。 ;-)

我有這樣的專欄:

A         B             C
UserID    Name          Org_Name
1         Brian Green   Susan Red
2         Niels Red     Susan Blue
3         Susan Yellow  Brian Green
4         India Orange  Serge Black

我正在尋找一個可以在Name(B)中找到ORG_Name(C)並返回找到的UserID(A)和Name(B)的公式。

在這種情況下,它可能看起來像這樣:

A         B             C              D         E
UserID    Name          Org_Name       FoundID   FoundName
1         Brian Green   Susan Red      N/A       N/A
2         Niels Red     Susan Blue     N/A       N/A
3         Susan Yellow  Brian Green    1         Brian Green
4         India Orange  Serge Black    N/A       N/A

任何人?

FoundID列的公式:

=INDEX($A$2:$A$5,MATCH(C2,$B$2:$B$5,0))

FoundName列的公式:

=INDEX($B$2:$B$5,MATCH(C2,$B$2:$B$5,0))

根據需要調整最后一行(兩個公式中的5s)

暫無
暫無

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

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