# How to Use Excel BITAND Function?

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:

## 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 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.
• 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  button to get the output.

## Input that Causes Error

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