Format Dates in an Excel Text String Formula
Question details
Format a date correctly when combining it with text in an Excel 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.
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.
Use the TEXT Function to Format the Date
Use TEXT around each date reference before combining it with other text.
Click the cell where you want the combined text and date to appear.
In the formula bar, enter ="Due date: "&TEXT(A1,"MM/DD/YY"), replacing A1 with the cell containing your date.
Press Enter. To change the display, edit the format inside TEXT, for example to "DD/MM/YYYY".
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. Open your spreadsheet: Open WPS Spreadsheet and select File > Open to choose your workbook.
- 2. Select a result cell: Click the cell where you want the text and date to appear.
- 3. Enter the formula: Type ="Due date: "&TEXT(A1,"MM/DD/YY") in the formula bar, replacing A1 with your date cell.
- 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.

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.




