In this article, we will learn about how to use the OCT2BIN function in Excel.

OCT2BIN function in excel is used to convert octal representation of numbers of radix 8 to binary numbers (radix = 2).

The table shown below shows you some of the most used base & their radix of Alpha - numeric characters

Base | radix | Alpha-Numeric Characters |

Binary |
2 |
0 - 1 |

Octal |
8 |
0 - 7 |

Decimal | 10 | 0 - 9 |

hexadecimal | 16 | 0 - 9 & A - F |

hexatridecimal | 36 | 0 - 9 & A - Z |

octal number representation have 8 digits from 0, 1, 2, 3, 4, 5, 6, 7. Binary number is representation of a number of radix 2. Only 2 digits are used in representation of a binary number 0 & 1. Where as octal number representation have 8 digits from 0, 1, 2, 3, 4, 5, 6, 7 The below table will help you understand better.

Binary | Decimal | Octal |

000 | 0 | 0 |

001 | 1 | 1 |

010 | 2 | 2 |

011 | 3 | 3 |

100 | 4 | 4 |

101 | 5 | 5 |

110 | 6 | 6 |

111 | 7 | 7 |

1000 | 8 | 10 |

Conversion formulation is shown below:

Let’s take an example having 4 bits.

345

- Separate the digits
- Write their binary conversion upto 3 digit place by adding zeros to the left of the binary number
- Combine all the converted binary to get the binary number.

5 | 4 | 3 |

101 | 100 | 11 |

101 | 100 | 011 |

543 ( octal ) = 101 100 011( binary ) |

The OCT2BIN function converts the octal number of radix 8 to the binary number of radix 2.

**Syntax:**

=OCT2BIN ( number, [places] )

Number : Octal number which returns the 10 character binary number.

[Places] : [optional] number where result expressed upto the number.

The input value to the function cannot contain more than 10 characters ( 10 bits ). Where first number returns the sign of the number (positive or negative) & Other 9 returns the value after the sign. ( 1 for negative & 0 for positive).

To get a negative number, input number must have 10 characters starting with 1 as it represents the negative sign. The negative number is calculated using two's complement notation. Any less than 10 characters, the function considers default 0s in front. Any more than 10 characters, the function returns the #NUM! Error.

Now let’s get more understanding of the function via using them in some examples.

Here we have some octal values in Octal Column. We need to convert these octal numbers to binary value.

Use the formula in octal column:

=OCT2BIN (A2)

A2 : number provided to the function as cell reference

Values to the OCT2BIN function is provided as cell reference.

The OCT2BIN representation of 2 of base 8 (binary) is 10 of base 2 (decimal).

Now copy the formula to other cells using the **Ctrl + D** shortcut key.

As you can see here the OCT2BIN function returns the result of the input values.

Notes:

- Numbers can be given as argument to the function directly without quotes or cell reference in excel.
- The function doesn’t consider the [places] number in case of a negative decimal number.
- If the input octal number is negative it cannot be less than 7777777000 and if the number is positive it cannot be greater than 777.
- If the input [places] number is not an integer, it is truncated by the function.
- The function returns the binary value for the max value of 111111111 & minimum value upto 1000000000 (only integers).
- The function returns the #NUM! Error
- If the input octal number is less than 7777777000 or greater than 777.
- If the input number [places] is zero or negative.
- If the input number [places] is not sufficient for the resulting positive binary number.

- The function returns the #VALUE! Error
- If the input number is text or non-numeric.
- If the input [places] number is text or non-numeric.

Hope you understood how to use OCT2BIN function and referring cell in Excel. Explore more articles on Excel mathematical conversion functions here. Please feel free to state your query or feedback for the above article.

**Related Articles:**

**How to use the DEC2BIN Function in Excel**

**How to use the BIN2OCT Function in Excel**

**How to use the BIN2HEX Function in Excel**

**How to use the DEC2OCT Function in Excel**

**How to use the DEC2HEX Function in Excel**

**How to use the OCT2BIN Function in Excel**

**How to use the OCT2DEC Function in Excel**

**How to use the OCT2HEX Function in Excel**

**How to use the HEX2BIN Function in Excel**

**How to use the HEX2OCT Function in Excel**

**How to use the HEX2DEC Function in Excel**

**Popular Articles:**

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.