Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default error when I try to convert hex to bin with more than 8 chacters?

=dec2bin("5600",16) will return #NUM?
I check the help it should work fine?
I was using the hex2bin function too and it behaves same.
How should I convert the dec or hex to bin with more than 8 bits?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 947
Default error when I try to convert hex to bin with more than 8 chacters?

=dec2bin("5600",16) will return #NUM?
I check the help it should work fine?


Hi. According to Help...
"...If number < -512 or if number 511, DEC2BIN returns the #NUM! error
value."

Also, your number should not be the string "5600".
ie...=DEC2BIN(500,10)

One would think that with a "Major" release of Excel 2007, such a limitation
would have been updated. But...no!

--
HTH :)
Dana DeLouis
Windows XP & reluctantly using Office 2007


"convert the dec or hex to bin(16 BIT)" <convert the dec or hex to bin(16
wrote in message
...
=dec2bin("5600",16) will return #NUM?
I check the help it should work fine?
I was using the hex2bin function too and it behaves same.
How should I convert the dec or hex to bin with more than 8 bits?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default error when I try to convert hex to bin with more than 8 chacters?

Don't know what Help you checked, but this is in my version's help:

If number < -512 or if number 511, DEC2BIN returns the #NUM! error
value.


Also, Dec2Bin takes a numeric first argument, not a text string.

See

http://www.mcgimpsey.com/excel/udfs/longdec2bin.html

In article ,
convert the dec or hex to bin(16 BIT) <convert the dec or hex to
bin(16 wrote:

=dec2bin("5600",16) will return #NUM?
I check the help it should work fine?
I was using the hex2bin function too and it behaves same.
How should I convert the dec or hex to bin with more than 8 bits?

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
Limit number of chacters in cell plunk25 Setting up and Configuration of Excel 1 February 20th 07 07:03 PM
Error Checking - Convert to Number dbarelli[_22_] Excel Programming 1 August 16th 06 03:57 PM
How to convert VLOOPUP error value #NA to 0? Rex Excel Worksheet Functions 4 February 26th 06 12:23 PM
error convert to number macro cherrynich Excel Programming 3 January 19th 06 01:26 PM
How do you extract numbers from a string of chacters in a cell (E. blackbeemer Excel Worksheet Functions 6 November 12th 04 09:00 AM


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

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"