KneesUp
Guru
I'm trying to get a spreadsheet to check if a number is repeated
So the formula in L4 (as shown) should, I believe
Check that there is no 4 is cells B2, C2 and D2 =IF(AND($B2<>L$1,$C2<>L$1,$D2<>L$1)
and if this is true (there are no 4s) it should show what's in L1 ,L1
and if this is false, it should show an the word Invalid cell ,"Invalid")
The 'false' bit works, bit the true bit does not - as you can see I just get 'True' rather than the value. In fact even if I replace the reference with a number, I just get 'True' - only if I put it is as a string (e.g. put it in speech marks so the spreadsheet thinks it is text) does it return anything else.
I expect I've misplaced a comma or something - I've done similar before with no issues, but I can't for the life of me see what I've done wrong here, so if I could borrow some more eyes that'd be grand.
Ta.
So the formula in L4 (as shown) should, I believe
Check that there is no 4 is cells B2, C2 and D2 =IF(AND($B2<>L$1,$C2<>L$1,$D2<>L$1)
and if this is true (there are no 4s) it should show what's in L1 ,L1
and if this is false, it should show an the word Invalid cell ,"Invalid")
The 'false' bit works, bit the true bit does not - as you can see I just get 'True' rather than the value. In fact even if I replace the reference with a number, I just get 'True' - only if I put it is as a string (e.g. put it in speech marks so the spreadsheet thinks it is text) does it return anything else.
I expect I've misplaced a comma or something - I've done similar before with no issues, but I can't for the life of me see what I've done wrong here, so if I could borrow some more eyes that'd be grand.
Ta.