Formula Errors

Use Named Ranges in Excel Table Formulas Without #SPILL!

Jason MillerJason Miller Nov 12, 2026 869 views

Question details

Learn how to avoid a #SPILL! error when formulas using named ranges are entered in an Excel table.

Use Named Ranges in Excel Table Formulas Without #SPILL!
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user wants to multiply Price and Quantity values in each row of an Excel table while using named ranges.
Observed behavior
A formula such as =price*quantity refers to complete named ranges, returns an array, and cannot spill within an Excel table.
Before you start

Confirm that price and quantity are names referring to entire worksheet columns or multiple cells. Identify whether the formula is being entered in a table calculated column or in a normal range outside the table.

Solution 1Recommended

Use row-specific structured references in the Excel table

Use this method for a calculation that should return one result per row in a table calculated column.

Excel tables cannot contain a dynamic-array result that spills into neighboring table cells. Structured references with the @ symbol use only the values from the current table row.

1
Select the calculated column cell

Click the first data cell in the table column where you want to calculate the result, such as the Total column.

2
Enter a row-by-row formula

Type =[@price]*[@quantity] in the formula bar or directly in the selected table cell.

3
Apply the calculated column

Press Enter. Excel fills the formula down the table column and calculates each row using its own price and quantity values.

Use row-specific structured references in the Excel table
Formula updated for table rows: The formula =[@price]*[@quantity] returns a single value for each table row, so it does not trigger a #SPILL! error.
Work with table formulas in WPS Spreadsheets

Calculate Each Table Row with Structured References in WPS Spreadsheets

WPS Spreadsheets provides familiar spreadsheet formula tools for calculating values row by row. Use table-style references for per-row calculations, or place multi-cell array results in an open range outside your data table.

  1. 1. Open the workbook in WPS Spreadsheets: Launch WPS Office, select Spreadsheets, and open the Excel workbook containing the table.
  2. 2. Select the table calculation cell: Click the first cell in the table column where the row total should appear.
  3. 3. Enter the current-row calculation: In the formula bar, enter =[@price]*[@quantity] to multiply the Price and Quantity values for the current row.
  4. 4. Confirm and review the column: Press Enter and verify that each table row displays an individual result rather than a spilled array.
Create row-by-row price and quantity calculations without filling a spill range inside the table.Use familiar spreadsheet formulas and structured table references.Open and edit Microsoft Excel .xlsx and .xls workbooks with strong format compatibility.Use a lightweight, free office suite for everyday spreadsheet work.
microsoft office alternative - wps office

Frequently Asked Questions

Why does =price*quantity show #SPILL! inside an Excel table?

If price and quantity refer to entire columns or multi-cell ranges, the formula returns multiple values. Excel tables do not allow that dynamic array to spill across table cells.

What does the @ symbol mean in an Excel table formula?

In a structured reference, @ means the current row. For example, =[@price]*[@quantity] multiplies only the price and quantity values in the same row.

Can I use named ranges in an Excel table calculated column?

Yes, but names that refer to a single cell can be used directly. For names that refer to multiple cells or whole columns, use row-specific structured references for calculations inside the table.

Where can I use =price*quantity without a #SPILL! error?

Enter it in a normal worksheet cell outside the table, where the required spill range is empty and is not blocked by cells, merged cells, or another table.