OCT2DEC Function in Excel: Octal to Decimal

OCT2DEC Function in Excel: Octal to Decimal 1
⏱ 1 min readUpdated 5 October 2026

EngineeringLevel: ExpertAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. OCT2DEC in practice
  5. Where you will use it
  6. Worked example
  7. Mistakes people make
  8. Related functions

OCT2DEC converts a octal number to decimal. Used for device codes, permission bits, memory addresses and number-system lessons.

Advertisement

Syntax

=OCT2DEC(number)
Argument What it means
number Octal number (as text or a number)

Examples

Example 1

=OCT2DEC(A2)

Result: 15. See the worked example table below for more cases.

OCT2DEC in practice

Where you will use it

  • Reading octal values from device or network logs
  • Teaching number systems
  • Converting codes for systems that expect decimal

Worked example

InputFormulaResult
17=OCT2DEC(A2)15
777=OCT2DEC(A3)511
7777777777=OCT2DEC(A4)-1

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Input too long or invalid digits#NUM!; check the digits allowed in the base
Negative resultsLarge inputs use two's complement (10 characters)

BASE · DECIMAL

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

Advertisement
✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong