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. placesmust be at least the output width and at most10, or#NUM!is returned.
Examples
Convert hex to octal
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
37
Convert signed hex
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
7777777777
Related functions
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
arg1Any · Scalar
arg2Any · Scalar
Caps
PURE
Source