switch(a2,"AAA","1","BBB","2","CCC","3")
------
文字描述和图表不一样...........
b2单元格公式,=SWITCH(a2,"AAA",1,2,2,3,3)
B2单元格添加公式:IF(A2='AAA',1,IF(A2='2',2,3))
IF(A2='AAA',1,IF(A2='BBB',2,3))