=OR(AND(A1,NOT(B1)),AND(NOT(A1),B1))
--
Rick (MVP - Excel)
"RL Jones" <RL Jo...@discussions.microsoft.com> wrote in message
news:60D87E8B-B977-4003...@microsoft.com...
Excel doesn't have it but you can write your own quite simply
=IF(COUNTIF(A1:B1,"Some Value")=1,TRUE,FALSE)
Mike
Can be abbreviated to:-
=(A1<>0)+(B1<>0)=1
and it also works if both cells are blank.
Mike
=NOT(A1)+NOT(B1)=1
--
Rick (MVP - Excel)
"Mike H" <Mi...@discussions.microsoft.com> wrote in message
news:4217D9BA-483E-4BAC...@microsoft.com...
=XOR(A1,B1) then they are as short as it gets.
Mike
If A1 and B1 would always be 1s or 0s, even shorter:
=MOD(A1+B1,2)
Provided the user didn't need to see the result of the operation as
TRUE/FALSE, of course.
It's included as an Excel vba function.
I have no idea why it's not included as a Worksheet function.
b = a Xor b
= = = =
Dana DeLouis
=MOD(A1+B1,2)=1
I think he likes being able to do that, so I thought I would be nice to him
and leave the door open for him to do that.<g> Of course, now that I took
that opportunity away from him in my response to you, I'll have to give him
a different opening for a response to this thread. Let me see... I know... I
do wonder which is the more efficient construction... Harlan's formula which
uses a MOD function call, mine which uses two NOT function calls or Mike's
which uses two logical comparisons.
--
Rick (MVP - Excel)
"Herbert Seidenberg" <herbds...@yahoo.com> wrote in message
news:f0d14c72-704f-483c...@m7g2000prd.googlegroups.com...