Fix Excel TEXT Formula Displaying DD-MM Instead of Dates
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.

- 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.
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.
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.
Click on the specific cell displaying the error, or highlight the entire column if multiple rows are affected.
Navigate to the 'Home' tab on the ribbon. In the 'Number' group, click the format dropdown menu and change it from 'Text' to 'General'.
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.

Fix Quotation Marks in the Formula
Smart (curly) quotation marks copied from word processors or emails can break Excel formulas, causing them to return errors or literal text.
Verify Table Auto-Expansion and Column Consistency
Ensure the new row is officially part of the structured table and is properly inheriting the calculated column formula.
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. Open your file: Launch WPS Spreadsheet and open your existing .xlsx workbook.
- 2. Enter the formula: Type your TEXT formula, such as =TEXT([@Birthday],"DD-MM"), into the desired column.
- 3. Format easily: Use the straightforward Number Formatting dropdown to ensure cells are set to General, guaranteeing formulas evaluate properly upon pressing Enter.

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.




