# IMSUB Function

> Subtract one complex number from another with the IMSUB formula function of TX Sheet Control: x+yi and x+yj text input, real numbers and the #NUM! error.

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

---

Subtract one complex number from another. `inumber1` is the complex number to subtract from and `inumber2` the complex number to subtract, each as text in the form `x+yi` or `x+yj`, or a real number. The result is a complex number as text. Text that is not a valid complex number returns `#NUM!`.

### Syntax

```text
IMSUB(inumber1, inumber2)
```

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

Available for supported offline calculation.

### Examples

```text
=IMSUB("2+3i","1+i")
```

The formula returns `1+2i`, the difference of 2+3i and 1+i.

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:** [IMSQRT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/imsqrt/llms-full.txt)
- **Next:** [IMSUM Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/imsum/llms-full.txt)
