我有两个工作表,如本例所示:
工作表1
A
工作表2
A
我需要一个公式,告诉我学生们为我的例子中的垒球和网球等其他选项所写的内容。
答案 0 :(得分:0)
在工作表1中,假设您返回的答案从A2开始,您可以使用此公式,并向下拖动每个答案:
=IF(OR(SUBSTITUTE(RIGHT(SUBSTITUTE(A2,",",REPT(" ",99)),100)," ","")="basketball",SUBSTITUTE(RIGHT(SUBSTITUTE(A2,",",REPT(" ",99)),100)," ","")="football",SUBSTITUTE(RIGHT(SUBSTITUTE(A2,",",REPT(" ",99)),100)," ","")="soccer"),"",SUBSTITUTE(RIGHT(SUBSTITUTE(A2,",",REPT(" ",99)),100)," ",""))
这将返回逗号之后列出的最后一项不是篮球,足球或足球的运动,否则返回空白。