Excel like a finance pro.
← The libraryPractice · 2 questions →
Engineering function
HEX2OCT
Converts a hexadecimal number to octal.
Rarely usedDifficulty 1250 · ProficientUsage rank #375 of 520
When to use it
Converts hexadecimal text to octal.
The shape of it
- Syntax
=HEX2OCT(number, [places])
Worked examples
Padded
=HEX2OCT("F",3) → 017
Padded to three.
Simple
=HEX2OCT("3B4E") → 35516
A larger value.
Negative
=HEX2OCT("FFFFFFFF00") → 7777777400
Negative.
Worth knowing
- Hex must fit in 30 bits for octal.
- OCT2HEX reverses it.
- Result is text.
Where it goes wrong
- #NUM! for values outside 1FFFFFFF to E0000000 range.
- Invalid digits return #NUM!.
Related
Learn the moves here — or let Wauvel run them on your numbers.
Meet your AI CFO →One CFO-grade Excel tip a week
A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.