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
win11 activation key permanent 2025win11 activation key permanent 2025Mar 18, 2025 pm 05:57 PM

Article discusses sources for a permanent Windows 11 key valid until 2025, legal issues, and risks of using unofficial keys. Advises caution and legality.

win11 activation key permanent 2024win11 activation key permanent 2024Mar 18, 2025 pm 05:56 PM

Article discusses reliable sources for permanent Windows 11 activation keys in 2024, legal implications of third-party keys, and risks of using unofficial keys.

Acer PD163Q Dual Portable Monitor Review: I Really Wanted to Love ThisAcer PD163Q Dual Portable Monitor Review: I Really Wanted to Love ThisMar 18, 2025 am 03:04 AM

The Acer PD163Q Dual Portable Monitor: A Connectivity Nightmare I had high hopes for the Acer PD163Q. The concept of dual portable displays, conveniently connecting via a single cable, was incredibly appealing. Unfortunately, this alluring idea quic

Top 3 Windows 11 Gaming Features That Outshine Windows 10Top 3 Windows 11 Gaming Features That Outshine Windows 10Mar 16, 2025 am 12:17 AM

Upgrade to Windows 11: Enhance Your PC Gaming Experience Windows 11 offers exciting new gaming features that significantly improve your PC gaming experience. This upgrade is worth considering for any PC gamer moving from Windows 10. Auto HDR: Eleva

The Best Monitor Light Bars of 2025The Best Monitor Light Bars of 2025Mar 08, 2025 am 03:02 AM

Reduce eye strain and brighten your workspace with a monitor light bar! These handy gadgets adjust brightness and color temperature, some even offering auto-dimming. This updated review (03/04/2025) highlights top picks across various needs. BenQ

Mozilla Thunderbird 136 Is Here, Switching to Monthly Updates by DefaultMozilla Thunderbird 136 Is Here, Switching to Monthly Updates by DefaultMar 07, 2025 am 01:19 AM

Firefox 136 and Thunderbird 136: Enhanced Security and Performance The latest releases of Firefox and Thunderbird bring significant improvements in video playback smoothness, browsing security, and overall user experience. Let's delve into the key u

How to Create a Dynamic Table of Contents in ExcelHow to Create a Dynamic Table of Contents in ExcelMar 24, 2025 am 08:01 AM

A table of contents is a total game-changer when working with large files – it keeps everything organized and easy to navigate. Unfortunately, unlike Word, Microsoft Excel doesn’t have a simple “Table of Contents” button that adds t

This Wild Ultra-Wide Alienware Monitor is $300 Off TodayThis Wild Ultra-Wide Alienware Monitor is $300 Off TodayMar 13, 2025 pm 12:21 PM

Alienware AW3225QF: The best curved 4K display, is it worth buying? The Alienware AW3225QF is known as the best curved 4K display, and its powerful performance is unquestionable. The fast response time, stunning HDR effects and unlimited contrast, coupled with excellent color performance, are the advantages of this monitor. Although it is mainly aimed at gamers, if you can accept the shortcomings of OLED, it is also suitable for office workers who pursue high efficiency. Widescreen monitors are not only loved by gamers, but also favored by users who value productivity improvement. They are great for work and enhance anyone’s desktop experience. This Alienware monitor is usually expensive, but is currently enjoying it

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools