Excel like a finance pro.
← The libraryPractice · 2 questions →
Engineering function
OCT2HEX
Converts an octal number to hexadecimal.
Rarely usedDifficulty 1250 · ProficientUsage rank #379 of 520
When to use it
Converts octal text to hexadecimal.
The shape of it
- Syntax
=OCT2HEX(number, [places])
Worked examples
Padded
=OCT2HEX(100,4) → 0040
Padded to four.
Negative
=OCT2HEX(7777777533) → FFFFFFFF6B
Negative.
Simple
=OCT2HEX(144) → 64
One hundred.
Worth knowing
- Up to 10 octal digits.
- HEX2OCT reverses it.
- Result is text.
Where it goes wrong
- #NUM! for invalid digits or too many characters.
- Places is ignored for negatives.
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.