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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Amount | Receipt text | |
| 2 | TV | 4 250 000 | Total: 4,250,000 UZS | |
| 3 | Air conditioner | 6 890 000 | Total: 6,890,000 UZS | |
| 4 | Kettle | 185 000 | Total: 185,000 UZS | |
| 5 |
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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Amount | Receipt text | |
| 2 | TV | 4 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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Amount | Receipt text | |
| 2 | TV | 4 250 000 | 4,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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Amount | Receipt text | |
| 2 | TV | 4 250 000 | Total: 4,250,000 UZS | |
| 3 | Air conditioner | 6 890 000 | Total: 6,890,000 UZS1 | |
| 4 | ||||
| 5 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Contract | Due date | Reminder | |
| 2 | CT-145 | 31.08.2025 | Payment due: 31.08.2025 | |
| 3 | CT-146 | 30.09.2025 | Payment due: 30.09.2025 | |
| 4 | ||||
| 5 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Plan | Actual | Report title | |
| 2 | 120 000 000 | 98 400 000 | Monthly plan 82.0% complete | |
| 3 | ||||
| 4 | ||||
| 5 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Start | End | Notice | |
| 2 | 09:00 | 18:00 | Opening hours: 09:00 – 18:00 | |
| 3 | 10:00 | 20:00 | Opening hours: 10:00 – 20:00 | |
| 4 | ||||
| 5 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Amount | Via TEXT | ||
| 2 | 1 250 000 | 1,250,000 | ||
| 3 | 800 000 | 800,000 | ||
| 4 | 2 050 000 | 01 | ||
| 5 |
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.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Product | Amount | Receipt text | Without TEXT | ||||||||||||||||||||
| 2 | TV | 4250000 | ||||||||||||||||||||||
| 3 | Air conditioner | 6890000 | ||||||||||||||||||||||
| 4 | Kettle | 185000 | ||||||||||||||||||||||
| 5 | ||||||||||||||||||||||||
| 6 | ||||||||||||||||||||||||
| 7 | ||||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.