A cell cannot "equal 100 AND 200". Use the
formula, =IF(OR(A1={100,200}),"Yes","No"), to
test if the cell A1 "equals 100 OR 200".
It sounds like you are looking for an exclusive-or function. For two conditions, this is:
=if(and(or(a1=100,b1=200)),not(and(a1=100,b1=200)),"Yes","No")
For three or more conditions, this is a VBA question, and my brain hurts too much to try it.
HTH
{=NOT(PRODUCT((A1:B1={100,200})+0))}
No need for brain strain or VBA with 3 or more
conditions...
{=NOT(PRODUCT((A1:C1={100,200,300})+0))}
{=NOT(PRODUCT((A1:D1={100,200,300,400})+0))} ...
Note: Array formulas must be entered using the
Control+Shift+Enter key combination. The
outermost braces, {}, are not entered by you --
they're supplied by Excel in recognition of a
properly entered array formula.
Oops! Found a semantical error...use these instead...
{=SUM((A1:B1={100,200})+0)=1}
{=SUM((A1:C1={100,200,300})+0)=1}
{=SUM((A1:D1={100,200,300,400})+0)=1}