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

BIN2HEX function

Converts a binary number to hexadecimal.

Syntax

=BIN2HEX(number, [places])

Arguments

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

How to use BIN2HEX

BIN2HEX takes 1 required argument and 1 optional argument. Type =BIN2HEX( 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.

=BIN2HEX(11111011, 4)Result "00FB"
=BIN2HEX(1110)Result "E"
=BIN2HEX(1111111111)Result "FFFFFFFFFF"

Every formula, right in your browser

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