Table of Contents
1. Calculating Inside Tables
2. Fetching a Range Outside of the Table
3. Summing and Partially Summing a Column
4. Data Validation from a Table via INDIRECT
Home System Tutorial Windows Series Four Ways to Use Structured References in Microsoft Excel

Four Ways to Use Structured References in Microsoft Excel

Dec 13, 2024 pm 03:24 PM

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 of this Website
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

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

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1664
14
PHP Tutorial
1268
29
C# Tutorial
1242
24
Windows kb5054979 update information Update content list Windows kb5054979 update information Update content list Apr 15, 2025 pm 05:36 PM

KB5054979 is a cumulative security update released on March 27, 2025, for Windows 11 version 24H2. It targets .NET Framework versions 3.5 and 4.8.1, enhancing security and overall stability. Notably, the update addresses an issue with file and directory operations on UNC shares using System.IO APIs. Two installation methods are provided: one through Windows Settings by checking for updates under Windows Update, and the other via a manual download from the Microsoft Update Catalog.

Nanoleaf Wants to Change How You Charge Your Tech Nanoleaf Wants to Change How You Charge Your Tech Apr 17, 2025 am 01:03 AM

Nanoleaf's Pegboard Desk Dock: A Stylish and Functional Desk Organizer Tired of the same old charging setup? Nanoleaf's new Pegboard Desk Dock offers a stylish and functional alternative. This multifunctional desk accessory boasts 32 full-color RGB

ASUS' ROG Zephyrus G14 OLED Gaming Laptop Is $300 Off ASUS' ROG Zephyrus G14 OLED Gaming Laptop Is $300 Off Apr 16, 2025 am 03:01 AM

ASUS ROG Zephyrus G14 Esports Laptop Special Offer! Buy ASUS ROG Zephyrus G14 Esports Laptop now and enjoy a $300 offer! Original price is $1999, current price is only $1699! Enjoy immersive gaming experience anytime, anywhere, or use it as a reliable portable workstation. Best Buy currently offers offers on this 2024 14-inch ASUS ROG Zephyrus G14 e-sports laptop. Its powerful configuration and performance are impressive. This ASUS ROG Zephyrus G14 e-sports laptop costs 16 on Best Buy

Got an AMD CPU and Aren't Using PBO? You're Missing Out Got an AMD CPU and Aren't Using PBO? You're Missing Out Apr 12, 2025 pm 09:02 PM

Unlocking Ryzen's Potential: A Simple Guide to Precision Boost Overdrive (PBO) Overclocking your new PC can seem daunting. While performance gains might feel elusive, leaving potential untapped is even less appealing. Fortunately, AMD Ryzen processo

How to Use Windows 11 as a Bluetooth Audio Receiver How to Use Windows 11 as a Bluetooth Audio Receiver Apr 15, 2025 am 03:01 AM

Turn your Windows 11 PC into a Bluetooth speaker and enjoy your favorite music from your phone! This guide shows you how to easily connect your iPhone or Android device to your computer for audio playback. Step 1: Pair Your Bluetooth Device First, pa

5 Hidden Windows Features You Should Be Using 5 Hidden Windows Features You Should Be Using Apr 16, 2025 am 12:57 AM

Unlock Hidden Windows Features for a Smoother Experience! Discover surprisingly useful Windows functionalities that can significantly enhance your computing experience. Even seasoned Windows users might find some new tricks here. Dynamic Lock: Auto

Microsoft Might Finally Fix Windows 11's Start Menu Microsoft Might Finally Fix Windows 11's Start Menu Apr 10, 2025 pm 12:07 PM

Windows 11's Start Menu Gets a Much-Needed Overhaul Microsoft's Windows 11 Start menu, initially criticized for its less-than-intuitive app access, is undergoing a significant redesign. Early testing reveals a vastly improved user experience. The up

You Can Get The Razer Basilisk V3 Pro Mouse for 39% off You Can Get The Razer Basilisk V3 Pro Mouse for 39% off Apr 09, 2025 am 03:01 AM

##### Razer Basilisk V3 Pro: High-performance wireless gaming mouse The Razer Basilisk V3 Pro is a high-performance wireless gaming mouse with high customization (11 programmable buttons, Chroma RGB) and versatile connectivity. It has excellent sensors, durable switches and extra long battery life. If you are a gamer looking for a high-quality wireless mouse and need excellent customization options, now is a great time to buy the Razer Basilisk V3 Pro. The promotion cuts prices by 39% and has limited promotion periods. This mouse is larger, 5.11 inches long and 2 inches wide

See all articles