Excel tutorial
/

Functions

Intermediate

Excel TEXT function: format numbers, dates and percentages as text

Use TEXT to build strings like “Total: 1,250,000 UZS” or “Due: 31.08.2025”, learn the format codes, and avoid the trap of TEXT results no longer being numbers.

TEXT turns a number into text in the format you specify: 1250000 → “1,250,000”, 45900 → “31.08.2025”, 0.82 → “82%”.

Why do you need it? Cell formatting only works inside the cell itself. As soon as you put a number into a sentence with & or CONCAT, Excel drops the format: “Total: 1250000 UZS”, “Due: 45900”. TEXT keeps the format inside the sentence too.

Typical uses: receipt and invoice text, dates in contracts, a percentage in a report title, SMS to customers, document codes.

Книга1 - Excel
—☐✕
C2fx="Total: "&ТЕКСТ(B2;"#,##0")&" UZS"
ABCD
1ProductAmountReceipt text
2TV4 250 000Total: 4,250,000 UZS
3Air conditioner6 890 000Total: 6,890,000 UZS
4Kettle185 000Total: 185,000 UZS
5
Готово
TEXT put the amount into a sentence with a thousands separator

Syntax

=ТЕКСТ(value; format_text)

  • value — a number, a date or a cell that holds one (B2).
  • format_text — the format code, in quotes.

The most common codes:

  • "0" — whole number: 1250000
  • "0.00" — two decimals: 12.50
  • "#,##0" — with thousands separator: 1,250,000
  • "0%", "0.0%" — percentage: 82%, 82.0%
  • "dd.mm.yyyy" — date: 31.08.2025
  • "hh:mm", "hh:mm:ss" — time: 09:00
  • "000000" — leading zeros: 145 → 000145
  • "mmmm", "dddd" — month and weekday name (in Excel’s language)

Adding an amount to receipt text

1

Select the result cell — C2.

2

Формулы → Текстовые → choose TEXT.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
C2fx
ABCD
1ProductAmountReceipt text
2TV4 250 000
3
4
5
Готово

3

Enter B2 in Value and "#,##0" in Format_text, then click OK. The cell shows “4,250,000” — which is now text.

Книга1 - Excel
—☐✕
C2fx=ТЕКСТ(B2;"#,##0")
ABCD
1ProductAmountReceipt text
2TV4 250 0004,250,000
3
4
5
Готово

4

In the formula bar add the sentence around TEXT: ="Total: "&ТЕКСТ(B2;"#,##0")&" UZS" and press Enter. Then fill the formula down.

Книга1 - Excel
—☐✕
C2fx="Total: "&ТЕКСТ(B2;"#,##0")&" UZS"
ABCD
1ProductAmountReceipt text
2TV4 250 000Total: 4,250,000 UZS
3Air conditioner6 890 000Total: 6,890,000 UZS1
4
5
ГотовоКоличество: 2
Книга1 - Excel
—☐✕
C2fx="Payment due: "&ТЕКСТ(B2;"dd.mm.yyyy")
ABCD
1ContractDue dateReminder
2CT-14531.08.2025Payment due: 31.08.2025
3CT-14630.09.2025Payment due: 30.09.2025
4
5
Готово
Example 1: a date inside a sentence — without TEXT you would see 45900
Книга1 - Excel
—☐✕
C2fx="Monthly plan "&ТЕКСТ(B2/A2;"0.0%")&" complete"
ABCD
1PlanActualReport title
2120 000 00098 400 000Monthly plan 82.0% complete
3
4
5
Готово
Example 2: TEXT can contain a calculation — B2/A2 is shown as a percentage
Книга1 - Excel
—☐✕
C2fx="Opening hours: "&ТЕКСТ(A2;"hh:mm")&" – "&ТЕКСТ(B2;"hh:mm")
ABCD
1StartEndNotice
209:0018:00Opening hours: 09:00 – 18:00
310:0020:00Opening hours: 10:00 – 20:00
4
5
Готово
Example 3: time is a fraction of a day (0.375); TEXT shows it as “09:00”
Книга1 - Excel
—☐✕
B4fx=СУММ(B2:B3)
ABCD
1AmountVia TEXT
21 250 0001,250,000
3800 000800,000
42 050 00001
5
Готово
TEXT results are text: SUM in column B is 0, while column A gives 2,050,000

Pro level: codes, day names and what to use instead of TEXT

  • Codes with leading zeros. ="ID-"&ТЕКСТ(A2;"000000") turns 145 into “ID-000145”. Every code has the same length and sorts correctly.
  • Weekday and month as words. =ТЕКСТ(A2;"dddd") gives the weekday, =ТЕКСТ(A2;"mmmm") the month. Names appear in Excel’s interface language; to force another language add a locale code, e.g. Russian: =ТЕКСТ(A2;"[$-419]dddd").
  • Round with ROUND, not TEXT. TEXT(2/3,"0.00") returns the text “0.67” and breaks further calculations. If you need a number, use =ОКРУГЛ(2/3;2).
  • Back to a number. If you do need to calculate with a TEXT result, VALUE converts it back: =ЗНАЧЕН(ТЕКСТ(A2;"0")).

Try it in the simulator

Type the receipt text in C2: ="Total: "&ТЕКСТ(B2;"#,##0")&" UZS" and fill it down to C4. Then type ="Total: "&B2&" UZS" in D2 and compare it with the version without TEXT.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1ProductAmountReceipt textWithout TEXT
2TV4250000
3Air conditioner6890000
4Kettle185000
5
6
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

116 / 154