# SWITCH Function

> Compare a value with a list of cases and return the matching result with SWITCH in TX Sheet Control: case pairs, the default value and #N/A.

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

---

## On This Page

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

---

## Nearby

- **Previous:** [SUMXMY2 Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sumxmy2/llms.txt)
- **Next:** [SYD Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/syd/llms.txt)
