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

HEX2OCT function

Converts a hexadecimal number to octal.

Syntax

=HEX2OCT(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 HEX2OCT

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

=HEX2OCT("F", 3)Result "017"
=HEX2OCT("3B4E")Result "35516"
=HEX2OCT("FFFFFFFF00")Result "7777777400"

Every formula, right in your browser

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