How to Fix Excel TEXT Formula #SPILL! Error in a Table
Question details
The user needs to resolve a #SPILL! error that occurs when applying a TEXT formula to format data inside an Excel table.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Formatting date values or other data formats within an Excel table using the TEXT function.
- Observed behavior
- The formula =TEXT(A1,"yyyy/mm/dd") returns a #SPILL! error after the data range is converted into a table, because table columns require structured references for calculated columns instead of standard cell references.
Ensure your data is fully converted into a formal Excel table with distinct headers for each column before modifying your formulas.
Use Structured References in Table Formulas
Replace standard cell references with structured table references to allow the formula to calculate correctly within the table column.
Excel tables manage formulas differently than standard ranges. When you type a formula in a table column, Excel automatically creates a calculated column. If you use standard ranges or array formulas, Excel may try to spill the results outside the designated cells, triggering a #SPILL! error.
Select your data range and press Ctrl+T (or go to Insert > Table) to ensure it is formatted as an official Excel Table. Make sure the 'My table has headers' box is checked.
Click on the cell immediately to the right of your table and type a new header name (e.g., 'Formatted Date') to expand the table automatically.
In the first cell of the new column, enter the structured-reference formula: =TEXT([@[Date Serial]],"yyyy/mm/dd"). Be sure to replace 'Date Serial' with the exact name of the column containing your source values.
Press Enter. Excel will automatically apply this calculated-column formula to every row in the table, resolving the #SPILL! error and correctly formatting the data.

Manage Tables and Formulas Easily with WPS Office
WPS Office Spreadsheet provides full support for standard and structured references, allowing you to format dates and perform complex table calculations smoothly without formula spilling issues.
- 1. Open your data in WPS Spreadsheet: Launch WPS Office and open your existing workbook containing the raw data.
- 2. Format data as a table: Highlight the data range, navigate to the Insert tab, and select Table to format it with headers.
- 3. Apply the TEXT formula: In a new column, type =TEXT([@[YourColumnHeader]],"yyyy/mm/dd") and press Enter to instantly format the entire column.

Frequently Asked Questions
Why does the TEXT formula cause a #SPILL! error in standard ranges?
A #SPILL! error occurs when a formula produces multiple results (an array) but the destination range is blocked by existing data. Clearing the obstructing cells allows the array to spill properly, though this behavior changes inside official Tables.
What is a structured reference in Excel?
A structured reference is a special syntax (e.g., [@[Column Name]]) used in Excel tables. It references table parts by name rather than explicit cell coordinates, making formulas easier to read and preventing overlap errors.
How do I fix a #SPILL! error if I don't want to use an Excel table?
If you prefer standard ranges, ensure you are referencing a single cell (e.g., =TEXT(A2,"yyyy/mm/dd")) and drag the fill handle down. If using a dynamic array formula like =TEXT(A2:A100,"yyyy/mm/dd"), ensure there are enough empty cells below the formula to accommodate the entire output.




