EXCEL DEC2BIN FUNCTION

The Dec2Bin function in Excel transforms a decimal value to a binary (Base 2) number.

Syntax :

=DEC2BIN ( number, [places])

Parameters :

  • The following are the function arguments:

Number :

The decimal value to be converted to binary.

Places :

  • An optional parameter indicates the amount of characters to be included in the returned binary number.
  • If this value is more than zero, the binary integer will be padded with leading zeros.
  • If omitted, the returned binary utilises the fewest possible locations.

Step By Step Guide of DEC2BIN Function

Example :

The spreadsheets below demonstrate five instances of the Excel Dec2Bin function. It’s worth noting that the negative binary integer in cell A4 in the above example spreadsheet is represented using two’s complement notation.

  • #NUM! – Occurs if the given number argument is either -512 or more than 511; the resultant binary number requires more places than the supplied [places] parameter; The given [places] parameter is 0 or greater than 10.
  • #VALUE! – Occurs when one or both of the supplied numbers or [places] are non-numeric.

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now