1. Home
  2. Functions
  3. Engineering
  4. BIN2OCT

BIN2OCT function

Converts a binary number to octal.

Syntax

=BIN2OCT(number, [places])

Arguments

ArgumentRequiredDescription
numberRequiredThe binary number (up to 10 characters)
placesOptionalThe number of characters to use (left out: as few as needed)

How to use BIN2OCT

BIN2OCT takes 1 required argument and 1 optional argument. Type =BIN2OCT( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=BIN2OCT(1001, 3)Result "011"
=BIN2OCT(1100100)Result "144"
=BIN2OCT(1111111111)Result "7777777777"

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.