Text function

BAHTTEXT function

Writes a number out in Thai words followed by Baht (and Satang for the decimals), as required on Thai cheques and invoices.

Available in All versions of Excel, including Microsoft 365, Excel for Mac and Excel for the web

In every Excel versionNot in Google Sheets

Syntax

BAHTTEXT(number)
ArgumentWhat it means
numberRequiredThe amount to spell out, or a cell containing it. Decimals are rounded to two places and read as Satang.

Returns: Thai text such as หนึ่งพันสองร้อยสามสิบสี่บาทถ้วน.

How BAHTTEXT works

In Thailand, cheques, receipts and official invoices often show the total in words as well as in digits, so the amount cannot be altered. BAHTTEXT does this automatically: it reads the integer part of a number in Thai and adds the word บาท (Baht). If there are no decimals it ends with ถ้วน ("exactly"); if there are, the two decimal digits are read as สตางค์ (Satang, 1/100 of a Baht).

The result is always in Thai script, whatever language your Excel uses, so you need a font that can show Thai characters (all modern Windows and Mac fonts can). There is no built-in equivalent for other languages; for English words you would need a custom VBA function.

The value is rounded to two decimals before it is converted, matching the way amounts are rounded on an invoice. The function works with negative numbers too, adding the Thai word for minus (ลบ) at the start.

Examples

1Invoice total in words

C2fx=BAHTTEXT(B2)
ABC
1InvoiceTotal (THB)
2INV-00981234หนึ่งพันสองร้อยสามสิบสี่บาทถ้วน

Result: หนึ่งพันสองร้อยสามสิบสี่บาทถ้วน

1,234 is read as one thousand (หนึ่งพัน), two hundred (สองร้อย), thirty (สามสิบ), four (สี่), then บาทถ้วน because there are no Satang.

2Amount with Satang

C2fx=BAHTTEXT(B2)
ABC
1ReceiptTotal (THB)
2R-55312500.75สองพันห้าร้อยบาทเจ็ดสิบห้าสตางค์

Result: สองพันห้าร้อยบาทเจ็ดสิบห้าสตางค์

The integer part becomes สองพันห้าร้อยบาท (two thousand five hundred Baht) and the .75 is read as เจ็ดสิบห้าสตางค์ (seventy-five Satang).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!The argument is text that cannot be read as a number.Point BAHTTEXT at a numeric cell, or convert with VALUE first.

Tips

  • Round the amount yourself with ROUND (=BAHTTEXT(ROUND(B2,2))) so the words always match the digits printed next to them.
  • Put the digits and the words in separate cells; combining them with & turns the number into unformatted text.
  • If Thai characters show as boxes, switch the cell to a font with Thai support such as Tahoma or Leelawadee UI.

Google Sheets

No equivalent; Thai baht words need an Apps Script custom function.

BAHTTEXT in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishBAHTTEKST
DutchBAHT.TEKST
FinnishBAHTTEKSTI
HungarianBAHTSZÖVEG
ItalianBAHTTESTO
Norwegian (Bokmål)BAHTTEKST
PolishBAT.TEKST
Portuguese (Portugal)TEXTO.BAHT
RussianБАТТЕКСТ
SpanishTEXTOBAHT
TurkishBAHTMETİN