excel 关于vlookup函数的问题

来源:百度知道 编辑:UC知道 时间:2024/06/08 14:59:53
比如A2:A6输入1,2,1,2,3,B2:B6输入“我,是,中,国,人” 问题1:C2中输入公式:显示字符“是”向左查找的匹配字符“2”问题2: D2中输入公式:显示第二个字符“2”的匹配字符“国”

用VLOOKUP()做不到。
C2=INDEX(A2:A6,MATCH("是",B2:B6,))
D2=INDEX(B2:B6,SMALL(IF((A2:A6=2),ROW(1:5),65536),2))
D2的是数组公式,按Ctrl+Shift+Enter结束公式输入。

楼上很快哟,可以做到的
1 我 1 我 =VLOOKUP(C2,$A$2:$B$6,2,0)
2 是 2 是 =VLOOKUP(C3,$A$2:$B$6,2,0)
1 中 1 我 =VLOOKUP(C4,$A$2:$B$6,2,0)
2 国 2 是 =VLOOKUP(C5,$A$2:$B$6,2,0)
3 人 3 人 =VLOOKUP(C6,$A$2:$B$6,2,0)

我 1 是 2 =VLOOKUP(C9,$A$9:$B$13,2,0)
是 2 中 1 =VLOOKUP(C10,$A$9:$B$13,2,0)
中 1 是 2 =VLOOKUP(C11,$A$9:$B$13,2,0)
国 2 人 3 =VLOOKUP(C12,$A$9:$B$13,2,0)
人 3 国 2 =VLOOKUP(C13,$A$9:$B$13,2,0)