BIN2HEX function

Category: Engineering
Introduced: Excel 2003

Summary

Converts a binary number to hexadecimal

Syntax

BIN2HEX(number, [places]) The BIN2HEX function syntax has the following arguments:
• Number Required. The binary number you want to convert. Number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two's-complement notation.
• Places Optional. The number of characters to use. If places is omitted, BIN2HEX uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros).

Example

=BIN2HEX(11111011, 4)
=BIN2HEX(1110)
=BIN2HEX(1111111111)

Microsoft Support Page

https://support.microsoft.com/en-us/office/bin2hex-function-0375e507-f5e5-4077-9af8-28d84f9f41cc

Back to Functions