Structured reference syntax examples

Structured references are used to refer toExcel tablesin formulas. The syntax for structured references allows you to precisely target different parts of the table. Let’s walk through some examples. All these formulas refer to Table1 at the left. Since the formulas are outside the table, they all include the table name. The formulas in column I are actually entered as text. The most basic syntax is the table name only....

April 14, 2025 · 2 min · 258 words · Travis White

Structured references inside a table

To illustrate, let’s look at some examples. The formula to calculate the Total in this table is just Quantity times Price. Notice when I point and click to enter the formula, Excel automatically builds the structured reference. The table name is not necessary in this case since it’s understood to be the current table. What if we need to reference another table from inside the current table? In that case, we’ll need to add the table name....

April 14, 2025 · 1 min · 159 words · Brian Lewis

Student class enrollment with table

There are many ways to approach this problem. The formula in G6 relies on theCOUNTIF functionto count the presence of a given class (i.e. “math”, art", etc.) When COUNTIF finds a class in the range, it returns a positive number . The IF function will evaluate any positive result as TRUE and return “x”. More than one condition can be tested by nesting IF functions. COUNTIF can be used to count…

April 14, 2025 · 1 min · 71 words · Joseph Douglas

Subscription Confirmed

Thank you for confirming your email.

April 14, 2025 · 1 min · 6 words · Caitlyn Stewart

SUBSTITUTE Function

Use the SUBSTITUTE function when you want to replace text based on matching, not position. Optionally, you’re able to specify the instance of found text to replace (i.e. first instance, second instance, etc.). To replace one or more characters with nothing, enter anempty string(""). However, SUBSTITUTE can be nested inside of itself to accomplish the same thing. Related functions Use theREPLACE functionto replace text at a known location in a text string....

April 14, 2025 · 1 min · 97 words · Melissa Brown

Subtotal by invoice number

Criteria can be applied to dates, numbers, and text.

April 14, 2025 · 1 min · 9 words · James Griffin

SUBTOTAL Function

Regardless of the calculation performed, SUBTOTAL returns singleaggregate resultfrom a set of data. Finally, while SUBTOTAL is good at ignoring things, itdoes notignore errors. If you need capability, see theAGGREGATE function. Note: the SUBTOTAL function automatically ignores other SUBTOTAL formulas that exist in references to prevent double-counting. There are 11 calculations total, each with two options, as seen below. Notice these values are “paired” (e.g. 1-101, 2-102, 3-103, and so on)....

April 14, 2025 · 1 min · 159 words · Danielle Cooper

Subtotal invoices by age

This problem can be solved with the SUMIFS function and the COUNTIFS function, as explained below. For convenience,age(E5:E16) andamount(D5:D16) arenamed ranges. SUMIFS function TheSUMIFS functionis designed to sum cells that meet multiple criteria. SUMIFS takes at least three arguments like this: Noticesum_rangeappears first. SUMIFS is in agroup of eight functionsthat share this syntax. The difference is that COUNTIFS does not have asum_rangeargument. Criteria can be applied to dates, numbers, and text....

April 14, 2025 · 1 min · 71 words · Dale Hill

Sum across multiple worksheets with criteria

The problem is that SUMIFS, COUNTIFS, AVERAGEIFS, etc. are in agroup of functionsthat do not support 3D references. The formula in F5 is: Notice we areconcatenatingthe sheet names to the ranges we need to work with. To coerce these values into valid cell references we use theINDIRECT function. INDIRECT converts the text values to valid references and returns the result to the SUMIF function for therangeandsum_rangearguments. Because thenamed range"sheets" containsthreevalues, SUMIF actually runsthreetimes, one for each reference....

April 14, 2025 · 1 min · 140 words · Alyssa Adams

Sum bottom n values

This problem can be solved with the SMALL function together with the SUMPRODUCT function, as explained below. For convenience only, the range B5:B16 isnamed"data". SMALL function TheSMALL functionis designed to return thenthsmallest value in a range. For example: Normally, SMALL returns just one value. However, if you supply anarray constant(e.g. Variable n To set up a formula wherenis a variable in another cell, you canconcatenateinside INDIRECT. In fact, with SEQUENCE there is really no need to use array constant either....

April 14, 2025 · 1 min · 205 words · Brenda Edwards

Sum by fiscal year

The first approach is a self-contained formula based on the SUMPRODUCT function. The second method uses SUMIF with column D as a helper column. Either approach will work correctly, and the best option depends on personal preference. The formula in cell D5 is: This formula isexplained in detail here. Finally, SUMPRODUCT returns the sum of all items in the array, 7700. In contrast, the SUMPRODUCT option is self-contained. We can’t build a similar self-contained formula with SUMIF because ofinnate limitations of the function....

April 14, 2025 · 1 min · 105 words · David Fisher

Sum by group

The worksheet shown contains two different approaches. In the range F5:G8, we have created a summary table to summarize counts by color. The article below explains both approaches. Note: both formulas below usefull column references(e.g. B:B, C:C). The solution relies on theSUMIF function. the cell above). If the two values match, we return anempty string(""). Note: this formula depends on data being sorted by group to make it get sensible results....

April 14, 2025 · 1 min · 133 words · Hannah Trujillo

Sum by month

The article below explains two approaches. One approach is based on theSUMIFS function, which can sum numeric values based on multiple criteria. The second approach is based on theSUMPRODUCT function, which allows a more flexible solution. For convenience, both solutions use thenamed rangesamount(C5:C16) anddate(B5:B16). See below for more information. SUMIFS solution TheSUMIFS functioncan sum values in ranges based on multiple criteria. Notice we need toconcatenatethe dates tological operators, as required by the SUMIFS function....

April 14, 2025 · 1 min · 131 words · Edward Miles