Features of !SEMTools
↑ Навигация по задачам в Excel и возможностям надстройки !SEMTools ↑

BIN2DEC

BIN2DEC function in Excel - binary to decimal conversion examples
Function categoryEngineering functions
VolatilityNon-volatile
Similar functionsDEC2BIN, DEC2HEX, HEX2DEC

What does the BIN2DEC function do?

This function converts a binary number to decimal number system.

BIN2DEC function syntax

=BIN2DEC(binary_number)

Binary numbers are limited to ten characters (bits).

  • binary_number — required. The binary number you want to convert to decimal

BIN2DEC formula examples

Convert binary 1010 to decimal:

=BIN2DEC("1010")

Result: 10

Convert binary 1111 to decimal:

=BIN2DEC("1111")

Result: 15

Convert binary 1000000000 (10 bits) to decimal:

=BIN2DEC("1000000000")
BIN2DEC: 10-bit two’s complement
B6=BIN2DEC(A6)
AB
1BinaryBIN2DEC
2101010=BIN2DEC(A2)
3111115=BIN2DEC(A3)
4000000101010=BIN2DEC(A4)
5111111111511=BIN2DEC(A5)
61000000000-512=BIN2DEC(A6)
71111111111-1=BIN2DEC(A7)
81111110110-10=BIN2DEC(A8)
912#NUM!=BIN2DEC(A9)
1011111111111#NUM!=BIN2DEC(A10)

Up to 9 bits, the result is positive. A 10-character number starting with 1 is negative: 1111111111 = −1, 1111110110 = −10 (the result of DEC2BIN(−10)). A digit other than 0/1, or more than 10 characters, returns #NUM!.

Result: −512. With 10 bits, the leftmost bit is the sign, so 1000000000 is the smallest negative number, not 512. The largest positive value is 0111111111 = 511.

BIN2DEC features and limitations

  • Supports binary numbers up to 10 bits (characters)
  • If the binary number is negative, it must be in two's complement notation
  • Leading zeros are optional and don't affect the result
  • If binary_number is not a valid binary number, returns the #NUM! error
  • If binary_number contains more than 10 characters, returns the #NUM! error
  • The function treats the binary number as signed if it's 10 bits long

BIN2DEC: binary number ranges

  • Positive numbers: 0 to 511 (binary 0 to 111111111)
  • Negative numbers: -512 to -1 (using two's complement notation)
  • Maximum binary input: 10 bits (1111111111 represents -1 in two's complement)

Practical examples of BIN2DEC

  • Digital electronics and computer engineering calculations
  • Network subnet mask calculations
  • Binary-coded decimal (BCD) conversions
  • Computer science education and programming
  • Hardware register value interpretations

Other Engineering functions in Excel

BIN2HEX, CONVERT, DEC2BIN, DEC2HEX, DEC2OCT, DELTA, GESTEP, HEX2BIN, HEX2DEC, OCT2DEC

Like the article? Help its author! Buy !SEMTools, it has lots of useful instruments to process text data.