Function Problems

Format Dates in an Excel Text String Formula

Huda QurayshiHuda Qurayshi Nov 18, 2026 870 views

Question details

Format a date correctly when combining it with text in an Excel formula.

Format Dates in an Excel Text String Formula
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user wants to include a date from a cell in a text string while controlling its displayed format.
Observed behavior
The combined text displays the date's serial number instead of a recognizable date.
Before you start

Check that the referenced cell contains a valid Excel date rather than a date stored as text. Decide which date format you want to show, such as MM/DD/YY.

Solution 1Recommended

Use the TEXT Function to Format the Date

Use TEXT around each date reference before combining it with other text.

1
Select the result cell

Click the cell where you want the combined text and date to appear.

2
Enter the formula

In the formula bar, enter ="Due date: "&TEXT(A1,"MM/DD/YY"), replacing A1 with the cell containing your date.

3
Confirm and adjust the format

Press Enter. To change the display, edit the format inside TEXT, for example to "DD/MM/YYYY".

Regional settings: Regional settings can affect date separators and how formats are interpreted. Some Excel installations also use semicolons instead of commas to separate formula arguments.
Format dates in WPS Spreadsheet

Combine Text and Formatted Dates in WPS Spreadsheet

Use the TEXT function in WPS Spreadsheet to control how a date appears when you join it with a text label.

  1. 1. Open your spreadsheet: Open WPS Spreadsheet and select File > Open to choose your workbook.
  2. 2. Select a result cell: Click the cell where you want the text and date to appear.
  3. 3. Enter the formula: Type ="Due date: "&TEXT(A1,"MM/DD/YY") in the formula bar, replacing A1 with your date cell.
  4. 4. Confirm the result: Press Enter and check the displayed date. Edit the format code in the formula if you need a different date layout.
Format dates inside text strings with the TEXT function.Open and edit Microsoft Excel XLSX and XLS files.Use a familiar spreadsheet interface for formulas and cells.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my formula show a number instead of a date?

Excel stores dates as serial numbers. When you combine a date cell with text, wrap the reference in TEXT, such as TEXT(A1,"MM/DD/YY"), to control its display.

How can I show a four-digit year?

Use YYYY in the format code. For example, =TEXT(A1,"MM/DD/YYYY") displays the date with a four-digit year.

Can I format two dates in the same text string?

Yes. Apply TEXT to each date reference, for example: =TEXT(A1,"MM/DD/YY")&" to "&TEXT(B1,"MM/DD/YY").

Can I calculate with the result of the TEXT function?

TEXT returns text, not a date value. For date calculations, reference the original date cell rather than the formatted text result.