I have 5 cells with either 1, 0 and -1 values.
I want to build a formula that allows me to have, for example, a 0 or a -1 if any of those 5 cells are a 0 or a -1.
Can you please help? Thanks.
I have 5 cells with either 1, 0 and -1 values.
I want to build a formula that allows me to have, for example, a 0 or a -1 if any of those 5 cells are a 0 or a -1.
Can you please help? Thanks.
To test for any zeros, use:
=IF(COUNTIF(A1:A5,0)>0,0,"")
and to test for any -1's, use:
=IF(COUNTIF(A1:A5,-1)>0,-1,"")