Excel is a spreadsheet program that is developed for Windows, Mac, Android, and iOS. It helps to perform calculations on your PC. The purpose of this software is to do complicated calculations which are difficult to do manually. With the help of this spreadsheet program, you can insert, organize, maintain, manage, and calculate data.
In this article, we will see how to use the DEC2BIN function in Excel with its syntax, explanation, and examples. Get the official version of MS Excel from the following link:
Definition of DEC2BIN Function
- It is one of the built-in functions in Microsoft Excel.
- This function will convert the decimal number into binary values.
- DEC2BIN function is just opposite to the BIN2DEC function.
- Here, you will see the syntax of the DEC2BIN function.
- To apply this function on your spreadsheet, you have to select a cell and enter the formula in the following format.
- Once you enter the formula, just click on the Enter button to get the result.
Number – The decimal number that you want to convert to binary.
Places – It is optional. It is used for padding the output value with leading zeros. If you don’t mention the places, it returns the exact value of the input.
1) If the decimal number is less than -512 or greater than 511, it returns the #NUM! Error value.
2) If you give 0 or any negative number in the places option, it will show #NUM! Error.
3) If the number (decimal) or places is non-numeric, it will return #VALUE! Error.
Here we come up with some examples to make it clear how to use the DEC2BIN function.
- Initially, you have to open your Excel workbook on your PC and launch a worksheet that has data.
- For example, we have shown you a range of decimal values in Column A and places in Column B, we will convert them into binary values.
- Then, you have to enter the formula in the cell as shown below to get the result.
- After entering the formula, you need to click the Enter button to get the output, as shown below. You can drag down the cell to fill the remaining cells.
Input that Causes Error
- If the decimal number is less than -512 or greater than 511, it returns the #NUM! Error value.
- If you give 0 or any negative number in the places option, it will show #NUM! Error.
- If the number (decimal) or places is non-numeric, it will return #VALUE! Error.
So far, we have learned the usage of the Excel DEC2BIN Function with its syntax, description, and examples. Drop your feedback in the comment section. To learn more about Excel functions, then visit our webpage Aawexcel.com.
The following video will show you how to apply the DEC2BIN function in Excel.
- How to Use Excel FLOOR.MATH Function?
- How to Use Excel FLOOR Function?
- How to Use Excel CEILING.PRECISE Function?
- How to Use Excel CEILING Function?
- How to Use Excel GCD Function?