ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Where are Bitwise Operators (https://www.excelbanter.com/excel-worksheet-functions/97074-where-bitwise-operators.html)

Dennis W. Bulgrien

Where are Bitwise Operators
 
How does one do bitwise manipulations such as exclusive-or (XOR), AND, etc.?



Dennis W. Bulgrien

Where are Bitwise Operators
 
Make VBA functions like these:

Public Function BITXOR(x As Long, y As Long)
BITXOR = x Xor y
End Function

Public Function BITAND(x As Long, y As Long)
BITAND = x And y
End Function

Public Function BITOR(x As Long, y As Long)
BITOR = x Or y
End Function

"Dennis W. Bulgrien" wrote in message
...
How does one do bitwise manipulations such as exclusive-or (XOR), AND, etc.?





All times are GMT +1. The time now is 09:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com