EXCEL HEX2OCT FUNCTION

The Hex2Oct function in Excel transforms Hexadecimal (Base 16) numbers to Octal (Base 8) numbers.

Syntax :

=HEX2OCT( number[places] )

Parameters :

The following parameters are :

  • Number – The hexadecimal value to be translated to octal.

 

  • Places – An optional parameter that determines the amount of characters in the returned octal number. If this value is more than zero, the octal number will be padded with leading zeros. If omitted, the resulting octal utilises the fewest possible places.

Step By Step Guide of HEX2OCT Function

Example :

Two’s complement notation is used to express negative hexadecimal and octal values in cell A4.

  • #NUM! – Occurs if the specified number argument is not recognised as a hexadecimal number and has more than 10 characters. The generated octal number requires more places than the [places] parameter specifies.
    The given [places] parameter must be 0 or greater than 10.
  • #VALUE! – This error occurs if the given [places] parameter is not a number.

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now