Formula Errors

Fix Excel TEXT Formula Displaying DD-MM Instead of Dates

Emma BrownEmma Brown Nov 10, 2026 868 views

Question details

The user needs to resolve an issue where the TEXT function outputs the format string 'DD-MM' instead of extracting and formatting the actual date.

Fix Excel TEXT Formula Displaying DD-MM Instead of Dates
Product
Microsoft Excel
Device & OS
not provided
Scenario
Entering a formula like =TEXT([@Birthday],"DD-MM") in a newly added row of a structured Excel table.
Observed behavior
The cell displays the literal text 'DD-MM' instead of the formatted date, despite older rows in the same table functioning correctly.
Before you start

Check if Excel's calculation mode is set to Manual. Press F9 to force a workbook recalculation to see if the formula updates correctly before proceeding with further troubleshooting.

Solution 1Recommended

Change Cell Format from Text to General

Formatting a cell as 'Text' causes Excel to display exactly what is typed, ignoring the formula evaluation process entirely.

When you add a new row to an Excel table, it sometimes inherits the formatting of the adjacent cell or defaults to Text format if recent data entries triggered it. To make the formula calculate, the cell must be set to General.

1
Select the affected cells

Click on the specific cell displaying the error, or highlight the entire column if multiple rows are affected.

2
Change format to General

Navigate to the 'Home' tab on the ribbon. In the 'Number' group, click the format dropdown menu and change it from 'Text' to 'General'.

3
Re-enter the formula

Double-click the affected cell to enter edit mode, place your cursor at the end of the formula, and press Enter. This forces Excel to recognize and recalculate the formula.

Change Cell Format from Text to General
Quick Tip: You can also highlight the column, go to the Data tab, and use 'Text to Columns' > Finish to quickly force Excel to recalculate the entire column after changing the format to General.
Solve Excel Formula Errors Easily

Use WPS Spreadsheet to Manage Dates and Formulas

WPS Spreadsheet is a highly compatible and lightweight alternative to Excel. It handles complex table structures, date calculations, and the TEXT function seamlessly while avoiding common cell-formatting glitches.

  1. 1. Open your file: Launch WPS Spreadsheet and open your existing .xlsx workbook.
  2. 2. Enter the formula: Type your TEXT formula, such as =TEXT([@Birthday],"DD-MM"), into the desired column.
  3. 3. Format easily: Use the straightforward Number Formatting dropdown to ensure cells are set to General, guaranteeing formulas evaluate properly upon pressing Enter.
Fully compatible with Microsoft Excel formulas like TEXT, VLOOKUP, and IFIntuitive cell formatting to prevent literal text errorsSeamlessly manages structured tables and auto-filling columnsFree, lightweight, and fast performance for large datasets
microsoft office alternative - wps office

Frequently Asked Questions

Why do my Excel formulas show as text instead of the result?

The most common reason is that the cell is formatted as 'Text'. When formatted as text, Excel treats everything, including formulas starting with an equals sign, as plain text strings. You must change the format to 'General' and re-enter the formula by double-clicking the cell and hitting Enter.

Can I use different date formats with the TEXT function?

Yes, the TEXT function supports various date codes. For example, 'YYYY-MM-DD' will output 2023-10-31, while 'MMM DD' outputs Oct 31. Just ensure your format codes are wrapped in straight double quotes within the formula.

Why doesn't my structured table auto-fill the formula in new rows?

Auto-filling can stop if manual edits were made to the column, breaking the 'calculated column' rule, or if Excel's AutoCorrect options for tables are disabled. You can fix this by overwriting the entire column with a single consistent formula to reset the calculated behavior.

What is the difference between formatting a date and using the TEXT function?

Formatting a cell changes how the date looks but keeps the underlying serial number intact for math and time calculations. The TEXT function permanently converts the date into a literal text string based on your specified format, which is useful for concatenating with other text but prevents further date-based math.