docs > Structured Referencing

How to use Structured Referencing

What exactly is Structured Referencing?

Structured referencing is when a user references the data table names and the column names in their formulas instead of using explicit cell references. For a data table named Table2 the structured referencing and explicit cell references are below:

Comparison between Cell Referencing and Structured Referencing
Data Table- Table2.
Data Table Close Up

While creating formulas in a sheet Sourcetable will automatically suggest the column names once the table name is typed allowing you to see what data is available to use.

Structured Referncing Autofill

That way the user doesn’t have to remember the exact name of each column making it a little easier to use.

Naming tables and columns

When using structured referencing a couple of changes can make it much easier. First changing the name of the data table from Table1 to a name that tells you the data it contains will be extremely helpful with a large amount of data. To change the name of a table click the current name and it will become an input field. Then type the new name and hit enter.

Table_Name_Location

Clicking out of the input field will not cause your new name to save. This is to ensure that users do not accidentally change the name of one of your data tables. There are some rules for naming the data tables:

  1. No explicit cell references - you cannot use a cell reference in the name.
  2. Be Unique - Data table names must be unique. It is necessary to keep the data distinct.
  3. Short and sweet - Keep the table names shorter than 255 characters.
  4. No spaces - If a space is necessary use an underscore _.
  5. No special characters - Use the ordinary alphabet or numbers only.

Once the data table has a correctly formatted name you can stop using explicit cell references and level up.

Using structured referencing

With structured referencing you refer to the table name in a formula like this: Table1[column_name], which stands in for a particular explicit cell reference.

Data Table- Table2.
Data_Table_Zoom

In the data table above, named Table2, a user would get total orders by putting in

=SUM(Table2[orders_count])

Start with what you want to do, whether it is count, sum, or average, then parentheses and put in the data table name with brackets containing the column name that you want. If you are multiplying or dividing simply use the data table name and column name in place of cell references. If a user wanted to divide the total number of orders by the count of customers then they would create this formula:

=((SUM(Table2[orders_count])/(COUNT(Table2[last_name]))

Sourcetable makes referencing more than one data table easy. Just use the data table name and column name like before.

=((SUM(Table2[total_spent])/(COUNT(Table3[customer_id]))

Structured referencing makes reports more performant and easier to use with no copy and pasting duplicate data. More data at your fingertips means improved in-depth analysis. Now you can easily create one page reports from multiple sources and integrations that update automatically with Sourcetable

One of the best ways to make use of all that Sourcetable offers is to use structured referencing when creating your reports and analyzing your data. This allows you to manipulate the data you selected in any data table in your workbook on one sheet. Your reports and formulas aren’t limited to the data that you have copied and pasted to the current sheet as long as you use structured referencing.

Drop CSV