XOR Function

snd

New Member
Joined
Jan 24, 2010
Messages
44
Hi to you all.
I'm new to Excel 2013.

This function puzzled me, I'll quote this from Excel Help:

"The result of XOR is TRUE when the number of TRUE inputs is odd and FALSE when the number of TRUE inputs is even." Then they gave an example:

Formula

Description
Result
=XOR(3>0,2<9)
Because one of the two tests evaluates to True, TRUE is returned.
TRUE

<thead>
</thead><tbody>
</tbody>

I applied it in an Excel cell and the result was "FALSE". Was their example wrong.

Thanks a lot.
 
Okay, I concede that Excel's implementation of XOR makes sense, but I wish their description of the function was the cascading one (A Xor B Xor C Xor D, etc.) rather than an odd number of TRUE arguments (which, while identical, doesn't sound so). Given that, I guess the pre-2013 versions of Excel could use something like this...

=MOD(A1+B2+C3+D4+etc.,2)=1

as a substitute for, as an example, for this...

=XOR(A1,B2,C3,D4,etc.)...
 
Last edited:
Upvote 0

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,215,039
Messages
6,122,802
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top