如何在excel中用IF设置等级A、B、C

2025-04-05 18:26:09
推荐回答(2个)
回答1:

假设你的意思是A1单元格内容为1时是A,为2时是B,为3时是C
=IF(A1=1,"A",IF(A1=2,"B",IF(A1=3,"C","")))
2003版可以嵌套七层IF函数

=VLOOKUP(A1,{1,"A";2,"B";3,"C"},2,)

=LOOKUP(A1,{1,2,3},{"A","B","C"})

回答2:

=IF(条件1,"A",IF(条件2,"B","C"))