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.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I am afraid I am limited to Excel2010 and the exclusive or did not exist as a worksheet function until 2013. I read the online help it seems awfully confusing. I would think that "The result of XOR is TRUE when the number of TRUE inputs is odd and FALSE when the number of TRUE inputs is even." would be accurate.

Just out of curiosity, what happens if you put =XOR(10,8) in a cell?

Mark
 
Upvote 0
I am afraid I am limited to Excel2010 and the exclusive or did not exist as a worksheet function until 2013. I read the online help it seems awfully confusing. I would think that "The result of XOR is TRUE when the number of TRUE inputs is odd and FALSE when the number of TRUE inputs is even." would be accurate.

Just out of curiosity, what happens if you put =XOR(10,8) in a cell?

Mark
It returns FALSE since you are providing an even amount of numbers. Had it been =XOR(10) or =XOR(10,8,5), it would return TRUE.
 
Upvote 0
This should be equivalent to the one below, but strangely it doesn't work that way.



A
1=ISODD(SUMPRODUCT(--{FALSE,TRUE,FALSE,TRUE,TRUE}))
Sheet2

<tbody>
</tbody>
 
Last edited:
Upvote 0
Actually it does. It works exactly the same. I just made a mistake in my SUMPRODUCT ARRAY when I was testing it.

So yes those 2 will return exactly the same results.
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,757
Members
449,094
Latest member
dsharae57

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