Formualizer Docs
ReferenceFunctionsEngineering Functions

HEX2OCT

HEX2OCT: Converts a hexadecimal text value to octal text.

Summary

Supports optional left-padding through the places argument.

Remarks

  • Input must be hexadecimal text up to 10 characters and may be signed two's-complement.
  • Converted values must fit the octal range [-2^29, 2^29 - 1], or #NUM! is returned.
  • places must be at least the output width and at most 10, or #NUM! is returned.

Examples

Convert hex to octal
Grid
CellValue
No inputs on Sheet1.
Formula
=
Result
Not evaluated yet.
Expected
37
Convert signed hex
Grid
CellValue
No inputs on Sheet1.
Formula
=
Result
Not evaluated yet.
Expected
7777777777

FAQ

What causes HEX2OCT to return #NUM!?

The decoded value must fit octal output range [-2^29, 2^29 - 1], and optional places must be valid.

Runtime metadata

Category

Engineering

Signature

HEX2OCT(arg1: Any, arg2…: Any)

Arity

min 1, max variadic

Arguments

arg1

Any · Scalar

arg2

Any · Scalar

Caps

PURE

Source

On this page