# GROUPBY Function

> Group rows by fields and aggregate their values with GROUPBY in TX Sheet Control: SUM or AVERAGE, headers, totals, sort order, filters and the spilled result.

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

---

## On This Page

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

---

## Nearby

- **Previous:** [GETPIVOTDATA Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/getpivotdata/llms.txt)
- **Next:** [GROWTH Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/growth/llms.txt)
