1. Home
  2. Functions
  3. Engineering
  4. HEX2BIN

HEX2BIN function

Converts a hexadecimal number to binary.

Syntax

=HEX2BIN(number, [places])

Arguments

ArgumentRequiredDescription
numberRequiredThe hexadecimal number (up to 10 characters)
placesOptionalThe number of characters to use (left out: as few as needed)

How to use HEX2BIN

HEX2BIN takes 1 required argument and 1 optional argument. Type =HEX2BIN( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=HEX2BIN("F", 8)Result "00001111"
=HEX2BIN("B7")Result "10110111"
=HEX2BIN("FFFFFFFFFF")Result "1111111111"

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.