Skip to content

How to Use Excel BITAND Function?

Ads
BITAND Pin
BITAND

Excel BITAND Function: As we all know, AND is a logical operator that is generally performed over the Boolean expressions (0 or 1). But, the bitwise AND operation occurs between the two decimal numbers. It compares each bit in the given decimal values. This is one of the built-in functions in Excel. 

Here, we come up with the syntax and description of the Excel BITAND Function with the right examples. Let’s get into this article!! Get the official version of MS Excel from the following link: 

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

Excel BITAND FunctionPin
Excel BITAND Function

Description of BITAND Function

  • It is one of the built-in functions in Microsoft Excel.
  • This function finds Bitwise AND of two decimal values and returns the output as a decimal value.
  • Bitwise AND is a special kind of operator, not working like an ordinary AND operator.
  • It will find the logical relationship between the individual bits.

Syntax

  • Here, you will see the syntax of the BITAND function.
  • To apply this function on your spreadsheet, you must select a cell and enter the formula in the following format.
  • Once you enter the formula, click on the Enter button to get the result.

=BITAND(number1, number2)

Argument Explanation:

Number 1 and Number 2 – Both the parameters should be represented in decimal form equal to or greater than 0.

Note:
1) If any argument you provide is less than 0, it will return #NUM! Error.
2) If you give any of the arguments non-numeric value (Letters and Special characters), it will return #VALUE! Error.

Examples

Let’s look at some practical examples of the BITAND Function and explore how to use it in Microsoft Excel.

  • Initially, you have to open your Excel workbook on your PC and launch the worksheet with data.
  • For instance, we have given two decimal values in cells B2 & B3. And we will get Bitwise And of these two integers using the BITAND function.
Input ValuesPin
Input Values
  • Then, you have to enter the formula in the cell as shown below to get the result.
Enter the formulaPin
Enter the formula
  • After entering the formula, you need to click the Enter button to get the output.
OutputPin
Output

Input that Causes Error

  • If any argument you have given is less than 0, it will return #NUM! Error value.
Num ErrorPin
Num Error
  • If you provide any of the arguments as non-numeric value, it will return #VALUE! Error.
Value ErrorPin
Value Error

Wrap-Up

Here, you can get some clarifications on how to use Excel BITAND Function using its syntax and explanation. Drop your feedback in the below 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 Excel BITAND Function in the worksheet with a few examples.

Read Next:

Tags:

Leave a Reply

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

Share to...