# BITXOR Function

> Calculate the bitwise exclusive OR of two whole numbers with BITXOR in TX Sheet Control: the valid range from 0 to 2^48-1, the #NUM! error and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > BITXOR Function
- **195 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bitxor/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bitxor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bitxor/llms-full.txt

---

Return the bitwise exclusive OR of two numbers: each bit of the result is 1 where exactly one of the numbers has a 1. `number1` and `number2_or_shift` are the two numbers, whole numbers from 0 to 2^48-1; a negative number, a decimal or a larger number returns `#NUM!`.

### Syntax

```text
BITXOR(number1, number2_or_shift)
```

Category: Engineering. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=BITXOR(12,10)
```

The formula returns 6: 1100 XOR 1010 is 0110 in binary.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [BITRSHIFT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bitrshift/llms-full.txt)
- **Next:** [BYCOL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bycol/llms-full.txt)
