Skip to content
TablePage.ai Open the app

Excel structured references: calculate by column name, then publish the results

Use Excel table names and column headers in formulas, check expanding ranges, and prepare a values-only dataset for public sharing.

Share X in f
Wei Hu

An Excel structured reference uses a table name and column header instead of a cell address. For example, =SUM(Budget[Actual]) adds the data in the Actual column of the table named Budget.

The useful difference from =SUM(C2:C4) is that the reference adjusts as you add or remove table data. That makes it easier to maintain calculations while preparing a dataset for publication. Microsoft documents this table-based behavior.

Create a table and a calculated column

Use this fictional budget dataset. All amounts are in USD; positive variance will mean actual spending exceeded planned spending.

Region Planned Actual Variance
North 10000 11000
South 8000 7500
East 12000 12000

In Excel for Windows:

  1. Paste the headers and rows into cells A1:D4.
  2. Select A1:D4 and press Ctrl+T.
  3. Confirm the range, check My table has headers, and select OK.
  4. Select a cell in the table. Under Table Design, set Table Name to Budget and press Enter.
  5. In the first data cell under Variance, enter:
=[@Actual]-[@Planned]

Excel creates a calculated column and fills the formula down the table. The @ means this row: subtract this row’s planned amount from this row’s actual amount. These table-creation, naming and calculated-column steps follow Microsoft’s structured-reference instructions.

The expected results are 1000, -500 and 0. Unlike a formula such as =C2-B2, the expression tells a reviewer which fields the calculation uses.

Read the brackets correctly

These are the main forms you need:

Reference What it selects
Budget[Actual] Actual values in the data rows, excluding the header and Total Row
[@Actual] This row’s Actual value, inside the table
Budget[[#Data],[Actual]] Explicitly the Actual column’s data rows
Budget[[#Headers],[Actual]] The Actual header cell
Budget[[#Totals],[Actual]] The Actual cell in the table’s Total Row, if present
Budget[#All] The whole table, including headers and any Total Row

Use the table name when referring to table data from a formula outside the table. Inside a calculated column, you can omit it. Microsoft describes these reference components and special item specifiers.

For example, place these checks outside the table:

=SUM(Budget[Planned])
=SUM(Budget[Actual])
=SUM(Budget[Variance])

For the sample, they should return 30000, 30500 and 500. The variance total should also equal actual total minus planned total.

Check that new rows are included

Add a row inside the table with West, 6000 and 6500. Its variance should be 500, and the Actual sum should become 37000.

If it does not, check whether the new row is really part of the table—not merely a nearby worksheet row—and whether your summary uses Budget[Actual] rather than a fixed range.

Other common problems:

  • An existing formula still says C2:C4. Converting a range to a table does not automatically rewrite existing A1-style references. Edit the formula to use the table reference.
  • A header contains punctuation. Some characters require extra brackets or escaping. Select the relevant table cells while building the formula so Excel supplies the syntax.
  • A linked workbook shows #REF!. Structured references to tables in another workbook require the source workbook to be open.

Excel also updates structured references within the workbook when you rename a table or column. These behaviors are covered in Microsoft’s syntax and troubleshooting guidance.

Publish the results, not the working workbook

Keep the formula-driven XLSX as your working file. For public sharing, create a separate release workbook containing only approved columns and rows. Copy the reviewed results into it using Home > Paste > Values, which pastes formula results rather than formulas. Microsoft lists the available paste options. Keep summary checks out of the release table so totals cannot be mistaken for regional records.

If exporting CSV, remember that Excel saves the active worksheet’s displayed text and values, not a functioning Excel table. If cells display formulas instead of results, those formulas can be exported as text. Microsoft explains these CSV limitations. Inspect the exported file using the CSV export checklist.

Document the currency, variance sign convention, source and reporting period in a dataset reference sheet. Remove sensitive information rather than hiding it.

TablePage accepts CSV, TSV, XLSX and XLS files and generates public dataset pages with filterable tables. Upload only the reviewed release file, then compare the published row count and sample values with your checked output. Structured references maintain the calculation in Excel; the public page should present the approved results clearly.