TX Sheet Control

BIN2HEX Function

Function

Convert a binary number to a hexadecimal number. number has at most 10 binary digits, and 10 digits starting with 1 are a negative number in two's complement, which returns 10 hexadecimal characters (FFFFFFFFFF for -1). places pads a positive result with leading zeros to that many characters; it is ignored for negative numbers. A places of 0 or less, or an invalid binary number, returns #NUM!.

Syntax

BIN2HEX(number, places)

Category: Engineering. Minimum arguments: 1. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=BIN2HEX(10)

The formula returns 2.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also