Ravindra BagaleCourses & study guides Track your progress

Excel TEXT Function

Chala mitrano — tEXT dresses a number as text. You pick the outfit with a format code.

Fictional sample data for learning. Salary slips and invoices (Nashik payroll + London consulting). Mixed ₹ and £.

Purpose

Convert a number or date into text using a format code you control — for labels, IDs, and printable reports.

Return value

Text that looks like the formatted number or date.

Syntax

TEXT(value, format_text)

Arguments

ArgumentRequired?Description
valueRequiredThe number or date to format.
format_textRequiredFormat code in quotes, such as "0.00" or "dd-mmm-yyyy".

Version

All Excel versions. LibreOffice Calc supports TEXT with similar format codes (some codes differ).

How to use — Why → What → How

Why: Nashik payroll builds 'Employee — ₹45,000' labels. London consulting prints 'Invoice date: 15-Oct-2026'. TEXT makes those printable strings. TEXT is for labels; keep numeric columns for maths. The SUM-on-text trap deserves a live fail demo every batch.

What: TEXT takes a value and a format code and returns text that looks formatted. Common codes: 0.00, #,##0, dd-mmm-yyyy, ₹#,##0. Read every argument in the table once before you type; each one changes the answer on purpose.

How — numbered steps:

  1. Type =TEXT(B2,"₹#,##0").
  2. For dates =TEXT(A2,"dd-mmm-yyyy").
  3. Join with CONCAT or & for full sentences.
  4. Do not SUM a TEXT column — convert back with VALUE if needed.
  5. Test format codes on one cell first.

Ravindra Bagale's Tip

Friends, once you TEXT a number it is text — you cannot SUM it until VALUE brings it back.

Ravindra Bagale's Tip

Friends, sleep on TEXT and rebuild example 1 tomorrow without looking. That five-minute test beats rereading the whole page.

Ravindra Bagale's Tip

Friends, after you finish TEXT, open yesterday’s real workbook and find one place this function would have saved ten minutes. That habit turns lessons into salary skills.

Download practice file: practice-text.xlsx (includes sheet About this data, practice sheets, and Answers).

Worked examples

1) Rupee label

Nashik payroll.

NameSalary
Neha45000
Omar52000
Formula: =TEXT(B2,"₹#,##0")

Result: ₹45,000

What it means: Salary as text with rupee style.

2) Date text

London invoice.

Date
2026-10-15
2026-11-01
Formula: =TEXT(A2,"dd-mmm-yyyy")

Result: 15-Oct-2026

What it means: Readable date text.

3) Two decimals

Unit price.

Price
12.5
9
Formula: =TEXT(A2,"0.00")

Result: 12.50

What it means: Always two decimals as text.

4) Join sentence

Slip line.

NameSalary
Neha45000
Formula: =A2&" — "&TEXT(B2,"₹#,##0")

Result: Neha — ₹45,000

What it means: Ready for a printable slip.

5) Zero padding

Receipt numbers.

Num
42
7
Formula: =TEXT(A2,"00000")

Result: 00042

What it means: Five-digit style text.

6) Pound label

London fee.

Fee
1200
Formula: =TEXT(A2,"£#,##0")

Result: £1,200

What it means: Pound-style text.

Common errors and fixes

#VALUE! / unexpected — Wrong format code quotes. Fix: Keep format_text in quotes.
SUM fails later — Column is text. Fix: Keep a numeric column; use TEXT only for labels.
Locale codes — Phone Excel may expect different separators. Fix: Match the PC regional settings.

Notes and tips

  • TEXT returns text, not a number.
  • Great for labels; keep raw numbers for maths.
  • Date serials need a date format code.
  • Payroll slips in Nashik and consulting PDFs in London both need pretty text. Teach TEXT beside CONCAT, and warn about SUM on text.
  • TEXT vs cell format: cell format keeps the value numeric underneath; TEXT truly converts to text. TEXT vs VALUE: opposite directions.
  • Fictional sample data only — practice amounts and names are made for learning.
  • After the 10 tasks, re-read the errors table once.
  • Say the business question in plain words before you type equals.
  • Keep a scrap sheet for experiments so you do not overwrite class files.
  • Fill formulas down only after the first row looks correct.
  • When two answers look possible, write both on paper then test in Excel.
  • TEXT is for labels; keep numeric columns for maths. The SUM-on-text trap deserves a live fail demo every batch.
  • Revisit the TEXT errors table after the quiz — most classroom mistakes are listed there.
  • Build one brand-new example on a blank sheet from memory before you close the laptop.
  • If a result looks wrong, check spaces with LEN and case with exact equals before changing the formula.
  • Share one tip from this page with a classmate in Marathi or Hindi — teaching locks the idea.
  • Keep currency symbols consistent inside a single report column even when practice mixes ₹ $ £ € across examples.
  • When Excel versions differ at home and in class, write the fallback formula under the modern one in a comment cell.
  • Print the revision card for TEXT and stick it near your monitor for one week of real worksheets.
  • When helping a junior, ask them to predict the result before pressing Enter — prediction builds judgement.
  • Keep a personal notebook of the one mistake you make most often with this function; review it monthly.

In real work

Payroll slips in Nashik and consulting PDFs in London both need pretty text. Teach TEXT beside CONCAT, and warn about SUM on text. TEXT is for labels; keep numeric columns for maths. The SUM-on-text trap deserves a live fail demo every batch. Classroom drill: write three brand-new TEXT formulas on a blank sheet using names from your own city — if you can invent them without the page open, you own the skill. Then break one formula on purpose (wrong case, wrong start, extra space) and watch the error; recovering from that break is half of interview readiness.

How it compares

TEXT vs cell format: cell format keeps the value numeric underneath; TEXT truly converts to text. TEXT vs VALUE: opposite directions.

Interview corner

Is TEXT numeric?
No — text.
SUM a TEXT column?
Usually fails or ignores — keep numbers separate.
Common date code?
dd-mmm-yyyy.

VALUE, CONCAT, TEXTJOIN, FIXED

Practice tasks (10)

  1. Task 1. TEXT salary as ₹#,##0.
    Hint: quotes around format.
  2. Task 2. Date as dd-mmm-yyyy.
    Hint: real date cell.
  3. Task 3. 0.00 on 12.5.
    Hint: two decimals.
  4. Task 4. Join name — salary sentence.
    Hint: & and TEXT.
  5. Task 5. Zero-pad 42 to 00042.
    Hint: 00000.
  6. Task 6. £ format for 1200.
    Hint: example 6.
  7. Task 7. Explain why SUM may fail.
    Hint: text vs number.
  8. Task 8. Keep raw salary column too.
    Hint: labels aside.
  9. Task 9. Fill formats for two staff.
    Hint: fill down.
  10. Task 10. Interview: numeric after TEXT?
    Hint: no.

Quick quiz

Q1. TEXT(45000,"₹#,##0") style result:
Q2. After TEXT, SUM usually:
Q3. Date code example:
Q4. Opposite of TEXT for numbers-as-text:
Q5. Format codes go in:

Answers: Q1=₹45,000 as text, Q2=Needs care / fails on pure text, Q3=dd-mmm-yyyy, Q4=VALUE, Q5=Quotes (check after you try).

Revision card

Standalone card (no tip or photo strip). QR opens this lesson. Download the PNG and revise offline.

Revision card: TEXT
TEXT revision card