Exceljet

Quick, clean, and to the point

Excel HEX2BIN Function

Excel HEX2BIN function
Summary 
The Excel HEX2BIN function converts a hexadecimal number to its binary equivalent.
Purpose 
Converts a hexadecimal number to binary
Return value 
Binary number
Syntax 
=HEX2BIN (number, [places])
Arguments 
  • number - The hexadecimal number you want to convert to binary.
  • places - [optional] Pads the resulting binary number with zeros up to the specified number of digits. If omitted returns the least number of characters required to represent the number.
Usage notes 
  • Excel only converts to binary numbers of 10-digits or less, restricting the input range to [-512, 511] (decimal).
  • The input number must be less than or equal to ten alpha-numeric characters, otherwise the function returns the #NUM! error value.
  • The internal (binary) representation of the hexadecimal number uses two's complement notation. The first bit indicates whether the number is positive or negative, and the other 39 bits indicate the magnitude of the number.

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.