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.
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.
- 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.
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.
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:
- 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?
Deepak is an Excel enthusiast and data analyst with over 5 years of experience in the field. I’m a renowned author for AAW Excel who connects with a committed group of Excel users by imparting his professional knowledge and helpful advice. No matter your level of Excel proficiency, my articles and tutorials will teach you something new and beneficial. Connect me via my social links!… Mastodon & More!