Converts the specified binary (base 2) number to its hexadecimal equivalent.
Syntax
![]() |
---|
BIN2HEX( NumberOrText x, [Integer digits] ) → Text |
If x is not a valid binary number, the function returns the #VALUE! error value. If x contains more than 10 characters (10 bits), the function returns the #NUM! error value.
If digits is omitted, the function uses the minimum number of characters necessary to represent the result. If digits is specified and is less than the number of characters required to represent the result, the function returns the #NUM! error value. If digits is not an integer number, it is truncated.
Formula
![]() |
---|
=BIN2HEX(100100) |
Function Reference
BIN2DEC Function
BIN2OCT Function
DEC2BIN Function
HEX2BIN Function
OCT2BIN Function