excel公式里,怎样设置只要字段中包含某些指定的字符,就显示特定的结果,如图

2025-01-05 21:58:49
推荐回答(2个)
回答1:

假设数据在A列,A2开始
B2:=IF(SUM(IF(ISERROR(FIND({1,2,3,4,5,6,7,8,9},A2)),0,1))>0,"级别1","-")
C2:=IF(SUM(IF(ISERROR(FIND({"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"},A2)),0,1))>0,"级别2","-")
B2:C2,下拉到底

回答2:

条件IF函数...
=IF(ISNUMBER(LOOKUP(,-FIND(ROW($1:$10)-1,A1))),"级别一","级别二")