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

OCT2HEX function

Converts a octal number to hexadecimal.

Syntax

=OCT2HEX(number, [places])

Arguments

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

How to use OCT2HEX

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

=OCT2HEX(100, 4)Result "0040"
=OCT2HEX(7777777533)Result "FFFFFFFF5B"

Every formula, right in your browser

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