# PIVOTBY Function

> Group and aggregate values into a spilled pivot table with PIVOTBY in TX Sheet Control: row and column fields, totals, sort order, filters and #SPILL!.

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

---

## On This Page

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

---

## Nearby

- **Previous:** [PI Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/pi/llms.txt)
- **Next:** [PMT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/pmt/llms.txt)
