Formula Errors

Fix Excel Structured Table References and IF Formula Errors

Huma Ashraf ChHuma Ashraf Ch Dec 2, 2026 868 views

Question details

The user needs an Excel IF formula that calculates 0.25% of Account Values for rows where Specialty is Loans.

Fix Structured Table References and IF Formula Errors in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Confirm the table

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.

2
Enter the formula

In an empty table column, click the first data cell below the header and enter =IF([@Specialty]="Loans",[@[Account Values]]*0.0025,0).

3
Check the results

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.

4
Reinsert references if needed

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.

Use current-row structured references in the IF formula
Why the brackets matter: The @ symbol refers to the current row. The Account Values header contains a space, so its current-row reference uses an extra pair of brackets. If Excel requires semicolons as argument separators, replace the formula's commas with semicolons.
Calculate in WPS Spreadsheet

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. 1. Open the workbook: Open WPS Spreadsheet and choose Open to select your Excel workbook.
  2. 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. 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. 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.
Calculate the loan percentage row by row with an IF formula.Open and save Microsoft Excel XLSX and XLS files.Work in a familiar spreadsheet interface.Use WPS Office for free.
microsoft office alternative - wps office

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.