excel函数如何判断如果A1=1,2,3,4,5中的任意1个,那么返回1,否则返回0

2025-01-01 03:05:54
推荐回答(3个)
回答1:

=if(((A1-1)*(A1-2)*(A1-3)*(A1-4)*(A1-5)=0),1,"")

回答2:

if(or(a1=1,a1=2,a1=3,a1=4,a1=5),1,0)

回答3:

=IF(OR(A1={1,2,3,4,5}),1,0)