EXCEL SOLUTIONS

TEXT function in Excel

Turns a number or date into text in the format you choose.

IntermediateText

Syntax

=TEXT(value, format_text)
Arguments of TEXT
ArgumentWhat it means
valueThe number or date.
format_textThe format in quotes, such as "0.00", "#,##0", "0%" or "dd/mm/yyyy".

Examples with results

Every result below is calculated by the practice engine on the sample data shown, not typed in by hand.

Examples that need no data

  • =TEXT(1234.5,"#,##0.00")1,234.50

    Thousands separator and two decimals

  • =TEXT(0.256,"0%")26%

    A percentage

Office supplies sales (fictional)

RowABCDE
1ItemQtyUnit priceRegionDate
2Pen101.5North2025-01-15
3Notebook512South2025-02-03
4Pen201.5South2025-02-28
5Stapler240North2025-03-10
6Folder153.25East2025-03-22
7Notebook812East2025-04-05
8Pen121.5North2025-04-18
9Marker302South2025-05-02
Office supplies sales (fictional) Row 1 holds the headings. All data is fictional. Dates are year-month-day.

Download CSV

  • =TEXT(E2,"dd/mm/yyyy")15/01/2025

    A date in day/month/year order

  • =TEXT(E3,"mmm yyyy")Feb 2025

    Month and year

Try it yourself

Change the formula or switch to other sample data.

Press Calculate to see the result.

The practice box runs in your browser with BDK’s own calculator, which covers about 60 common functions. Cell references work as in Excel (B2, B2:B9). Your formulas are not saved or sent anywhere. For anything unusual, check the result in Excel itself.

How people use TEXT at work

  • Finance and accounting

    Put a formatted amount inside a sentence.

    ="Amount due: "&TEXT(C2,"#,##0.00")Amount due: 1,250.00
    Data: Customer invoices (fictional)
  • Administration

    A date inside a sentence.

    ="Invoice date: "&TEXT(D2,"dd/mm/yyyy")Invoice date: 02/06/2025
    Data: Customer invoices (fictional)

Common mistakes and tips

  • The result is text, so you cannot add it up afterwards.
  • Format codes can depend on your language settings: some regions use semicolons or different date letters.

Works in

All versions of Excel, and Google Sheets.

Related formulas

CONCATDATE

Lessons that use it

Need Something Different? Let’s Talk.

Looking for different features or something built around your workflow? Share your idea with us.