Exceljet

Quick, clean, and to the point

Excel BIN2HEX Function

Excel BIN2HEX function
Summary 
The Excel BIN2HEX function converts a binary number to its hexadecimal equivalent.
Purpose 
Converts a binary number to hexadecimal
Return value 
Hexadecimal number
Syntax 
=BIN2HEX (number, [places])
Arguments 
  • number - The binary number you want to convert to hexadecimal.
  • places - [optional] If omitted uses the least number of characters required to represent the number, otherwise pads the result with zeros up to the specified number of places.
Version 
Usage notes 
  • The input number must contain only zeros and ones and be less than 10 characters long, otherwise the function returns the #NUM! error value.
  • The first bit of the binary number indicates whether the number is positive or negative. The other nine digits represent the size of the number, the max of which is 511 (2^9 - 1). A negative binary number is expected to use the two's complement notation.

Download 200+ Excel Shortcuts

Get over 200 Excel shortcuts for Windows and Mac in one handy PDF.