Navigation:  Formula Reference > Spreadsheet Formula Functions >

HEX2OCT

Previous pageReturn to chapter overviewNext page

 

This function converts a hexadecimal number to an octal number.

Syntax

HEX2OCT(number, places)

Arguments

This function has these arguments:

Argument

Description

number

Hexadecimal numeric value to convert, must be between FFE0000000 and 1FFFFFFF

places

[Optional] Number of characters to return; if not an integer, the number is truncated

Remarks

This functions returns an error when the number is not a valid hexadecimal number or if the value for places is non-numeric or negative. If places is omitted, the calculation uses the minimum number of characters necessary. This argument is useful for adding leading zeros to the result.

Data Types

Accepts numeric data. Returns numeric data.

Examples

HEX2OCT("2B")

 

See Also

BIN2OCT

DEC2OCT

HEX2BIN

HEX2DEC