This behavior is sometimes referred to as “exclusive OR”, meaning only one result can be true.

Note: with more than two criteria, XOR behavior changes, asexplained on the XOR function page.

If neither is TRUE, XOR also returns FALSE.

Excel formula: Count cells equal to this or that

Excel formula: If cell is x or y and z

Excel XOR function