# How to Use Excel DEC2OCT Function?

DEC2OCT Function in Excel: Microsoft Excel is a powerful data visualization and analysis program used all around the world. It uses spreadsheets to store, organize, or perform operations with formulas and functions. This application is developed for WindowsMacAndroid, and iOS. The major purpose of the software is to do complicated calculations which are difficult to do manually.

This tutorial will guide you to learn how to use DEC2OCT Function in Excel with its syntax, definition, and examples. Let’s see them one by one. Get the official version of MS Excel from the following link:

https://www.microsoft.com/en-in/microsoft-365/excel

## Definition of DEC2OCT Function

• It is one of the built-in functions in Microsoft Excel.
• This function converts a decimal number to an octal value.
• DEC2OCT Function is just opposite to OCT2DEC Function.

## Syntax

• Here, you will see the syntax of the DEC2OCT function.
• To apply this function on your spreadsheet, you have to select a cell and enter the formula in the following format.
• Once you enter the formula, just click on the button to get the result.

=DEC2OCT(number, [places])

Argument Description:

Number – The decimal number that you want to convert to an octal number.

Places – It is optional. It is used for padding the output value with leading zeros. If you don’t mention the places, it returns the exact value of the input.

Note:
1) If places are non-numeric, it returns #VALUE! Error.
2) If the decimal number is less than -536,870,912 or greater than 536,870,911, it will show #NUM! Error value.
3) If you give a negative number to the places, it returns #NUM! Error.

## Practical Examples

Here we come up with examples to make you understand this concept.

• Initially, you have to open your Excel workbook on your PC and launch a worksheet that has data.
• For example, we have shown you a range of decimal values in Column A and places in Column B, we will convert them into octal values.
• Then, you have to enter the formula in the cell as shown below to get the result.
• After entering the formula, you need to click the button to get the output, as shown below. You can drag down the cell to fill the remaining cells.

## Input that Causes Error

• If places are non-numeric, it returns #VALUE! Error.
• If the decimal number is less than -536,870,912 or greater than  536,870,911, it will show #NUM! Error value.
• If you give a negative number to the places, it returns #NUM! Error.