search
HomeSystem TutorialWindows SeriesFour Ways to Use Structured References in Microsoft Excel

Working in Excel typically revolves around finding connections between various data points. However, when inserting complicated formulas, repeatedly using relative and absolute explicit cell references (like “B7” or its variations) can only get you so far before the formula bar becomes an unreadable mess.

Structured references in Excel allow you to streamline that work by assigning names to tables and their headers. Those names can then be used as implicit cell references so Excel can automatically fetch the structured data and calculate it.

Here are some of the most common ways to use structured references in Excel.

1. Calculating Inside Tables

Since structured references only work on tables, the best way to utilize them is inside those same tables.

For example, we’ll create a simple table from B2 to F8 with sales data for a store. Note that we named the table “Sales” (see the “Table Name” in the top-left).

Four Ways to Use Structured References in Microsoft Excel

Let’s calculate the total for each sale:

Step 1: Click on F2 (but not on the drop-down icon). Go to “Home” then to “Insert,” and select “Insert Table Columns to the Right.” This will automatically add a new column to the table.

Step 2: Name the column G header “Total.”

Step 3: In G3, insert =[@PricePerUnit]*[@Quantity] and hit Enter. Format the cell output as needed.

Four Ways to Use Structured References in Microsoft Excel

The “[@PricePerUnit]” and “[@Quantity]” are references to the corresponding fields in those columns. The “@” argument before the column names means each result cell will use the references from the same table row.

To translate, the formula =[@PricePerUnit]*[@Quantity] in G3 is essentially the same as writing =$C3*$D3.

2. Fetching a Range Outside of the Table

When you want to use a structured reference in a cell outside the table, you need to preface the reference with TableName. In our previous example, using “Sales[Total]” will fetch the entire range under the header “Total” of the table “Sales.” This means you’ll get multiple values in an array that you can manipulate.

Here’s how this looks inside Excel in cell I3, provided you leave enough room for the range to spill down.

Four Ways to Use Structured References in Microsoft Excel

3. Summing and Partially Summing a Column

To quickly sum an entire column, you can use the “Total Row” checkmark in the “Table Design” options (under “Table Style Options”). Here’s an example of getting the totals for the “Quantity” and “Total” columns.

Four Ways to Use Structured References in Microsoft Excel

While the “Total” row by itself can’t be moved and will be placed at the end of the table (allowing for insertions), you can duplicate its result elsewhere:

  • To get the sum of all the rows in the “Total” column, use =SUM(Sales[Total]).
  • If you want to get only the sum of the visible columns, such as after filtering the table, use =SUBTOTAL(109,Sales[Total]). This formula is what the “Total Row” option in Table Format actually does in its row.

You can also get a partial sum based on a specific variable found inside the table without formatting it. For example:

  • To get the sum of all the sales by Mike, you can use =SUMIF(Sales[Seller],”Mike”,Sales[Total]). In the formula, “Mike” is a string that was manually input.
  • To get the sum of all products with the ID “41230”, use the following =SUMIF(Sales[ProductID],41230,Sales[Total]). Note that since the ProductID column has a “General” format, you can input the number directly.

4. Data Validation from a Table via INDIRECT

Suppose you have the previously used Sales table. You can create custom Data Validation options to make searching through the table easier. Let’s make a smaller table that will allow you to select between ProductIDs, Dates, or Sellers, and then choose any single item from those subsets to display the subtotal.

Step 1: In cell B13, create Data Validation (Data tab > Data tools > Data Validation).

Four Ways to Use Structured References in Microsoft Excel

Step 2: In the popup, choose “List” from the “Allow” options, then insert the values of the columns manually in the “Source” box, separated by commas. In this case, we inserted “ProductID, Seller, Date.”

Four Ways to Use Structured References in Microsoft Excel

Step 3: In cell C13, create another Data Validation. Again, choose “List.” For “Source,” insert the following formula: =INDIRECT("Sales["&B13&"]").

Four Ways to Use Structured References in Microsoft Excel

Step 4: In cell D13, use the following formula: =SUMIF(INDIRECT("Sales["&B13&"]"),B14,Sales[Total]).

You can now choose the options from the two data validation lists, and the subtotal will be displayed in D13.

Four Ways to Use Structured References in Microsoft Excel

The above is the detailed content of Four Ways to Use Structured References in Microsoft Excel. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How to Transfer Windows to Another DriveHow to Transfer Windows to Another DriveMay 02, 2025 pm 02:01 PM

Perhaps your old hard drive is starting to slow down and fail, or maybe you’re looking to migrate your files to a disk with much more space. There are plenty of reasons to migrate Windows from one drive to another, and just as many

How to Add a User Interface to Windows' Winget UtilityHow to Add a User Interface to Windows' Winget UtilityMay 02, 2025 am 06:04 AM

Does Windows lack a convenient package manager? UniGetUI is here to help you! The package manager for Linux systems is very convenient, but Windows systems lack similar tools. However, with a free open source project UniGetUI and Windows built-in command line tool winget, you can get the same functionality on Windows. The best feature for Windows missing: a convenient package manager Package Manager allows you to add and remove programs, system libraries, and drivers. You can search for programs almost instantly, retrieve information about them, and adjust settings. In other words, they are features that Microsoft stores dream of. Every Linux distribution has one

Arch Linux Is Now in the Windows Subsystem for LinuxArch Linux Is Now in the Windows Subsystem for LinuxMay 02, 2025 am 06:02 AM

Arch Linux officially joins the Windows Subsystem for Linux (WSL) family! No external downloads are needed; installation is a breeze using PowerShell: wsl --install archlinux First-time WSL users will need to run this command first, followed by a sy

Alienware's New 240Hz 34-Inch QD-OLED Monitor Is Finally OutAlienware's New 240Hz 34-Inch QD-OLED Monitor Is Finally OutMay 02, 2025 am 03:05 AM

This monitor boasts extensive connectivity, featuring a DisplayPort 1.4 port (supporting up to 3440 x 1440 at 240Hz, DSC, and HDR) and two HDMI 2.1 FRL ports (also supporting 3440 x 1440 at 240Hz, FRL, HDR, and VRR). These high-speed HDMI 2.1 ports

How to Install Windows 11 With No TPM 2.0How to Install Windows 11 With No TPM 2.0May 01, 2025 pm 08:01 PM

Windows 10 support is ending in late 2025, prompting many users to upgrade to Windows 11. However, the TPM 2.0 requirement can be a significant hurdle. This guide outlines methods to install Windows 11 even without TPM 2.0, but proceed with caution.

Acer Has Two New Monitors for GamingAcer Has Two New Monitors for GamingMay 01, 2025 am 06:06 AM

The Acer Predator XB323QK V4 and Nitro XV240 F6: A Tale of Two Monitors Acer offers two distinct gaming monitors catering to different needs: the color-focused XB323QK V4 and the speed-demon XV240 F6. Let's break down their key features. The XB323QK

I Bought RAM and an NVMe on eBay, Here's How It WentI Bought RAM and an NVMe on eBay, Here's How It WentMay 01, 2025 am 06:01 AM

eBay: A Surprisingly Good Source for New Computer Hardware? While eBay is renowned for its diverse selection of used goods, it's not always the first place that springs to mind when purchasing new computer components. However, my recent experience s

I Upgraded My Laptop's RAM, the Performance Boost Wasn't What You'd ExpectI Upgraded My Laptop's RAM, the Performance Boost Wasn't What You'd ExpectMay 01, 2025 am 03:08 AM

Upgrading your aging laptop? Adding RAM is the easiest and often the only practical upgrade besides storage. My recent experience upgrading a Dell Latitude 5420 proved surprisingly impactful. More RAM Wasn't the Initial Goal My used Dell 5420, while

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.