excel表格,输入编号显示人名
在A1输入人名的编号,A2中自动显示对应的人名,共有20人,IF只能完成7个,再多都错误了,怎么能实现...
在A1输入人名的编号,A2中自动显示对应的人名,共有20人,IF只能完成7个,再多都错误了,怎么能实现
展开
2个回答
展开全部
1,.
用IF也是可以的,2007或更高版本,可以做到,
2.
可以用VLOOKUP
例如
现将所有的编号输入 C列
将与编号对应的姓名输入 D列
A2输入 =VLOOKUP(A1,c:d,2,)
即可解决,
3.用LOOKUP
假设编号是 1-20 姓名是 A-T
A2输入公式
=LOOKUP(A1,{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20},{"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T"})
用IF也是可以的,2007或更高版本,可以做到,
2.
可以用VLOOKUP
例如
现将所有的编号输入 C列
将与编号对应的姓名输入 D列
A2输入 =VLOOKUP(A1,c:d,2,)
即可解决,
3.用LOOKUP
假设编号是 1-20 姓名是 A-T
A2输入公式
=LOOKUP(A1,{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20},{"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T"})
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询