This short tutorial explains what Excel 3-D reference is and how you can use it to reference the same cell or a range of cells in all selected sheets. You will also learn how to make a 3-D formula to aggregate data in different worksheets, for example sum the same cell from multiple sheets with a single formula. Show
One of Excel's greatest cell reference features is a 3D reference, or dimensional reference as it is also known. A 3D reference in Excel refers to the same cell or range of cells on multiple worksheets. It is a very convenient and fast way to calculate data across several worksheets with the same structure, and it may be a good alternative to the Excel Consolidate feature. This may sound a bit vague, but don't worry, the following examples will make things clearer. What is a 3D reference in Excel?As noted above, an Excel 3D reference lets you refer to the same cell or a range of cells in several worksheets. In other words, it references not only a range of cells, but also a range of worksheet names. The key point is that all of the referenced sheets should have the same pattern and the same data type. Please consider the following example. Supposing you have monthly sales reports in 4 different sheets: What you are looking for is finding out the grand total, i.e. adding up the sub-totals in four monthly sheets. The most obvious solution that comes to mind is add up the sub-total cells from all the worksheets in the usual way:
But what if you have 12 sheets for the
whole year, or even more sheets for several years? This would be quite a lot of work. Instead, you can use the SUM function with a 3D reference to sum across sheets: This SUM formula performs the same calculations as the longer formula above, i.e. adds up the values in cell B6 in all the sheets between the two boundary worksheets that you specify,
Jan and Apr in this example: Tip. If you intend to copy your 3-D formula to several cells and you don't want the cell references to change, you can lock them by adding the $ sign, i.e. by using
absolute cells references like You don't even need to calculate a sub-total in each monthly sheet - include the range of cells to be calculated directly in your 3D formula:
If you want to find out the sales total for each individual product, then make a summary table in which the items appear exactly in the same order as in monthly sheets, and input the following 3-D formula in the top-most cell, B2 in this example:
Remember to use a relative cell reference with no $ sign, so the formula gets adjusted for other cells when copied down the column: Based on the above examples, let's make a generic Excel's 3D reference and 3D formula. Excel 3-D reference First_sheet:Last_sheet!cell or Excel 3-D formula =Function(First_sheet:Last_sheet!cell) or When using such 3-D formulas in Excel, all worksheets between First_sheet and Last_sheet are included in calculations. Note. Not all Excel functions support 3D references, here is the complete list of functions that do. How to create a 3-D reference in ExcelTo make a formula with a 3D reference, perform the following steps:
How to include a new sheet in an Excel 3D formula3D references in Excel are extendable. What it means is that you can create a 3-D reference at some point, then insert a new worksheet, and move it into the range that your 3-D formula refers to. The following example provides full details. Supposing it's only the beginning of the year and you have data for the first few months only. However, a new sheet is likely to be added each month and you'd want to have those new sheets included in your calculations as they are created. For this, create an empty sheet, say Dec, and make it the last sheet in your 3D reference:
When a new sheet is inserted in a workbook, simply
move it anywhere between Jan and Dec: That's it! Because your SUM formula contains a 3-D reference, it will add up the supplied range of cells (B2:B5) in all the worksheets within the specified range of worksheet names (Jan:Dec!). Just remember that all of the sheets included in an Excel 3D reference should have the same data layout and the same data type. How to create a name for an Excel 3-D referenceTo make it even easier for you to use 3D formulas in Excel, you can create a defined name for your 3D reference.
And now, to sum the numbers in column B in all the worksheets from Jan through Apr, you just use this simple formula:
Excel functions supporting 3-D referencesHere is a list of Excel functions that allow using 3-D references:
How Excel 3-D references change when you insert, move or delete sheetsBecause each 3D reference in Excel is defined by the starting and ending sheet, let's call them the 3-D reference endpoints, changing the endpoints changes the reference, and consequently changes your 3D formula. And now, let's see exactly what happens when you delete or move the 3-D reference endpoints, or insert, delete or move sheets within them. Because nearly everything is easier to understand from an example, further explanations will be based on the following 3-D formula that we've created earlier: Insert, move or copy sheets within the endpoints. If you insert, copy or move worksheets between the 3D reference endpoints (Jan and Apr sheets in this example), the referenced range (cells B2 through B5) in all newly added sheets will be included in the calculations. Delete sheets, or move sheets outside of the endpoints. When you delete any of the worksheets between the endpoints, or move sheets outside of the endpoints, such sheets are excluded from your 3D formula. Move an endpoint. If you move either endpoint (Jan or Apr sheet, or both) to a new location within the same workbook, Excel will adjust your 3-D formula to include the new sheets that fall between the endpoints, and exclude those that have fallen out of the endpoints. Reverse the endpoints. Reversing the Excel 3D reference endpoints results in changing one of the endpoint sheets. For example, if you move the starting sheet (Jan) after the ending sheet (Apr), the Jan sheet will be removed from the 3-D reference, which will change to Feb:Apr!B2:B5. Moving the ending sheet (Apr) before the starting sheet (Jan) will have a similar effect. In this case, the Apr sheet will get excluded from the 3D reference that will change to Jan:Mar!B2:B5. Please note that restoring the initial order of the endpoints won't restore the original 3D reference. In the above example, even if we move the Jan sheet back to the first position, the 3D reference will remain Feb:Apr!B2:B5, and you will have to edit it manually to include Jan in your calculations. Delete an endpoint. When you delete one of the endpoint sheets, it is removed from the 3D reference, and the deleted endpoint changes in the following way:
This is how you create and use 3-D references in Excel. As you see, it's a very convenient and fast way to calculate the same ranges in more than one sheet. While updating long formulas referencing different sheets might be tedious, an Excel 3-D formula requires updating just a couple of references, or you can simply insert new sheets between the 3D reference endpoints without changing the formula. That's all for today. I thank you for reading and hope to see you on our blog next week! You may also be interested inHow do you enter a formula using relative cell references that multiplies cell c4 by cell d4?Use cell references in a formula. Click the cell in which you want to enter the formula.. In the formula bar. , type = (equal sign).. Do one of the following, select the cell that contains the value you want or type its cell reference. ... . Press Enter.. How do you do a relative cell reference in Excel?By default, every cell in Excel has a relative reference. In relative references, type “=A1+A2” in cell A3, copy and paste the formula in cell B3, and the formula automatically changes to “=B1+B2.” In absolute references, the cell address does not change when the formula is copied.
How do you reference one cell to multiple cells in Excel?Click the tab for the first worksheet that you want to reference. Hold down the Shift key then click the tab for the last worksheet that you want to reference. Select the cell or range of cells that you want to reference. Complete the formula, and then press Enter.
How do you multiply relative cell references?To create and copy a formula using relative references:. Select the cell that will contain the formula. ... . Enter the formula to calculate the desired value. ... . Press Enter on your keyboard. ... . Locate the fill handle in the bottom-right corner of the desired cell. ... . Click and drag the fill handle over the cells you want to fill.. |