## Excel BITAND Function

The BITAND function returns a decimal number representing the bitwise 'AND' of two supplied numbers.

#### Syntax

=BITAND (number1, number2)

#### Arguments

• Number1 (required): The first positive decimal number.
• Number2 (required): The second positive decimal number.

#### Return value

The BITAND function returns a numeric value.

#### Function notes

1. The BITAND function first converts the two supplied decimal numbers to binary forms of 10 places,
then performs a logical AND operation on each corresponding bit of the corresponding binary numbers,
and finally converts this bitwise 'AND' binary number to a decimal number. Please see the screenshot below:

2. The #NUM! error value occurs if:
• Any of the supplied arguments are not integers.
• Any of the supplied arguments are < 0 or > (2^48)-1.
3. The #VALUE! error value occurs if any of the supplied arguments are non-numeric.

#### Examples

Supposing, you want to get the decimal number representing the bitwise 'AND' of two supplied numbers in the table below. Please do as follows.

1. Copy the formula below into cell E5.

=BITAND (B5, C5)

2. Then drag the fill handle down to the cells you want to apply this formula too. The results are as the following screenshot shows.

Notes:

1. We can directly input values in the two arguments in the formula. For example, the formula in cell E5 can be changed to:

=BITAND (83, 62)

#### Relative Functions:

• Excel EVEN Function
The EVEN function rounds numbers away from zero to the nearest even integer.

• Excel EXP Function
The EXP function returns the result of the constant e raised to the nth power.

### The Best Office Productivity Tools

#### Kutools for Excel - Helps You To Stand Out From Crowd

 ðŸ¤– Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functionsâ€¦ Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ... Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup... Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Columns to Select Same & Different Cells ... Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

#### Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

• One second to switch between dozens of open documents!
• Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
• Increases your productivity by 50% when viewing and editing multiple documents.
• Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.