Excel like a finance pro.
← The libraryPractice · 2 questions →
Engineering function
DEC2OCT
Converts a decimal number to octal.
Rarely usedDifficulty 1250 · ProficientUsage rank #368 of 520
When to use it
Converts a decimal number to octal text.
The shape of it
- Syntax
=DEC2OCT(number, [places])
Worked examples
Padded
=DEC2OCT(58,3) → 072
Padded to three.
Simple
=DEC2OCT(8) → 10
Eight is 10 in octal.
Negative
=DEC2OCT(-100) → 7777777634
Negatives in 30-bit two's complement.
Worth knowing
- Range is -2^29 to 2^29-1.
- Unix file permissions are octal.
- Result is text.
Where it goes wrong
- #NUM! outside the range or when places is too small.
- Non-integers are truncated.
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.