EXCEL BIN2HEX FUNCTION

The Bin2Hex function in Excel transforms a Binary (Base 2) value to a Hexadecimal (Base 16) number.

Syntax:

=BIN2HEX( number[places] )

Parameter: 

  •  The following are the function arguments:

number:

  • The binary value to be translated to hexadecimal.

[places]:

  • An optional parameter that determines the amount of characters to be included in the returned hexadecimal number.
    If this value is larger than zero, the hexadecimal number will be padded with leading zeros.
    If omitted, the returned hexadecimal utilises the fewest possible places.

 

Example:

The spreadsheets below demonstrate five uses of the Excel Bin2Hex function

  • #NUM! – Occurs if either:
    The given number argument is not a binary integer and contains more than ten characters; the resultant hexadecimal number requires more places than indicated by the supplied [places] parameter;
    The given [places] argument is 0 or more than 10.
  • #VALUE! – Occurs if the supplied [places] argument 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