Excel Formula Table Range: How to Use Structured Refs
In this article
A table range in Excel is the block of cells that belongs to an Excel Table (created with Ctrl+T or Insert > Table), and you refer to it in formulas by name instead of by cell addresses — for example =SUM(Sales[Amount]) instead of =SUM(B2:B500). The payoff is that the range grows and shrinks automatically as you add or remove rows, so formulas never go stale when data is pasted in. To set it up, convert your data to a table, give it a clear name, then write formulas using the table name and the bracketed column name.
What You'll Need
- Microsoft Excel on Windows or Mac desktop (structured references work best there). Excel for the web supports tables and structured references, but mobile apps handle them inconsistently — the desktop app is the safe place to build them.
- Your data in a clean grid: one header row, no blank header cells, no merged cells in the header, and no blank rows or columns cutting through the middle of the block.
- A name for each table that you will remember. Excel auto-generates names like Table1, which is fine but hard to read in long formulas.
Step-by-Step
- Select any cell inside your data block. You do not need to highlight the whole thing. Excel detects the surrounding contiguous region.
- Press Ctrl+T (Cmd+T on Mac) or go to Insert > Table. A small dialog appears with the range Excel guessed. Labels change slightly between versions and platforms, but the checkbox for "My table has headers" is consistent — tick it if row 1 contains column titles, leave it clear if not.
- Click OK. Excel adds filter arrows to the headers and applies a table style. The design tab that appears is called Table Design (or just Table on Mac) — that is where you rename it.
- Rename the table. Click any cell in the table, go to the Table Design tab, and edit the value in the Table Name box at the far left. Use a single word or an underscore, with no spaces:
Sales,Inventory2024,Budget_Q3. Press Enter to commit. - Check the column names. The bracketed names in formulas come directly from the header text. Rename a header to something short and unique (e.g.
Amountrather thanTransaction Amount (USD)) if you plan to type formulas by hand. - Write your first formula using the table name. Outside the table, type
=SUM(and then start typing the table name. Excel shows a list of table names and columns — pick from it with Tab. The finished formula reads=SUM(Sales[Amount]). Press Enter. - Verify it auto-expands. Click the cell below the last data row in the table and type a new record. The table border extends, and your SUM immediately includes the new value. That is the whole point of the exercise.
- Use the special item selectors when needed. Inside the brackets you can type
[#Headers],[#Totals],[#Data], or[@ColumnName]for the current row. For example=SUBTOTAL(109,Sales[Amount])totals only visible rows, and=Sales[[#Headers],[Amount]]returns the header text itself. - Turn on total rows if you want an in-table sum. With a cell in the table selected, go to Table Design and tick Total Row. A row appears at the bottom; click a cell there to pick a function from the dropdown. This produces a SUBTOTAL formula that respects filters.
- Test the formula against editing. Delete a row of data and confirm the formula result drops correctly. Add a row back. If both work, your structured reference is sound and you can copy the formula across other columns.
Common Mistakes
Using cell addresses inside table formulas. If you write =SUM(Sales[Amount])/B2, the B2 part is a normal reference and will not shift correctly when rows are added. Prefer [@Amount] for same-row values.
Spaces in table or column names. Table names must not contain spaces. Column headers can, and Excel handles them, but then your formula needs extra quoting: Sales[[Amount USD]]. Short, single-word headers save a lot of typing.
Header typos and duplicates. Excel renames duplicate headers automatically (Amount, Amount2), which silently breaks formulas you wrote against the original name. Check headers before writing long formulas.
Converting only part of the data. If blank rows split your block, Ctrl+T grabs only the first section. Select the full range first, then press Ctrl+T.
Assuming structured references export cleanly. Older versions of Excel and some third-party tools do not understand them. If you share the workbook widely, check that recipients see values, not #NAME? errors.
Tips
Use the formula AutoComplete — typing the table name and pressing Tab inserts the correct bracket syntax without typos. Name tables after what they hold, not where they sit, so a renamed sheet does not confuse anyone. If you want a formula to read the table name from a cell, you cannot do that directly; the table name must be typed literally in the formula, so build separate formulas per table when you have several. For dashboards, pair table references with SUBTOTAL or AGGREGATE so filtered views report correctly. And keep one table per topic — tables cannot overlap, so plan your sheet layout before you add a second one.
Troubleshooting
You get #NAME? The table name is misspelled or the table was renamed or deleted. Click a cell in the table, read the name from the Table Name box, and fix the formula.
You get #REF! The referenced column or table no longer exists, most often after converting the table back to a plain range. Rebuild the reference.
Excel will not accept your formula. Check for a missing closing bracket — structured references need one square bracket per nesting level, as in Sales[[#Data],[Amount]].
Typing a formula inside the table gives odd results. Remember that a formula entered in a table column auto-fills down every row. That is a feature, but it means you cannot leave a blank gap.
The name box is greyed out or the Table Design tab has vanished. The active cell is not inside the table. Click directly on a table cell and the tab returns.
Frequently Asked Questions
Can I use a table range in a chart?
Yes. Charts built on a table range extend automatically when new rows are added, so you do not need to edit the source data range.
Are structured references case-sensitive?
Excel treats table and column names as case-insensitive, so sales[amount] works the same as Sales[Amount].
How do I convert a table back to a normal range?
Click a cell in the table, go to Table Design, and choose Convert to Range. Formulas that used structured references are replaced with cell addresses, so the auto-expansion is lost.
Can two tables share the same name?
No. Table names must be unique in the whole workbook, even across different sheets.
Why does my SUM ignore rows I just added?
The new rows were probably added below a blank row, outside the table. Delete the blank row or drag the table border handle to include them.
Do table references work in Excel for the web?
Yes, tables and structured references work in Excel for the web, though feature coverage is narrower than the desktop app. Build and debug complex formulas in the desktop version.