A reference that refers to the same cell or range on multiple sheets is called a 3-D reference. A 3-D reference is a useful and convenient way to reference several worksheets that follow the same pattern and contain the same type of data—such as when you consolidate budget data from different departments in your organization.
You can use a 3-D reference to add up budget allocations between three departments, Sales, HR, and Marketing, each on a different worksheet, by using the following 3-D reference:
=SUM(Sales:Marketing!B3)
You can even add another worksheet, and then move it into the range that your formula refers to. For example, to add a reference to cell B3 in the Facilities worksheet, move the Facilities worksheet between the Sales and HR worksheets by dragging its tab, as shown in the figure:
Because your formula contains a 3-D reference to a range of worksheet names, Sales:Marketing!B3, all worksheets in the range are part of the new calculation.
The examples below explain what happens when you insert, copy, delete, or move worksheets that are included in a 3-D reference. Each of these examples use the formula =SUM(Sheet2:Sheet6!A2:A5) to add cells A2 through A5 on worksheets 2 through 6:
-
Insert or copy — If you insert or copy worksheets between Sheet2 and Sheet6 (the endpoints in this example), Excel includes all values in cells A2 through A5 in the constituent worksheets in the calculations.
-
Delete — If you delete worksheets between Sheet2 and Sheet6, Excel removes their values from the calculation.
-
Move — If you move worksheets from between Sheet2 and Sheet6 to a location outside of the referenced worksheet range, Excel removes their values from the calculation.
-
Move an endpoint — If you move Sheet2 or Sheet6 to another location in the same workbook, Excel adjusts the calculation to include the new worksheets between them unless you reverse the order of the endpoints in the workbook. If you reverse the end points, the 3-D reference changes the endpoint worksheet. For example, you may have a reference to Sheet2:Sheet6. If you move Sheet2 so that it's after Sheet6 in the workbook, the formula will adjust to point to Sheet3:Sheet6. If you move Sheet6 in front of Sheet2, the formula will adjust to point to Sheet2:Sheet5.
-
Delete an endpoint — If you delete Sheet2 or Sheet6, Excel removes the values on that worksheet from the calculation.
Follow these steps:
-
Click the cell in which you'll enter the function.
-
Type a = (equal sign), followed by the name of the function (see the table below), and then an opening parenthesis.
-
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.
You can use the following functions in a 3-D reference:
Function | Description |
Calculates average (arithmetic mean) of numbers. | |
Calculates average (arithmetic mean) of numbers; includes text and logicals. | |
Counts cells that contain numbers. | |
Counts cells that are not empty. | |
Returns the harmonic mean of a data set of positive numbers: the reciprocal of the arithmetic mean of reciprocals. | |
Returns the kurtosis of a data set. | |
Returns the k-th largest value in a data set. For example, the fifth largest number. | |
Finds largest value in a set of values. | |
Finds largest value in a set of values; includes text and logicals. | |
Returns the median, or the number in the middle of the set of given numbers. | |
Finds smallest value in a set of values. | |
Finds smallest value in a set of values; includes text and logicals. | |
Returns the k-th percentile of values in a range, where k is in the range 0..1. Provided for compatibility with earlier versions of Excel. | |
Returns the k-th percentile of values in a range, where k is in the range 0..1, exclusive. | |
Returns the k-th percentile of values in a range, where k is in the range 0..1, inclusive. | |
Returns the rank of a value in a data set as a percentage (0..1) of the data set. Provided for compatibility with earlier versions of Excel. | |
Returns the rank of a value in a data set as a percentage (0..1, exclusive) of the data set. | |
Returns the rank of a value in a data set as a percentage (0..1, inclusive) of the data set. | |
Returns the quartile of a data set, based on percentile values from 0..1. Provided for compatibility with earlier versions of Excel. | |
Returns the quartile of a data set, based on percentile values from 0..1, exclusive. | |
Returns the quartile of a data set, based on percentile values from 0..1, inclusive. | |
Multiplies numbers. | |
Returns the rank of a number in a list of numbers: its size relative to other values in the list. Provided for compatibility with earlier versions of Excel. | |
Returns the rank of a number in a list of numbers: its size relative to other values in the list. | |
Returns the rank of a number in a list of numbers: its size relative to other values in the list. | |
Returns the skewness of a distribution. | |
Returns the k-th smallest value in a data set. | |
Calculates standard deviation based on a sample. | |
Calculates standard deviation of an entire population. | |
Calculates standard deviation based on a sample; includes text and logicals. | |
Calculates standard deviation of an entire population; includes text and logicals. | |
Returns the mean of the interior of a data set. | |
Adds numbers. | |
Estimates variance based on a sample. | |
Calculates variance for an entire population. | |
Estimates variance based on a sample; includes text and logicals. | |
Calculates variance for an entire population; includes text and logicals |
Follow these steps:
-
On the Formulas tab, click Define Name (in the Defined Names group).
-
In the New Name popup window, enter the Name for your reference. Names can be up to 255 characters in length.
-
In the Refers to list, choose the equal sign (=) and the reference, then press the Backspace key.
-
Click the tab for the first worksheet that you want to reference.
-
Hold down the Shift key and click the tab of the sheet of the reference.
-
Select the cell or range of cells that you want to reference.
Learn more
To learn more about moving a worksheet within a workbook, see Move or copy a worksheet. To learn more about creating and using defined names, see Define and use names in formulas.
Need more help?
You can always ask an expert in the Excel Tech Community or get support in the Answers community.
I know a professional Private Investigator named james who has worked for me before on something i can't disclose, he offers very legitimate services such as clearing of bad records online without being traced back to you, He clone/hack mobile phones, hack Facebook account, instagram, WhatsApp, emails, Twitter, bank accounts, Skype, FIXES CREDIT REPORTs, track calls. He also help retrieve accounts that have been taking by hackers. His charges are affordable, reliable and 100% safe. For his job well done this is my own way to show appreciation, Contact him via address ethicalhackers009@gmail.com
ReplyDeleteWhatsapp +14106350697