Xor operator or function?

A

awrightus

Excel doesn't seem to have a built in Xor operator or function, as far
as I can tell. Is there any way to Xor two decimal numbers in Excel?
Thanks.

Steve
 
D

Dana DeLouis

Hello. Don't know if this will help, but Excel's vba has an "Xor" function.
Perhaps make a User Defined Function.

Sub Demo()
Dim n1
Dim n2

n1 = 15
n2 = 10

Debug.Print Hex2Bin(n1)
Debug.Print Hex2Bin(n2)

Debug.Print n1 Xor n2 ' Ans = 5
End Sub

Returns:
10101
10000
5

HTH :>)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

bitwise operations as in xor 2
Binary NOT? 4
Flash memory XOR 3
bitwise functions 3
XOR operator in Excel 7
Looking for BOOLEAN ALGEBRA functions (specifically XOR) 12
XOR Operator - How? 3
XOR Operation - How? 1

Top