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

Popular posts from this blog

How To Use “RANK” & “RANK.AVG” Function in MS Excel.

Use of “ RANK ( ) ” , “ RANK.EG ( ) " and “ RANK.AVG ( ) ” Function Rank formula in MS Excel is very commonly use.It is easy and useful. In this article, we will describe the functionality of the RANK formula for example. We have many Rank formulas in MS Excel and here you will fill in all details about Rank Function. We will learn here:  How to use Rank(). How To Apply Rank() In Excel. What is RANK.EG() Function. Function “ RANK  () ” and “ RANK.EG ( ) " Syntex:       =RANK(number,ref,[order])    &    =RANK.EG(number,ref,[order]) Explanation: Now you can see two different formulas of Rank. One Rank() and Rank.EG() formula. So the question is what is the difference between both of them. We can say both are the same function and the output is also same. The  the difference is RANK.EG() is not supporting with the new version of Microsoft Excel 2010. Let suppose if we have some student data ...

How To Use Microsoft Excel Formula "CONCATENATE"

Use of  "CONCATENATE" Formula Formula :  " CONCATENATE ” In Microsoft Excel, CONCATENATE is a function, by which we can join two or more strings into a single cell. It can be used to combine text strings, numbers, or cell references, and can be useful for creating longer strings of text or for formatting data in a specific way. The syntax for the CONCATENATE function is as follows: =CONCATENATE (TEX1,TEX2, TEX3, TEX4 ................) Explanation: CONCATENATE is a very useful function in Microsoft Excel. We can join up to 30 texts together at a time. We can use CONCATENATE within the sheet, different sheets, and different workbooks. Let's suppose we have huge data with employees' names and we want to add Mr. Ms. Miss etc, before the names. It is not easy and time consuming to add Mr. or Miss. one by one. But there is a formula named CONCATENATE, could help to reduce time taking work do your work easily and very quickly. In order to understand ...

How To Use "LEFT" & “ RIGHT" Formulas in MS Excel.

Uses and explanation of "LEFT" & “ RIGHT Formulas. MS Excel formulas: Easiest way to understand Syntax and usage : Formula:  A: "RIGHT”     B:   “LEFT” =RIGHT(Text,[num_chars]) Explanation:    RIGHT formula is used to split the value inside the cell. In a cell we have a name like "John Abraham", but we don't need the full name, as per client requirement, we want only last name from the tab. In this case, we can use Right formula in MS Excel. Example:   Let suppose we have the name “Mark Henry” in a cell A:1. We would like to take only “Henry” from the cell. See below, how can we pull the last name by the RIGHT formula.  =RIGHT ( E9 , 6 ) You can see in the above table that we can separate Hanery name with using RIGHT formula. Name: Mark Hanery. Query:  We want to separate the last name only.  Formula = Right(E9,6)  Result: Hanery E9 is the cell reference and 6 is the number of...