# SUBSTITUTE Function

> Replace all or one occurrence of a text in a string with SUBSTITUTE in TX Sheet Control: case-sensitive matching, instance_num, #VALUE! and an example.

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

---

## On This Page

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

---

## Nearby

- **Previous:** [STOCKHISTORY Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/stockhistory/llms.txt)
- **Next:** [SUBTOTAL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/subtotal/llms.txt)
