Whereas the OR function returns true ifanyinput is TRUE, XOR only returns TRUE in specific cases.

If both values are TRUE, XOR returns FALSE.

The concept of exclusive OR is more common in the world of programming.

XOR with more than two logicals

If they visit one or the other, the original statement is TRUE.

If they visit neither or both, the original statement is FALSE.

OR returns TRUEif any condition is TRUE.

XOR with more than two logicals

If all conditions are FALSE, the OR function returns FALSE.

When given TRUE, NOT returns FALSE.

When given FALSE, NOT returns TRUE.

XOR with more than two logicals

Use the NOT function to reverse a logical value.

AND returns TRUEonly if all the conditions are met.

If any conditions are not met, the AND function returns FALSE.

XOR with more than two logicals

More than one condition can be tested by nesting IF functions.

XOR with more than two logicals

Excel formula: One or the other not both

Excel OR function

Excel NOT function

Excel AND function

Excel IF function