# LINEST Function

> Calculate the slope and intercept of the best-fitting straight line with LINEST in TX Sheet Control: const, stats, regression statistics and spilled arrays.

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

---

## On This Page

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

---

## Nearby

- **Previous:** [LET Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/let/llms.txt)
- **Next:** [LN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ln/llms.txt)
