# TRIMRANGE Function

> Remove blank leading and trailing rows and columns from a range with TRIMRANGE in TX Sheet Control: the trim_rows and trim_cols modes and #VALUE! errors.

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

---

## On This Page

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

---

## Nearby

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