Skip to content

How to Use Excel DEC2BIN Function?

Ads
DEC2BIN FunctionPin
DEC2BIN Function

Excel is a spreadsheet program that is developed for WindowsMacAndroid, 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 insertorganizemaintainmanage, 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: 

https://www.microsoft.com/en-in/microsoft-365/excel.

Excel DEC2BIN FunctionPin
Excel DEC2BIN Function

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.

Syntax

  • 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.

=DEC2BIN(number, [places])

Argument Description:

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.

Note:
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.

Practical Examples

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.
Input DataPin
Input Data
  • Then, you have to enter the formula in the cell as shown below to get the result.
Apply the formulaPin
Apply the formula
  • 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.
OutputPin
Output

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.
NUM errorPin
NUM error
  • If the number (decimal) or places is non-numeric, it will return #VALUE! Error.
Value ErrorPin
Value Error

Closure

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.

Video Tutorial

The following video will show you how to apply the DEC2BIN function in Excel.

Read Also:

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *

Share to...