Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Bit wise and function.

Can any body help me with a function which does bit wise and for binary
numbers.

Also is there any function which converts binary numbers with 16 digits to
Decimal.

Regards,

Satish Salankimatt.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Bit wise and function.

Although BIN2DEC can only deal with up to 10 bits, if you've got a 16 bit
number you can split it and use
=256*BIN2DEC(LEFT(A33,8))+BIN2DEC(RIGHT(A33,8))
--
David Biddulph

"Satish Salankimatt." <Satish wrote
in message ...
....
Also is there any function which converts binary numbers with 16 digits to
Decimal.

....


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Bit wise and function.

If A1 and B1 hold the two numbers, the following formula will
calculate the numeric value of their bitwise AND:

=SUMPRODUCT(MOD(INT(A1/2^(ROW(1:16)-1)),2)*MOD(INT(B1/2^(ROW(1:16)-1)),
2)*2^(ROW(1:16)-1))

HTH
Kostis Vezerides

On Mar 21, 10:14 am, Satish Salankimatt. <Satish
wrote:
Can any body help me with a function which does bit wise and for binary
numbers.

Also is there any function which converts binary numbers with 16 digits to
Decimal.

Regards,

Satish Salankimatt.



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
summing function in pivot table in column wise ?? Madhu Excel Worksheet Functions 1 December 1st 06 10:40 AM
row wise query Gerald New Users to Excel 11 October 17th 06 03:21 PM
row wise query Gerald Excel Discussion (Misc queries) 1 October 14th 06 12:51 PM
Data row wise, formula column wise Fred Smith Excel Discussion (Misc queries) 4 December 9th 05 03:48 PM
Delete row wise duplicates & colomun wise simultaneously excel Dipankar Excel Worksheet Functions 0 October 6th 05 01:14 PM


All times are GMT +1. The time now is 12:39 AM.

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

About Us

"It's about Microsoft Excel"