# IMREAL Function

> Return the real coefficient of a complex number with the IMREAL formula function of TX Sheet Control: x+yi text input, real numbers and the #NUM! error.

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

---

Return the real coefficient of a complex number. `inumber` is the complex number, as text in the form `x+yi` or `x+yj`, or a real number, which is returned unchanged; a purely imaginary number such as `"3i"` returns 0. Text that is not a valid complex number returns `#NUM!`.

### Syntax

```text
IMREAL(inumber)
```

Category: Engineering. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=IMREAL("2+3i")
```

The formula returns 2.

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:** [IMPRODUCT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/improduct/llms-full.txt)
- **Next:** [IMSEC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/imsec/llms-full.txt)
