我正在尝试使用 a 列(5000行)并匹配列 b (138行)以及在单元格中找到匹配项 b < / strong>将取单元格 c (在同一行)并将其打印在单元格 d 中。我试图使用IF语句和VLOOKUP,但似乎无法使其正确。
使用嵌套IF语句的问题是列 b 是138到150个类别。
Column a Column b Column c Column d this is orange Fitness Bug Fitness Should print "Orange Fruit" this is yellow Jack Rabit Jacks Should print "Bees" this is ebay Yellow Jacket Bees Should print "Websites" this is Rabit Ebay Website Websites Should print "Jacks" this is fitness Oranges Orange Fruit Should print "Fitness"
答案 0 :(得分:1)
=""""&VLOOKUP(INDIRECT("B"&MATCH("*"&A1&"*",B:B,0)),B:C,2,FALSE)&""""
位于第一行并向下复制。
编辑(基于对评论的澄清和对问题的重新解释)
="Should print """&VLOOKUP(INDIRECT("B"&MATCH("*"&MID(A1,9,LEN(A1)-7)&"*",B:B,0)),B:C,2,FALSE)&""""