This video is part of our online video training.
Introduction to Structured References and Tables
In this video, I'll give a brief introduction to structured references.
A structured reference is a term for using a table name in a formula instead of a normal cell reference.
Structured references are optional, and can be used with formulas both inside or outside an Excel table.
Let's look at some examples.
On this sheet, I have population data for 25 states in the US, based on the 2000 and 2010 census.
I'll convert this data to an Excel Table, and name the table "states".
Now let's build some formulas that refer to the table.
I'll start off with row and column counts.
These functions require only a range of cells.
Notice when I select the data area of the table, Excel adds the name automatically.
Usually the fastest way to use structured references is to start typing. Once I have an opening parentheses, I can type "s" and Excel will show the table name below.
Then I can use the arrow key to select, and use TAB to complete.
Both formulas now use structured references.
Next, let's add some formulas inside the table.
I'll add a new column called "change", then add a formula that subtracts the 2000 population from the 2010 population.
Notice Excel automatically picks up the column name when I click a cell, and that column names appear enclosed in square brackets.
The table name is not needed here because it's implied.
The @ symbol indicates "current row". You'll see this symbol often when using formulas inside a table.
I'll add another column to calculate percent change.
Now I'll jump back out of the table and add a formula to return the largest percent change using the MAX function.
Again, I can start typing to have Excel autocomplete the names I need.
Notice this reference uses both the table name and the column name.
Finally, I'll use INDEX and MATCH to return the name of the state with the largest change.
In this formula, we give INDEX the state column as the array, and use the MATCH function to get a column number. MATCH finds the position of max value in the percent change column.
As you can see, structured references are easy to read.
They are also resilient and dynamic.
If I change the name of a column, nothing breaks. The formulas are automatically updated to use the new name.
Even better, if I paste in data for the remaining 25 states, the table expands, and the structured references immediately use the full set of data.
We'll explore structured references in more detail in upcoming videos.