# SUBTOTAL Function

> Calculate the sum, average, count, maximum and more of a list with SUBTOTAL in TX Sheet Control: function_num codes, nested subtotals and errors.

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

---

## On This Page

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

---

## Nearby

- **Previous:** [SUBSTITUTE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/substitute/llms.txt)
- **Next:** [SUM Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sum/llms.txt)
