zaro

How Do I Add a 3D Reference in Excel?

Published in Excel 3D References 4 mins read

Adding a 3D reference in Excel allows you to reference the same cell or range across multiple worksheets simultaneously within a single formula. This is incredibly useful for consolidating data from sheets with identical layouts.

A 3D reference takes the form: Sheet1:SheetN!CellOrRange, where Sheet1 is the first worksheet, SheetN is the last worksheet in the range you want to include, and CellOrRange is the specific cell (e.g., A1) or range (e.g., B2:C10) you are referencing on each of those sheets. Excel includes all sheets between Sheet1 and SheetN in the reference.

Creating a 3D Reference in a Formula

The most common way to use a 3D reference is directly within a formula that performs an aggregation function, such as SUM, AVERAGE, COUNT, COUNTA, MAX, MIN, PRODUCT, or STDEV.

Here's how to create one manually or by point-and-click:

  1. Start your formula: In the cell where you want the result, type the function you want to use, followed by an opening parenthesis, e.g., =SUM(.
  2. Select the first worksheet: Click on the tab of the first worksheet you want to include in your 3D reference range. The sheet name will appear in the formula bar.
  3. Select the last worksheet: Hold down the SHIFT key and click on the tab of the last worksheet you want to include in your 3D reference range. Now, the formula bar should show something like =SUM('Sheet1:SheetN'!. The single quotes are automatically added if sheet names have spaces.
  4. Select the cell or range: Click on the specific cell (e.g., B5) or drag to select the range (e.g., C2:D10) on the active sheet (which should be the last sheet you selected, or any sheet within the selected range). Excel will add the cell or range address to your formula: =SUM('Sheet1:SheetN'!B5) or =SUM('Sheet1:SheetN'!C2:D10).
  5. Complete the formula: Type the closing parenthesis ) and press Enter.

Your formula now aggregates the data from the specified cell or range across all sheets from Sheet1 through SheetN.

Example

Suppose you have monthly sales data on sheets named "Jan", "Feb", "Mar", etc., each with total sales in cell C10. To get the total sales for the first quarter (Jan through Mar) on a summary sheet:

=SUM('Jan:Mar'!C10)

This single formula sums the value in cell C10 on the "Jan", "Feb", and "Mar" worksheets.

Naming a 3D Reference

While not as common as direct formula usage, you can also create a defined name that refers to a 3D range. This can make formulas more readable.

According to the reference provided, here's how you might approach defining a name for a 3D reference within the "Refers to" box:

  1. Go to the Formulas tab.
  2. In the Defined Names group, click Define Name or Name Manager and then New....
  3. In the New Name dialog box, give your name a descriptive title (e.g., Q1_Sales_Total).
  4. Click into the Refers to: box.
  5. The reference specifies: "In the Refers to box, select the equal sign (=) and the reference, then press BACKSPACE." This step seems slightly unusual in the standard process but implies starting with a reference and clearing it, perhaps to ensure you are building the reference correctly from scratch.
  6. Then, follow the steps for selecting the sheets and range as described for creating a formula:
    • Click the tab for the first worksheet to be referenced.
    • Hold down SHIFT and click the tab for the last worksheet to be referenced.
    • Select the cell or range of cells to be referenced.
  7. Excel should populate the Refers to: box with the 3D reference, like ='Sheet1:SheetN'!$A$1 (absolute references are often the default when defining names).
  8. Click OK.

Now you can use the defined name (e.g., Q1_Sales_Total) in formulas, like =SUM(Q1_Sales_Total), which would then sum the value in A1 across Sheet1 to SheetN as defined in the name.

When to Use a 3D Reference

  • Consolidating data: Ideal for summing, averaging, or counting data located in the same position on multiple sheets with identical layouts (e.g., monthly reports, departmental summaries).
  • Adding new sheets: If you add new sheets between the first and last sheets referenced in your 3D formula or named range, they are automatically included in the calculation, saving you from updating formulas.
Feature Direct Formula Defined Name
Creation Type or point-and-click Name Manager
Syntax 'Sheet1:SheetN'!Range Name replaces reference
Readability Can be long Can be more descriptive
Flexibility Easy to modify sheets Modify in Name Manager
Common Use Aggregation functions Readability/organization

Understanding 3D references is a powerful technique for efficiently managing and analyzing data spread across numerous worksheets in a workbook.