Ravindra BagaleCourses & study guides मराठी Track your progress

6. Tables, Sorting and Filtering

6.2 Structured References

Structured references in Excel Tables with example — in 30 seconds

What: In a Table, formulas use column names like tblOrders[Amount] instead of G2:G11.

Why: New rows are included automatically, and the formula explains itself to the next person.

Tiny example: =SUMIFS(tblOrders[Amount], tblOrders[City], "Pune") gives 544. Add an 11th Pune row and the answer updates without editing the formula.

First look at the data (before → after):

Structured references in Excel Tables with example: before and after tables, fictional FreshGo Maharashtra data

Expected result — Total for Pune

Formula Answer
=SUMIFS(tblOrders[Amount], tblOrders[City], "Pune") 544

About this data: Teaching sample for a fictional shop “NovaCraft Tools”. Figures and names (e.g. Vikram Rao) are made up for this lesson on structured references.

Expected result — Calculated column fills every row by itself

Order ID Amount Amount incl. GST
BLK-1001 64 67.20
BLK-1002 270 283.50
AMN-1003 110 115.50

About this data: Demo table only — not real customer or company data. Built to practise structured references.

Before table and formula as text

Before — Range A1:I11 converted to Table tblOrders (first rows)

Order ID City Amount
BLK-1001 Pune 64
BLK-1002 Nashik 270
AMN-1003 Pune 110

About this data: Made-up rows so you can copy the pattern for structured references. Currencies may use ₹, £, € or $.

Formula / click path

K2: =SUMIFS(tblOrders[Amount], tblOrders[City], "Pune")
New column J2: =[@Amount]*(1+GST_Rate)   (GST_Rate = 5%)

Do it step by step:

  1. Click inside the data and press Ctrl + T, then OK.
  2. On Table Design, type tblOrders in Table Name.
  3. In an empty cell, type =SUMIFS(tblOrders[Amount], tblOrders[City], "Pune"). Click the columns instead of typing names.
  4. In the first empty column of the table, type =[@Amount]*(1+GST_Rate). It fills the whole column.
  5. Add a new row at the bottom and watch both formulas include it.

Inside or outside a Table you can refer to columns by name.

Reference Means
tblOrders[Amount] The Amount column (data rows only)
tblOrders[@Amount] Amount in this row (inside the Table)
tblOrders[#Headers] The header row
tblOrders[#Totals] The Total Row
tblOrders[[#All],[Amount]] Header + data + total of Amount
tblOrders[[City]:[Area]] Columns City to Area

About this data: Fictional worksheet used in class. Safe to edit; nothing here is live production data.

Worked example. Add a calculated column Amount incl GST inside tblOrders: type in the first cell

=[@Amount]*(1+GST_Rate)

and press Enter – Excel fills the whole column. Outside the Table: Pune sales =SUMIFS(tblOrders[Amount], tblOrders[City], "Pune").

Ravindra Bagale's Tip

When you copy a structured reference sideways, the column changes (like a relative reference) – many students don't know this and get the wrong column. To fix the column, write tblOrders[[Amount]:[Amount]]. At the start, [@Column] means "of this row" – just remember that; the rest is very simple.

Practice task

Add calculated columns Delivery Fee (from 4.9 using XLOOKUP on the Amount) and Net Amount = [@Amount]+[@[Delivery Fee]]. Write a SUMIFS outside the Table for FreshGo sales in Nagpur.

Loading practice tasks...

  1. Total quantity (Easy): Add up the "Quantity" column.
  2. Average unit price (Easy): Average of the Unit price ($) column, rounded to 2 decimals.
  3. Rows in Website (Easy): How many rows have Channel "Website"?
  4. Largest quantity (Easy): The largest value in the "Quantity" column.
  5. Quantity for Website (Medium): Total of the Quantity column where Channel is "Website".
  6. Website in Denver (Medium): Total of the Quantity column where Channel is "Website" and City is "Denver".
  7. Best in Website (Medium): Largest value in the "Unit price ($)" column where "Channel" is "Website".
  8. Value of row 2 (Medium): Multiply the first-row Quantity by the first-row Unit price ($).
  9. Look up Ananya Nair (Medium): The Quantity for "Ananya Nair" (use a lookup on the "Name" column).
  10. Total value (Hard): Sum of "Quantity" times "Unit price ($)" for all rows.
  11. Share of Website (Hard): Share of the "Quantity" column that is "Website", rounded to 3 decimals.
  12. Share of the total "Unit price ($)" with a locked range (Hard): Find what share of the total "Unit price ($)" the first row has. Round it to 3 decimals.
  13. Above average? (Hard): "Above" if the "Unit price ($)" value in the first row is above the average of the "Unit price ($)" column, else "Below".

Quick revision cards

Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.

Revision card 1: What is Structured References?
Card 1: What is Structured References? · Download PNG
Revision card 2: Tiny example — Structured References
Card 2: Tiny example — Structured References · Download PNG
Revision card 3: Checklist — Structured References
Card 3: Checklist — Structured References · Download PNG