# CLEAN Function

> Remove control characters such as line breaks and tabs from imported text with the CLEAN formula function of TX Sheet Control: which codes it removes.

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

---

Remove the nonprinting characters from text. CLEAN removes the control characters with the codes 0 to 31, such as line breaks and tabs, which often come with text imported from other applications. All other characters are kept, including spaces and the character with the code 127.

### Syntax

```text
CLEAN(text)
```

Category: Text. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=CLEAN("Tx Sheet")
```

The formula returns "Tx Sheet" unchanged, because the text has no nonprinting characters.

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:** [CHOOSEROWS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/chooserows/llms-full.txt)
- **Next:** [CODE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/code/llms-full.txt)
