I'm trying to check whether cell A73 is equal to any of the cells A2 to A27. (Excel 2007)
The values in the cells are strings, i.e words.
First attempt was =IF(A73=A2:A27;1;0), this gives me #VALUE! error.
I have started on a formula that is working, but it's rather tedious. This formula seems to be working for checking A73 against A27 to A20, and I'd have to extend it with 18 more IF statements to complete it.
=IF(A73=A27;1;IF(A73=A26;1;IF(A73=A25;1;IF(A73=A24;1;IF(A73=A23;1;IF(A73=A22;1;IF(A73=A21;1;IF(A73=A20;1;0))))))))
There's got to be a simpler way of doing this with a very short formula.
Any help is appreciated.
Bookmarks