Formula Errors

How to Fix SEQUENCE #SPILL! Inside an Excel Table in WPS Office

Huda QurayshiHuda Qurayshi Nov 13, 2026 872 views

Question details

The user wants to know why the SEQUENCE function returns a #SPILL! error inside an Excel table and how to generate a row-number sequence without triggering that error.

How to Fix SEQUENCE #SPILL! Inside an Excel Table in WPS Office
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
Creating a dynamic sequence in a calculated column inside an Excel table opened in WPS Office Spreadsheets.
Observed behavior
SEQUENCE produces a spilled array, but an Excel table calculated column expects one result per row, so the formula returns a #SPILL! error.
Before you start

Identify the table name, for example Table1, and the column where you planned to enter SEQUENCE. Make sure there is an empty cell range outside the table, such as the column to the left or a row above, where the spilled array can expand freely.

Solution 1Recommended

Place SEQUENCE Outside the Excel Table to Avoid #SPILL!

Use this method when you need a sequence matching the table's row count, but the formula is currently inside a calculated column and causing a #SPILL! error.

Excel table calculated columns are scalar-based and are designed to return one result per row. Dynamic array formulas such as SEQUENCE return multiple values as a spilled range, so they must live in a normal worksheet area outside the table.

1
Select an empty cell outside the table

Click a cell in a normal worksheet range, preferably in the empty column to the left of the table or in a row above it.

2
Enter the SEQUENCE formula

Type =SEQUENCE(ROWS(Table1)) in the selected cell, using the exact table name shown on the Table Design tab if your table is not named Table1.

3
Press Enter and check the spill range

Press Enter and confirm that the spilled sequence has enough empty cells to expand downward without overlapping the table or other data.

Place SEQUENCE Outside the Excel Table to Avoid #SPILL!
Values are not tied to individual records: The generated sequence is not automatically linked to individual table records, so do not use it as a primary key.

Fix SEQUENCE #SPILL! in WPS Office Spreadsheets

Open your workbook in WPS Office Spreadsheets and enter =SEQUENCE(ROWS(Table1)) in a normal cell outside the Excel table. This lets the dynamic array spill freely while keeping the table's calculated-column behavior intact.

  1. 1. Open the workbook in WPS Office Spreadsheets: Launch WPS Office Spreadsheets and open the Excel workbook that contains the table with the #SPILL! error.
  2. 2. Select an empty cell outside the table: Click an empty cell in the column to the left of the table or in a row above it, away from any existing data.
  3. 3. Enter the dynamic array formula: Type =SEQUENCE(ROWS(Table1)) into the formula bar, replacing Table1 with your actual table name.
  4. 4. Press Enter and verify the result: Press Enter and make sure the spilled sequence expands into empty cells without overlapping the table.
Resolves the SEQUENCE #SPILL! error by moving the formula outside the tableKeeps the same SEQUENCE and ROWS syntax used in Microsoft ExcelMaintains full compatibility with Excel .xlsx workbook and dynamic-array formulasProvides a free, lightweight Microsoft Excel alternative with a familiar interface
QA img-9

Frequently Asked Questions

Why can't I put SEQUENCE inside an Excel table calculated column?

Excel table calculated columns only accept one result per row, while SEQUENCE returns a spilled array. Move the formula to a normal cell outside the table so the spill range can expand.

Where should I place =SEQUENCE(ROWS(Table1)) to fix the #SPILL! error?

Place it in an empty worksheet range outside the table, preferably to the left of the table or above it. Use the exact table name and make sure the spill area is empty.

Can I use the generated SEQUENCE numbers as a primary key in the table?

No. The numbers are not automatically linked to individual table records, so they should not be used as a primary key. Use a static ID column inside the table if each row needs a stable identifier.

Does WPS Office support dynamic array formulas like SEQUENCE?

Yes. WPS Office Spreadsheets supports dynamic array formulas such as SEQUENCE. Open an .xlsx workbook in WPS Office and enter the formula in a normal cell outside the table.

What should I check if SEQUENCE still returns #SPILL! outside the table?

Select the formula cell and check for data, merged cells, or table boundaries blocking the spill range. Clear the blocked cells and press Enter again.