totn Excel Functions

MS Excel: How to use the BIN2OCT Function (WS)

This Excel tutorial explains how to use the Excel BIN2OCT function with syntax and examples.

Description

The Microsoft Excel BIN2OCT function converts a binary number to an octal number.

The BIN2OCT function is a built-in function in Excel that is categorized as an Engineering Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the BIN2OCT function can be entered as part of a formula in a cell of a worksheet.

Syntax

The syntax for the BIN2OCT function in Microsoft Excel is:

BIN2OCT( binary_number, [places] )

Parameters or Arguments

binary_number
The binary number that you wish to convert to an octal number.
places
Optional. It is the number of characters to use when displaying the results. It will pad the front of the result with 0's to fill the characters, if necessary.

Returns

The BIN2OCT function returns a string/text value.

Applies To

  • Excel for Office 365, Excel 2019, Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007

Type of Function

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel BIN2OCT function examples and explore how to use the BIN2OCT function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the Excel spreadsheet above, the following BIN2OCT examples would return:

=BIN2OCT(A1)
Result: "73"

=BIN2OCT(111011)
Result: "73"

=BIN2OCT(A2)
Result: "24"

=BIN2OCT(10100)
Result: "24"

=BIN2OCT(111111)
Result: "77"

=BIN2OCT(111111, 4)
Result: "0077"

=BIN2OCT(111111, 5)
Result: "00077"