=if(((A1-1)*(A1-2)*(A1-3)*(A1-4)*(A1-5)=0),1,"")
if(or(a1=1,a1=2,a1=3,a1=4,a1=5),1,0)
=IF(OR(A1={1,2,3,4,5}),1,0)