# BAHTTEXT Function

> Convert a number to Thai text with the baht and satang currency words using the BAHTTEXT formula function of TX Sheet Control: negative and whole numbers.

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

---

Convert a number to Thai text and add the currency words for baht and satang. Negative numbers get the Thai word for minus, and a whole number ends with the word for exactly (ถ้วน). Text that is not a number returns `#VALUE!`.

### Syntax

```text
BAHTTEXT(number)
```

Category: Text. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=BAHTTEXT(21.25)
```

The formula returns ยี่สิบเอ็ดบาทยี่สิบห้าสตางค์, 21 baht and 25 satang.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [AVERAGEIFS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/averageifs/llms-full.txt)
- **Next:** [BASE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/base/llms-full.txt)
