BIN2DEC Function
BIN2DEC Function

BIN2DEC Function

Convert binary text to decimal numbers in Excel. Useful when you want a normal numeric value from a bit pattern or status word.

M. Ichsanul Fadhil
Published

Summary

BIN2DEC converts a binary number (base-2 text or digits) into its decimal integer equivalent (base-10). If you have binary bit strings or sensor status words and need a normal numeric value in your calculations, this is the function to use.

This is especially helpful when dealing with binary registers, hardware telemetry, network subnetting, or digital flags. BIN2DEC bridges the gap between binary representations and standard Excel mathematical operations.

Purpose

Convert binary to decimal

Turns base-2 binary text/numbers into a base-10 decimal number.

Return value

Decimal number

Returns a standard numeric integer between -512 and 511.

Syntax

=BIN2DEC(number)

number is the binary number you want to convert. It can be supplied as a text string or as numeric digits containing only 0 and 1.

Arguments

  • number - [required] The binary number you want to convert. It cannot contain more than 10 binary characters (10 bits). The most significant bit is the sign bit; the remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.

Key Rules and Limitations

  • Input characters: Only 0 and 1 are permitted. Any other character results in a #NUM! error.
  • Bit limit: The input cannot exceed 10 characters (bits). Larger bitstrings return #NUM!.
  • Supported Range: Converted decimal outputs range from -512 (binary 1000000000) to 511 (binary 0111111111).

Common Examples

Formula Binary Input Decimal Output Explanation
=BIN2DEC("1011") 1011 11 1*(8) + 0*(4) + 1*(2) + 1*(1) = 11
=BIN2DEC("11111111") 11111111 255 Standard 8-bit full byte value
=BIN2DEC("1111111111") 1111111111 -1 Two's complement 10-bit signed negative one
=BIN2DEC("10000001") 10000001 129 Standard unsigned 8-bit conversion
Tactical Arena

Share This Lesson

Spread the word with your peers and challenge your friends

Discussion
0 Comments
No comments yet. Be the first to share your thoughts!