Formula Errors

Correct an Excel IF Formula with Structured Table References

Khadija KhanKhadija Khan Dec 2, 2026 868 views

Question details

Correct IF formulas that use structured references when the worksheet data is not yet an Excel table.

Correct an Excel IF Formula with Structured Table References
Product
Microsoft Excel
Device & OS
not provided
Scenario
Calculate 0.25% of Account Values in separate columns for Loans and non-Loans rows.
Observed behavior
The formulas use structured references such as [@Specialty] and [@[Account Values]], but the data has not been converted into a table.
Before you start

Check that the data range includes a header row with columns named Specialty and Account Values. Identify the output columns before entering formulas so you do not overwrite source data.

Solution 1Recommended

Convert the range to a table and correct the IF formulas

Use this method to keep the structured references in the assignment formulas.

1
Select the data range

Select the full range, including headers and the intended output columns. For the example worksheet, select A8:I22 if row 8 contains the headers.

2
Create the table

Choose Insert > Table, confirm the selected range, check My table has headers, and click OK.

3
Enter the Loans formula

In the first data cell of the Loans output column, such as H9 in the example, enter =IF([@Specialty]="Loans",[@[Account Values]]*0.0025,0).

4
Enter the non-Loans formula

In the first data cell of the non-Loans output column, such as I9 in the example, enter =IF([@Specialty]="Loans",0,[@[Account Values]]*0.0025). Check that both formulas fill the remaining table rows.

Convert the range to a table and correct the IF formulas
Use three IF arguments: IF takes a condition, a value if true, and a value if false. Do not add an extra ,0 after the third argument.
Calculate in WPS Spreadsheets

Calculate Loans and non-Loans amounts in WPS Spreadsheets

Open your workbook in WPS Spreadsheets and use IF formulas with ordinary cell references to calculate each amount without converting the range to a table.

  1. 1. Open the workbook: In WPS Spreadsheets, select Open and choose your workbook.
  2. 2. Check the source columns: Find the Specialty and Account Values cells in the first data row. If they are not B9 and C9, replace those references in the example formulas.
  3. 3. Enter the IF formulas: In the first Loans output cell, enter =IF(B9="Loans",C9*0.0025,0). In the first non-Loans output cell, enter =IF(B9="Loans",0,C9*0.0025), adjusting the cell references to match your sheet.
  4. 4. Fill and save: Drag the fill handle down each output column, then select File > Save to save the workbook.
Separate Loans and non-Loans calculations with IF formulasOpen and edit Microsoft Excel XLSX workbooksCopy formulas down rows with the fill handleWork with a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does [@Specialty] not work in my formula?

It is a structured reference to the current row of an Excel table. Select the data and choose Insert > Table, or replace it with the appropriate cell reference.

What does 0.0025 mean in these formulas?

It represents 0.25%. The formula multiplies the Account Values amount by 0.0025 when the row meets the specified Loans or non-Loans condition.

Why is there no extra zero at the end of the non-Loans formula?

IF accepts three arguments: the condition, the result when true, and the result when false. In =IF([@Specialty]="Loans",0,[@[Account Values]]*0.0025), all three are already present.

What if Excel does not accept commas in the formula?

Some regional settings use semicolons as argument separators. If Excel rejects the comma-separated formula, try replacing the commas between IF arguments with semicolons.