Engineering
HEX2OCT Function in Excel
Converts a hexadecimal number to octal.
Syntax
- =HEX2OCT(number, [places])
Arguments
- number (required): Hexadecimal number
- places (optional): Number of characters to use
Examples
- =HEX2OCT("F", 3) - Hex to octal - Result: 017
HEX2OCT in technical sheets
- Document units in adjacent cells — many engineering functions require exact unit strings.
- Use [CONVERT](/functions/convert/) for unit changes before specialized formulas.
- Validate inputs with [ISNUMBER](/functions/isnumber/) and range checks.
Common errors
- #NUM! if not valid hex
Use cases
- Number conversion
- Programming
- Data processing
Frequently asked questions
- What is the HEX2OCT function in Excel? HEX2OCT converts a hexadecimal number to octal. The syntax is =HEX2OCT(number, [places]). Typical use cases include number conversion, programming, data processing.
- How do I use the HEX2OCT function? To use HEX2OCT, type =HEX2OCT( in a cell and provide the required arguments. Excel will show you the syntax and parameter hints as you type. Make sure to close the parentheses and press Enter to execute the function.
- Why is HEX2OCT not working in my Excel? Common issues with HEX2OCT include #NUM! if not valid hex. Start by checking the syntax =HEX2OCT(number, [places]), then verify each referenced cell or range.
Editorial review
- Reviewed by Excel.Directory Editorial Team. Updated May 2026.