# TRIM Function

> Remove leading, trailing and repeated spaces from text with the TRIM formula function of TX Sheet Control: which characters it removes and an example.

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

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/trim/#syntax)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/trim/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/trim/#see-also)

---

## Nearby

- **Previous:** [TREND Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/trend/llms.txt)
- **Next:** [TRIMMEAN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/trimmean/llms.txt)
