excel如果A1单元格包含上海时B1单元格则显示为华东,包含广州时则显示为华南

2024-11-15 11:39:31
推荐回答(2个)
回答1:

  • =IF(COUNT(FIND("上海",A1)),"华东",IF(COUNT(FIND("广州",A1)),"华南",""))

回答2:

B1=if(iserror(find("上海",A1)),if(iserror(find("广州",A1)),"","华南"),"华东")