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 with their percentages and we would like to know the rank wise list of the

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 VLOOKUP In Microsoft Excel

" VLOOKUP " in Microsoft Excel . MS Excel formulas: The easiest  way to understand Syntax and usage : The most important and magical MS Excel formula is VLOOKUP. It's a great and very useful formula. Without Vlookup knowledge in Excel is like a person without a soul. We use Vlookup very often when we make reports in Excel. Let's start..  Formula:  “ VLOOKUP" Explanation:   " VLOOKUP"  The most important and most useful formula in Microsoft Excel. The Use of " VLOOKUP" is to search a value respectively as per input (value in the first column, must match with both sheets or workbooks) Please follow the given below steps to understand, how to use  VLOOKUP. Step- 1 - Normal Data. Suppose we have some data in Microsoft excel Report - A.   Report-A Step: 2 - We have to search for some data from report A to Report B. Suppose we have to search the blood group from report A. Report-B Step : 3 - In order to find out