Summary

The Excel BIN2OCT function converts a binary number to its octal equivalent.

Purpose 

Converts a binary number to octal

Return value 

Octal number

Syntax

=BIN2OCT(number,[places])
  • number - The binary number you want to convert to octal.
  • places - [optional] If omitted uses the least number of characters required to represent the number, otherwise pads the result with zeros up to the specified number of places.

How to use 

  • The input number must contain only zeros and ones and be less than 10 characters long, otherwise the function returns the #NUM! error value.
  • The first bit of the binary number indicates whether the number is positive or negative. The other nine digits represent the size of the number, the max of which is 511 (2^9 - 1). A negative binary number is expected to use the two's complement notation.
Dave Bruns Profile Picture

AuthorMicrosoft Most Valuable Professional Award

Dave Bruns

Hi - I'm Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.