Fix Excel Structured Table References and IF Formula Errors
Question details
The user needs an Excel IF formula that calculates 0.25% of Account Values for rows where Specialty is Loans.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A calculated column in an Excel table should test each row's Specialty and calculate a percentage of its Account Values.
- Observed behavior
- Incorrect structured references produce formula syntax, #NAME?, or #SPILL! errors.
Check that the data is an Excel table and that its headers are exactly Specialty and Account Values. Confirm that Account Values contains numbers and that the rows to be calculated contain Loans in the Specialty column.
Use current-row structured references in the IF formula
Use this formula in a calculated table column to evaluate each row and avoid referencing entire columns.
Click a cell in the data and check for the Table Design tab. If the range is not a table, select it and choose Insert > Table, then confirm that your table has headers.
In an empty table column, click the first data cell below the header and enter =IF([@Specialty]="Loans",[@[Account Values]]*0.0025,0).
Press Enter and check that Loans rows return 0.25% of Account Values and other rows return 0. Excel may fill the formula down the calculated column automatically.
If a reference is not recognized, edit the formula and click the Specialty and Account Values cells in the same row to let Excel insert their structured references. Check the spelling of both headers.

Check for a blocked or unintended array result
Use this check if Excel still displays #SPILL! after you edit the formula.
Calculate loan account values with WPS Spreadsheet
Use an IF formula with ordinary cell references in WPS Spreadsheet to calculate 0.25% for Loans rows and zero for other rows.
- 1. Open the workbook: Open WPS Spreadsheet and choose Open to select your Excel workbook.
- 2. Identify the columns: Find the Specialty and Account Values headers and note their column letters. For example, Specialty may be in column A and Account Values in column B.
- 3. Enter the IF formula: In an empty result cell on the first data row, enter =IF(A2="Loans",B2*0.0025,0), replacing A2 and B2 with the actual cells in that row.
- 4. Fill and save: Press Enter, drag the cell's fill handle down the result column, and choose File > Save As to save the workbook.

Frequently Asked Questions
What does @ mean in an Excel table reference?
The @ symbol refers to the current row. For example, [@Specialty] uses the Specialty value from the same row as the formula.
Why does Account Values need extra brackets?
The header contains a space, so its current-row structured reference is written as [@[Account Values]]. Check that the header text matches the table exactly.
Why does Excel show #NAME? for my formula?
Check the formula bar for misspelled function names or table headers, missing brackets, and text values that are not enclosed in quotation marks. You can also click the relevant table cell while editing to insert its reference.
Why does the formula return #SPILL!?
A reference to an entire column can produce an array when a single row value was intended. Use current-row references in the table; outside the table, also check whether the intended spill range is blocked.




