在第1栏我有:
London, United KingdomRetail
ItalyConsumer Goods
London, United KingdomManagement Consulting
United KingdomManagement Consulting
Warsaw, Masovian District, PolandLogistics and Supply Chain
PolandInternet
Cologne Area, GermanyWholesale
London, United KingdomFood & Beverages
和第2栏:
Netherlands
Switzerland
Turkey
Estonia
Greece
United Kingdom
Spain
Belgium
Slovak Republic area
Poland
Hungary
Italy
Germany
我的问题是:如果第2列中的某个国家/地区出现在第1列的任何位置,我希望将其显示在第3列中。第1列中只能显示一个国家/地区。
非常感谢任何帮助!
答案 0 :(得分:1)
对于给定的范围,我建议这样的事情:(在C1中并复制下来)
=IF(OR(ISNUMBER(SEARCH($B$1:$B$13,A1))),INDEX($B$1:$B$13,MIN(IF(ISNUMBER(SEARCH($B$1:$B$13,A1)),ROW($B$1:$B$13)))),"")
这是一个数组公式,需要用 CTRL + SHIFT + ENTER 确认。
答案 1 :(得分:0)
使用text to columns将第一列拆分为多列,然后执行以下操作:
= VLOOKUP(A1,C:E,1,FALSE)
你应该最终得到这个(这个#N / As是带有vLookup的列):
Netherlands | #N/A | London | United KingdomRetail |
Switzerland | #N/A | ItalyConsumer Goods | |
Turkey | #N/A | London | United KingdomManagement Consulting |
Estonia | #N/A | United KingdomManagement Consulting | |
Greece | #N/A | Warsaw | Masovian District | PolandLogistics and Supply Chain
United Kingdom | #N/A | PolandInternet | |
Spain | #N/A | Cologne Area | GermanyWholesale |
Belgium | #N/A | London | United KingdomFood & Beverages |
Slovak Republic area | #N/A | | |
Poland | #N/A | | |
Hungary | #N/A | | |
Italy | #N/A | | |
Germany | #N/A | | |
答案 2 :(得分:0)