Function Problems

How to Use the Excel TEXT Function to Preserve Currency and Date Formatting

Anum MushtaqAnum Mushtaq Oct 26, 2026 869 views

Question details

How to convert numbers and dates into properly formatted text when building sentences from various cell values.

How to Use the Excel TEXT Function to Preserve Currency and Date Formatting
Product
Excel
Device & OS
not provided
Scenario
Combining plain text with cell values containing dates or currency figures to create descriptive sentences.
Observed behavior
By default, spreadsheet formulas return the underlying raw values (like sequential serial numbers for dates or unformatted decimals) instead of the visible cell formatting, causing sentences to look incorrect.
Before you start

Identify the exact format codes you wish to apply to your data, such as "$#,##0.00" for standard currency or "mmmm, dd, yyyy" for a spelled-out date. Ensure your raw numerical data and text strings are neatly organized in separate reference cells.

Solution 1Recommended

Use the TEXT Function with the Ampersand (&) Operator

This is the most direct and common method to seamlessly embed correctly formatted dates and currencies into your text strings.

The TEXT function allows you to force a specific number format on a value before it is combined with other text strings. The ampersand (&) acts as a joining operator to concatenate these distinct elements into a single cohesive sentence.

1
Initiate the formula

Select the cell where you want the final sentence to appear. Type the equals sign (=) followed by your first string of text enclosed in quotation marks (e.g., ="Tim paid Joe ").

2
Format the currency

Type an ampersand (&) to join the text, followed by the TEXT function for your currency cell. For example, enter &TEXT(B2, "$#,##0.00") to apply a standard two-decimal dollar format.

3
Format the date and complete the string

Add another ampersand and additional text, such as &" for the laptop on ". Finally, join the date cell by adding &TEXT(A2, "mmmm, dd, yyyy."). Press Enter to generate the correctly formatted sentence.

Use the TEXT Function with the Ampersand (&) Operator
Formatting Codes: You can customize the format codes inside the quotation marks. Changing "mmmm" to "mm" will switch the month from a spelled-out word to a two-digit number.
Advanced Formula Formatting

Easily Format and Combine Data with WPS Spreadsheet

WPS Spreadsheet fully supports the TEXT, CONCATENATE, and DOLLAR functions natively. You can effortlessly combine text and formatted numbers to create dynamic reports without worrying about formula errors or compatibility issues.

  1. 1. Open your spreadsheet: Launch WPS Spreadsheet and open the workbook containing your raw data.
  2. 2. Write the formula: Select your output cell and enter your formula using the & operator and TEXT function, such as ="Text "&TEXT(A1, "$0.00").
  3. 3. Verify your format codes: Ensure your date and currency codes strictly use standard formats like "mm/dd/yy" within the quotation marks.
  4. 4. Calculate the result: Press Enter to instantly merge your text and properly formatted numeric values into one cell.
100% compatible with Microsoft Excel formulas, cell formatting, and syntax.Supports dynamic text joining with complete date and currency formatting rules.Free, lightweight, and user-friendly interface for effortless data manipulation.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my combined text show a random 5-digit number instead of a date?

Spreadsheet software stores dates as sequential serial numbers to calculate the days between them. When you concatenate a date cell with text without formatting it, the formula pulls the raw serial number. Using the TEXT function tells the program to convert that raw serial number back into a readable date format before displaying it.

Can I use the TEXT function to format percentages?

Yes. You can format a decimal value as a percentage by using the TEXT function with a percentage code. For example, TEXT(A1, "0.0%") will convert 0.75 into the text string "75.0%" within your concatenated sentence.

Does applying the TEXT function change my original data?

No, the TEXT function only changes the output format within the formula's result cell. Your original reference cells containing the raw numbers or dates remain completely unchanged and can still be used for other mathematical calculations.