Article updated on March 05, 2018

The DEC2OCT function converts a decimal number to an octal number.

Formula in cell D3:


Excel Function Syntax

DEC2OCT(number, [places])


number Required. The decimal integer you want to convert.
[places] Optional. The number of characters to use. If not entered the function uses the number of characters needed to complete the task. This argument allows you to add leading 0s (zeros).


The octal numeral system has a base of 8. For example 0 to 7 is zero to seven however 8 in the decimal system is ten in the octal system.