Leading the way in Microsoft Office Development
 Home|Excel|Word|PowerPoint|Consultancy|Feedback|Contact 
 Microsoft Excel > Functions > Engineering > BIN2DEC

 

BIN2DEC(number)

 
 Returns the number converted from binary to decimal.

 numberThe binary number you want to convert.

 REMARKS
 
  • This function is only available if you have the Analysis ToolPak add-in installed.
     
  • If "number" contains more than 10 characters (10 bits), then #NUM! is returned.
     
  • If "number" contains 10 characters then the most significant bit (i.e. the first number) represents the sign bit. See rows 6 and 7.
     
  • If "number" is not a valid binary number, then #NUM! is returned.
     
  • Any negative numbers are represented using two's complement notation.

     EXAMPLES
     
     A
    1=BIN2DEC(1) = 1
    2=BIN2DEC(10) = 2
    3=BIN2DEC(100) = 4
    4=BIN2DEC(111) = 7
    5=BIN2DEC(10001) = 17
    6=BIN2DEC(100000000) = 256
    7=BIN2DEC(1100000000) = -256
    8=BIN2DEC(1111111111) = -1
    9=BIN2DEC(1111111110) = -2
    10=BIN2DEC(1111111101) = -3
    11=BIN2DEC(1111110011) = -13
    12=BIN2DEC(1111110000) = -16
    13=BIN2DEC(1000000000) = -512
    14=BIN2DEC(123456789012) = #NUM!
    15=BIN2DEC("some text") = #NUM!
     

     Functions - B | Index - B | Office Online 

     Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved.Top