Skip to main content

How To Convert Binary Value To Decimal And Decimal To Binary.


How to Use of BIN2DEC(number)” and “DEC2BIN(number,[places])" Function


In this article, we will understand two functions or formulas of Microsoft Excel, which do support each other. Sometimes we have binary number data (Like 1100110), it is called a computer language and we need to convert from binary to decimal number. And also some times we have the requirement to convert decimal data to binary data. The good news is that MS Excel has both formulas to convert binary to decimal and decimal to binary. The formula is very easy and works fast. We need to understand the syntax of the formula then we can apply it anywhere to full fill the requirement.
 

How To Convert Decimal To Binary and How To Convert Binary To Decimal? 



A: DEC2BIN(number,[places]) 
      And 
B: BIN2DEC(number)


Explanation:  A: Decimal To Binary
Decimal and binary functions are very easy to use. We can convert decimal value to binary value and binary value to decimal value. Dec2Bin function In place of  (number),  we can use cell reference or any number to convert into a binary value.
The computer understands only two digits 0 and 1, it is called binary number. It is also called computer language. Whatever we write, computer machine language converts it into binary number then only a computer can be able to undertand. Each and every value has it own binary value. Let suppose decimal number 50 has a binary value is 110010. 

The below table is an example of the conversion of the Decimal value to the Binary value.

Example: 1: Convert Binary Values To Decimal Values


















Example 2:  =DEC2BIN(50) (We can also use any number to convert into the binary)

Result:          110010


Explanation:  B: Binary To Decimal

We can also convert decimal value to binary value in Microsoft Excel.  Syntax: BIN2DEC(number)”, in place of (number) we can put cell reference or directly binary number as suitable (See Example: 2) . If we have huge data to convert, my recommendation is to use cell reference for easy and quick results. 


Example 1 :  Convert Decimal Values To Binary Values




















Example 2:  =BIN2DEC(110010) 
  
Result:          50

We can write binary formula in a blank cell =DEC2BIN(A1), it means to convert a decimal number to binary number, here A1 is a cell reference. Now press Enter key to get the result. And if you like to convert from binary to decimal you can  = BIN2DEC(A1), the binary value will convert into a decimal number. 


Please leave your comment: for more excel queries.
Thanks for your time.

Comments