• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Compound Logic Tests

polarisking

Member
I'm testing a cell to see whether it's not equal to several values, e.g.


=if(and(A1<>"Bear",A1<>"Goat",A1<>"Moose",A1<>"Lion") . . .


Is there a way to contruct the test where I only have to cite the cell once, e.g.


=if(A1 <> and("Bear","Goat","Moose","Lion") [I know this isn't real syntax, but you get the idea, I hope]
 
I think this should do it

Code:
=IF(Not(OR(A1={"Dog","Cat","Goat","Bear"})),TRUE, FALSE)
 
Back
Top