EXCEL HEX2BIN FUNCTION

The Hex2Bin function in Excel transforms Hexadecimal (Base 16) numbers to Binary (Base 2) numbers.

Syntax :

=HEX2BIN( number[places] )

Parameters :

The following parameters are :

  • Number – The hexadecimal value to be translated to binary.

 

  • Places – An optional parameter that determines the amount of characters 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 HEX2BIN Function

Example :

Two’s complement notation is used to express negative hexadecimal and binary integers in cell A4.

  • #NUM! – Occurs if the given number argument is not recognised as a hexadecimal number or has more than 10 characters. The generated binary number requires more places than the [places] parameter specifies. The given [places] parameter is 0 or greater than 10.
  • #VALUE! – This error occurs if the given [places] parameter is not a number.

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