Excel TEXT Function: Syntax, Examples & Tips

The TEXT function converts numbers to text in a specified format, enhancing data presentation in Excel.
Excel
=TEXT(value, format_text)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single TEXT formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is a TEXT Formula in Excel?
  3. A Practical Example
  4. TEXT Formula
  5. Result of the Formula
  6. Why Use TEXT?
  7. Key Takeaways:
  8. Example use case

Parameters

value:
The numeric value, text, or date that you want to convert to text format.

format_text:
The format that you want to apply to the value. This can include specific formatting codes for numbers, dates, or text.

What is a TEXT Formula in Excel?

The TEXT function in Excel is a versatile tool that allows you to convert a numeric value into text in a specified format. This function is particularly useful when you want to display numbers in a more readable or meaningful way, such as formatting dates, currency, or percentages.

In simpler terms, the TEXT function helps you present numerical data as text, making it easier to customize how the information appears in your spreadsheets.

A Practical Example

Imagine you are preparing a financial report for a small business, and you have the following data in an Excel spreadsheet:

Financial Data Table:

DateSales AmountCurrency
2023-01-01200USD
2023-01-02150USD
2023-01-03300USD
2023-01-04250USD
2023-01-05100USD

You want to display the sales amounts as currency formatted text.

TEXT Formula

To convert the sales amounts into a currency format, you would use the TEXT formula as follows:

Excel
=TEXT(B2, "$#,##0.00")

Breakdown of the Formula:

  • B2: This is the cell containing the numeric value you want to convert.
  • "$#,##0.00": This is the format code that specifies how the number should be displayed. In this case, it formats the number as currency with two decimal places.

Result of the Formula

When you apply the formula to the sales amounts, it converts them into a currency format. The output would be:

Sales Amount (Formatted)
$200.00
$150.00
$300.00
$250.00
$100.00

Here, each sales amount is displayed as a formatted currency string.

Why Use TEXT?

The TEXT function is particularly useful when you need to present numerical data in a specific format for reports, invoices, or any other documentation where appearance matters. It allows you to customize how numbers are displayed without altering the underlying data.

Key Takeaways:

  • TEXT: Converts numeric values into text in a specified format.
  • Custom Formatting: Helps you present data in a more readable and meaningful way.
  • Common Use Cases: Ideal for financial reports, invoices, and any scenario where you need to format numbers for better presentation.

Understanding how to use the TEXT function can significantly enhance your ability to present data effectively in Excel, ensuring that your reports are both informative and visually appealing.

Happy formatting!

Example use case

You have a table where Column A contains dates in a standard format (e.g., MM/DD/YYYY) and you want to display these dates in a more readable format (e.g., "January 1, 2023"). You can use the TEXT function to convert the date format, allowing for clearer presentation in reports and enhancing the readability of your data without needing to manually reformat each date.

Beyond the TEXT function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.