How to use BIN2DEC function in Excel?

The `BIN2DEC` function in Excel is used to convert a binary number (base 2) to a decimal number (base 10). Here’s how you can use it:

Syntax:

BIN2DEC(number)
  • number: This is the binary number you want to convert to a decimal number. It can be up to 10 characters long, which includes the sign bit in binary systems. The number must be represented as a string or a number without any decimal points.

Steps to Use BIN2DEC:

  • Open Excel: Open the Excel workbook where you want to perform the conversion.
  • Select a Cell: Click on the cell where you want the result (decimal number) to appear.
  • Enter the BIN2DEC Function:
    • Start by typing `=BIN2DEC(`.
    • Enter the binary number within quotes if it’s a text or directly if it’s formatted as a number. For example, `=BIN2DEC(“1101”)` or `=BIN2DEC(1101)`.
    • Close the parenthesis and press `Enter`.
  • View the Result: The cell will display the decimal equivalent of the binary number you entered.

Example:

  • Binary number `1101` is equivalent to the decimal number `13`.
  • Using the formula: `=BIN2DEC(“1101”)` would yield `13`.

Important Notes:

  • Ensure the binary number is valid and does not exceed 10 bits, which includes the sign bit. For positive numbers, this means 9 data bits and 1 sign bit.
  • For negative binary numbers, Excel represents them using two’s complement notation. In such cases, if the binary number is a negative value, `BIN2DEC` will interpret it as such based on the sign bit (left-most bit).

Using this function is straightforward and can be very handy when dealing with binary-to-decimal conversions in your Excel worksheets.

Unlock Your Potential

Excel

Basic - Advanced

Access

Access Basic - Advanced

Power BI

Power BI Basic - Advanced

Help us grow the project