请教EXCEL表格中如何将0~10这11个数字与1,0,X,9,8,7,6,5,4,3,2,相对应

2024-12-30 18:58:42
推荐回答(3个)
回答1:

假设0-10在A列,A1-A11,在B1输入:
=lookup(a1,{0,1,2,3,4,5,6,7,8,9,10},{1,0,"X",9,8,7,6,5,4,3,2})
换成=LOOKUP(A1,ROW($1:$11)-1,{1,0,"X",9,8,7,6,5,4,3,2})
也可以。

回答2:

=LOOKUP(A2,{0,1,2,3,4,5,6,7,8,9,10},{1,0,"X",9,8,7,6,5,4,3,2})

回答3:

假设数字在A1
=MID("10X98765432",A1+1,1)