Skip to main content
← All functions

HEX2OCT function

Converts a hexadecimal number to octal

Syntax

HEX2OCT(number, [places])

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
numberYesThe hexadecimal number you want to convert."F"
placesNoThe number of characters to use.3

Try HEX2OCT

Convert a base representation with HEX2OCT

=HEX2OCT(A2,B2)

Hexadecimal 1D and octal 35 both represent decimal 29. The requested width pads the octal text to 0035. These small positive examples avoid signed two-complement limits.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

HEX2OCT · top-level call

=HEX2OCT(A2,B2)

1 / 2 · number

The hexadecimal number you want to convert.

HEX2OCT reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.