EXCEL 里面 如果值为A,B,C,D,E 那么等于1;如果值为F,G,H,I,K那么等于2,怎么设置公式

问题描述:

EXCEL 里面 如果值为A,B,C,D,E 那么等于1;如果值为F,G,H,I,K那么等于2,怎么设置公式

=if(or(A1="A",A1="B",A1="C",A1="D",A1="E"),1,if(or(A1="F",A1="G",A1="H",A1="I",A1="K"),2,""))或者=lookup(A1,{"A","B","C","D","E","F","G","H","I","K"},{1,1,1,1,1,2,2,2,2,2}再或者=IF(MATCH(A1,{"A","B","...