Excel BITAND Function
The BITAND function returns a decimal number representing the bitwise 'AND' of two supplied numbers.
The BITAND function returns a numeric value.
- 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:
- 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.
- The #VALUE! error value occurs if any of the supplied arguments are non-numeric.
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.
- 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)
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.