Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default bitwise operations as in xor

is there an Xor operation in excel for a bitwise functions ?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default bitwise operations as in xor

"stevenshrii" wrote:
is there an Xor operation in excel for a bitwise functions ?


No in Excel per se, to my knowledge. But there is an XOR operator in VBA.
For example:

Function myxor(lh as Long, rh as Long) as Long
myxor = lh Xor rh
End Function

When we enter =myxor(12,10), the result is 6. Note that 12 in binary is
1100, 10 is 1010, and 6 is 0110. However, keep in mind that Excel stores
numbers internally as binary floating-point.

The above function is limited to 31-bit positive integers. You can use
32-bit integers by treating them as signed integers.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 292
Default bitwise operations as in xor

Harlan Grove has some clever formula solutions he
http://tinyurl.com/c2p536

HTH. Best wishes Harald

"stevenshrii" skrev i melding
...
is there an Xor operation in excel for a bitwise functions ?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to do "bitwise and operation" in excel? Parth Excel Worksheet Functions 0 May 3rd 07 08:30 PM
how to concatenate operations k_d_w Excel Worksheet Functions 1 October 5th 06 11:50 AM
How do I perform bitwise logical anding and oring in Excel? Mitchell Heldt Excel Worksheet Functions 0 August 6th 06 08:50 PM
Where are Bitwise Operators Dennis W. Bulgrien Excel Worksheet Functions 1 June 30th 06 05:51 PM
OWC operations in Excel mondayisgreat Excel Discussion (Misc queries) 0 March 3rd 06 03:07 PM


All times are GMT +1. The time now is 12:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"