Excel for Microsoft 365 Excel for the web Excel 2021 Excel 2019 Excel 2016 Excel 2013 Excel 2010 Excel 2007 More…Less
A cell reference refers to a cell or a range of cells on a worksheet and can be used in a formula so that Microsoft Office Excel can find the values or data that you want that formula to calculate.
In one or several formulas, you can use a cell reference to refer to:
-
Data from one or more contiguous cells on the worksheet.
-
Data contained in different areas of a worksheet.
-
Data on other worksheets in the same workbook.
For example:
This formula: |
Refers to: |
And Returns: |
---|---|---|
=C2 |
Cell C2 |
The value in cell C2. |
=A1:F4 |
Cells A1 through F4 |
The values in all cells, but you must press Ctrl+Shift+Enter after you type in your formula. Note: This functionality doesn’t work in Excel for the web. |
=Asset-Liability |
The cells named Asset and Liability |
The value in the cell named Liability subtracted from the value in the cell named Asset. |
{=Week1+Week2} |
The cell ranges named Week1 and Week2 |
The sum of the values of the cell ranges named Week1 and Week 2 as an array formula. |
=Sheet2!B2 |
Cell B2 on Sheet2 |
The value in cell B2 on Sheet2. |
-
Click the cell in which you want to enter the formula.
-
In the formula bar , type = (equal sign).
-
Do one of the following:
-
Reference one or more cells To create a reference, select a cell or range of cells on the same worksheet.
You can drag the border of the cell selection to move the selection, or drag the corner of the border to expand the selection.
-
Reference a defined name To create a reference to a defined name, do one of the following:
-
Type the name.
-
Press F3, select the name in the Paste name box, and then click OK.
Note: If there is no square corner on a color-coded border, the reference is to a named range.
-
-
-
Do one of the following:
-
If you are creating a reference in a single cell, press Enter.
-
If you are creating a reference in an array formula (such A1:G4), press Ctrl+Shift+Enter.
The reference can be a single cell or a range of cells, and the array formula can be one that calculates single or multiple results.
Note: If you have a current version of Microsoft 365, then you can simply enter the formula in the top-left-cell of the output range, then press ENTER to confirm the formula as a dynamic array formula. Otherwise, the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER to confirm it. Excel inserts curly brackets at the beginning and end of the formula for you. For more information on array formulas, see Guidelines and examples of array formulas.
-
You can refer to cells that are on other worksheets in the same workbook by prepending the name of the worksheet followed by an exclamation point (!) to the start of the cell reference. In the following example, the worksheet function named AVERAGE calculates the average value for the range B1:B10 on the worksheet named Marketing in the same workbook.
1. Refers to the worksheet named Marketing
2. Refers to the range of cells between B1 and B10, inclusively
3. Separates the worksheet reference from the cell range reference
-
Click the cell in which you want to enter the formula.
-
In the formula bar , type = (equal sign) and the formula you want to use.
-
Click the tab for the worksheet to be referenced.
-
Select the cell or range of cells to be referenced.
Note: If the name of the other worksheet contains nonalphabetical characters, you must enclose the name (or the path) within single quotation marks (‘).
Alternatively, you can copy and paste a cell reference and then use the Link Cells command to create a cell reference. You can use this command to:
-
Easily display important information in a more prominent position. Let’s say that you have a workbook that contains many worksheets, and on each worksheet is a cell that displays summary information about the other cells on that worksheet. To make these summary cells more prominent, you can create a cell reference to them on the first worksheet of the workbook, which enables you to see summary information about the whole workbook on the first worksheet.
-
Make it easier to create cell references between worksheets and workbooks. The Link Cells command automatically pastes the correct syntax for you.
-
Click the cell that contains the data you want to link to.
-
Press Ctrl+C, or go to the Home tab, and in the Clipboard group, click Copy .
-
Press Ctrl+V, or go to the Home tab, in the Clipboard group, click Paste .
By default, the Paste Options button appears when you paste copied data.
-
Click the Paste Options button, and then click Paste Link .
-
Double-click the cell that contains the formula that you want to change. Excel highlights each cell or range of cells referenced by the formula with a different color.
-
Do one of the following:
-
To move a cell or range reference to a different cell or range, drag the color-coded border of the cell or range to the new cell or range.
-
To include more or fewer cells in a reference, drag a corner of the border.
-
In the formula bar , select the reference in the formula, and then type a new reference.
-
Press F3, select the name in the Paste name box, and then click OK.
-
-
Press Enter, or, for an array formula, press Ctrl+Shift+Enter.
Note: If you have a current version of Microsoft 365, then you can simply enter the formula in the top-left-cell of the output range, then press ENTER to confirm the formula as a dynamic array formula. Otherwise, the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER to confirm it. Excel inserts curly brackets at the beginning and end of the formula for you. For more information on array formulas, see Guidelines and examples of array formulas.
Frequently, if you define a name to a cell reference after you enter a cell reference in a formula, you may want to update the existing cell references to the defined names.
-
Do one of the following:
-
Select the range of cells that contains formulas in which you want to replace cell references with defined names.
-
Select a single, empty cell to change the references to names in all formulas on the worksheet.
-
-
On the Formulas tab, in the Defined Names group, click the arrow next to Define Name, and then click Apply Names.
-
In the Apply names box, click one or more names, and then click OK.
-
Select the cell that contains the formula.
-
In the formula bar , select the reference that you want to change.
-
Press F4 to switch between the reference types.
For more information about the different type of cell references, see Overview of formulas.
-
Click the cell in which you want to enter the formula.
-
In the formula bar , type = (equal sign).
-
Select a cell or range of cells on the same worksheet. You can drag the border of the cell selection to move the selection, or drag the corner of the border to expand the selection.
-
Do one of the following:
-
If you are creating a reference in a single cell, press Enter.
-
If you are creating a reference in an array formula (such A1:G4), press Ctrl+Shift+Enter.
The reference can be a single cell or a range of cells, and the array formula can be one that calculates single or multiple results.
Note: If you have a current version of Microsoft 365, then you can simply enter the formula in the top-left-cell of the output range, then press ENTER to confirm the formula as a dynamic array formula. Otherwise, the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER to confirm it. Excel inserts curly brackets at the beginning and end of the formula for you. For more information on array formulas, see Guidelines and examples of array formulas.
-
You can refer to cells that are on other worksheets in the same workbook by prepending the name of the worksheet followed by an exclamation point (!) to the start of the cell reference. In the following example, the worksheet function named AVERAGE calculates the average value for the range B1:B10 on the worksheet named Marketing in the same workbook.
1. Refers to the worksheet named Marketing
2. Refers to the range of cells between B1 and B10, inclusively
3. Separates the worksheet reference from the cell range reference
-
Click the cell in which you want to enter the formula.
-
In the formula bar , type = (equal sign) and the formula you want to use.
-
Click the tab for the worksheet to be referenced.
-
Select the cell or range of cells to be referenced.
Note: If the name of the other worksheet contains nonalphabetical characters, you must enclose the name (or the path) within single quotation marks (‘).
-
Double-click the cell that contains the formula that you want to change. Excel highlights each cell or range of cells referenced by the formula with a different color.
-
Do one of the following:
-
To move a cell or range reference to a different cell or range, drag the color-coded border of the cell or range to the new cell or range.
-
To include more or fewer cells in a reference, drag a corner of the border.
-
In the formula bar , select the reference in the formula, and then type a new reference.
-
-
Press Enter, or, for an array formula, press Ctrl+Shift+Enter.
Note: If you have a current version of Microsoft 365, then you can simply enter the formula in the top-left-cell of the output range, then press ENTER to confirm the formula as a dynamic array formula. Otherwise, the formula must be entered as a legacy array formula by first selecting the output range, entering the formula in the top-left-cell of the output range, and then pressing CTRL+SHIFT+ENTER to confirm it. Excel inserts curly brackets at the beginning and end of the formula for you. For more information on array formulas, see Guidelines and examples of array formulas.
-
Select the cell that contains the formula.
-
In the formula bar , select the reference that you want to change.
-
Press F4 to switch between the reference types.
For more information about the different type of cell references, see Overview of formulas.
Need more help?
You can always ask an expert in the Excel Tech Community or get support in the Answers community.
Need more help?
Microsoft Excel, sometimes known as MS Excel, is a potent spreadsheet programme. In Excel, each worksheet consists of a number of cells that are made up of rows and columns. Each cell has a unique reference, which enables users to quickly access and address the required cell (or cells) within the functions. In Excel, cell references are crucial, particularly when working with huge data sets in functions and formulas.
This article covers a quick overview of Excel Cell References. The various sorts of cell references that Excel offers and the detailed instructions for using each one are also covered in the article.
What is a Cell Reference?
An Excel cell reference, also known as a cell address, is a mechanism that defines a cell on a worksheet by combining a column letter and a row number. We can refer to any cell (in Excel formulas) in the worksheet by using the cell references.
For example:
Here we refer to the cell in column A & row 2 by A2 & cell in column A & row 5 by A5. You can make use of such notations in any of the formulas or copy the value of one cell to another cell (by using = A2 or = A5).
Types of Cell Reference in Excel
Understanding various cell references primarily makes it easier for us to use Excel formulas and avoid unexpected formula errors. When copying and pasting Excel formulas, this is quite useful. Based on various use situations, Excel offers three main types of cell references, including:
- Relative Cell Reference
- Absolute Cell Reference
- Mixed Cell Reference
1. Relative Cell Reference
In Excel, a relative cell reference is used by default. Excel uses a relative reference whenever we insert a cell reference or a range within a formula. The relative references, which commonly reflect the combination of column name and row number, are used normally with the associated cell references. There is no dollar ($) sign in the relative reference for the cell.
How to Use Relative Cell References in Excel
Let’s see how to use the Relative Cell references through examples,
#Example 1:
If you refer to cell B1 from cell E1, actually you would be referring to a cell that is 3 columns to the left (E-B = 3) within the same row number 1.
When it is copied to other locations present in a worksheet, the relative reference for that location will be changed automatically. (because relative cell reference describes offset to another cell rather than a fixed address as In our example, offset is : 3 columns left in the same row).
#Example 2:
If you copy the formula = C2 / A2 from the cell “E2” to “E3”, the formula in E3 will automatically become =C3/A3.
When to Use Relative Cell References in Excel
When you need to develop a formula for a set of cells and the formula needs to make a reference to a relative cell reference, relative cell references come in handy.
When this occurs, you can create the formula in one cell and copy it before pasting it into every other cell.
2. Absolute Cell Reference
When copying or using AutoFill, there are times when the cell reference must stay the same. A column and/or row reference is kept constant using dollar signs. So, to get an absolute reference from a relative, we can use the dollar sign ($) characters.
To refer to an actual fixed location on a worksheet whenever copying is done, we use absolute reference. The reference here is locked such that rows and columns do not shift when copied.
How to Use Absolute Cell References in Excel
Below is an example depicting how to use Absolute Cell References in Excel.
#Example:
When we fix both row & column – Say if we want to lock row 2 & column A, we will use $A$2 as:
G2 = C2/$A$2, when copied to G3, G3 becomes = C3/$A$2
Note: C3 is 4 columns left to G3 in the same row.
Here, original cell reference A2 is maintained whenever we copy G2 to any of the cells. So I3 = E3/$A$2 because E3 comes from the relative reference (4 columns left to the current one) & /$A$2 comes from the absolute reference.
Therefore, I3 = E3//$A$2 = 12/10 = 1.2
What Does the Dollar ($) Sign Do?
When the row and column numbers are preceded by the dollar symbol ($), it becomes absolute (i.e., stops the row and column number from changing when copied to other cells). Dollar ($) before the row fixes the row & before the column fixes the column.
When to Use Absolute Cell References in Excel
When you don’t want the cell reference to alter when you replicate formulas, absolute cell references come in handy. This can be the situation if you have to use a fixed value in the formula.
3. Mixed Cell Reference
An absolute column and relative row, or an absolute row and relative column, is a mixed cell reference. You get an absolute column or absolute row when you individually put the $ before the column letter or before the row number. Example: $B8 is relative to row 8 but absolute for column B, and B$8 is absolute for row 1 but relative for column A.
Here, the Dollar ($) before the row number fixes/locks the row & before the column name fixes/locks the column.
#Example:
When we fix the only row: If we have G2 = C2/A$2 then :
We used $ before the row number, so we are locking the only row here. When G2 is copied to G3, G3 = C3/A$2 (not C3/A3) because the row has been fixed already.
Here, whenever we copy G2 to any other cell, always the divisor will refer to a fixed row 2 (column vary according to the concept of relative reference)
So, when G2 is copied to I3, I3 = E3/C$2 because E3 comes from the relative reference (4 columns left to the current one) & C$2 comes from the absolute reference for row & relative reference for Column (6 Columns left to the current one)
Some Other Ways of Using Cell References With Examples
Now that we are familiar with the basics of using Cell References in Excel, let’s see some other ways of using cell references.
Relative and Absolute Cell References for Calculating Dates
We can use relative and absolute cell references to calculate dates.
Example: To Calculate the Date of Delivery online from the given date of the order placed & no of days it will take to deliver :
Here, We calculate the Date of Delivery by = Order Date + No of days to deliver. We used Relative cell reference so that individual product delivery dates can be calculated.
Absolute cell references for calculating dates :
Example: To Calculate the Date of Birth When the age is known is a number of days using Current date can be done by making use of absolute reference.
Here, We calculate DOB by = Current Date – Age in days. The Current date is contained in the cell E2 & in subtraction, we fixed that date to subtract from the days.
Whole Column Reference
You will want to refer to all the cells inside a particular column when operating with an Excel worksheet with any number of rows. Simply type a column letter twice with a colon in between to refer to the entire column B, for example, B:B.
Example: You may want to find the sum of a column of data in certain cases. While you can do this with a regular cell range, such as =SUM(B1:B10), you will need to change the cell range if your spreadsheet grows in size.
Excel, on the other hand, has a cell range that does not require the row number and takes all the cells in the column in action. If you wanted to find the sum of all the values in column B, for example, you would type =SUM (B:B). You can add as much data as you want to your spreadsheet without having to change your cell ranges if you use this type of cell range.
Whole Row Reference
You will want to refer to all the cells inside a particular row when operating with an Excel worksheet with any number of columns. Simply type a row number twice with a colon in between to refer to the entire row, for example, 2:2.
Example: You may want to find the sum of a row of data in certain cases. While you can do this with a regular cell range, such as =SUM(A2 : J2), you will need to change the cell range if your spreadsheet grows in size.
Excel, on the other hand, has a cell range that does not require the column letter and takes all the cells in the row in action. If you wanted to find the sum of all the values in row 2, for example, you would type =SUM (2:2). You can add as much data as you want to your spreadsheet without having to change your cell ranges if you use this type of cell range.
Refer to an Entire Column, Excluding the First Few Rows
To refer to the entire column excluding the first few rows, you need to specify the range as we give in a normal fashion. We know that the Excel worksheets can have only 1,048,576 rows. (To check this, go to an empty cell & press: Ctrl + Down arrow Key)
So, we can do the sum of the entire column B except for the first 5 rows by = SUM(B6:B1048576).
Using a Mixed Entire Column Reference in Excel
You can also create a mixed entire-column reference, say for example $B:B. But, practically, it is difficult to find a situation where it would be used.
Example :
How to switch between Absolute, Relative, and Mixed References
The $ sign can be manually typed in an Excel formula to adjust a relative cell relation to absolute or mixed. You can also speed things up by pressing the F4 key. You must be in formula edit mode to use the F4 shortcut. The steps are :
Firstly, choose the cell that contains the formula. Then, by pressing the F2 key or double-clicking the cell, you can enter Edit mode. Select the cell reference in which you want to make changes. Then, switch between four-cell reference forms by pressing F4.
Example: When you select a cell having only relative reference (i.e., no $ sign), say = B2:
- The first time when you press F4, it becomes =$B$2
- The second time when you press F4, it becomes =B$2
- The third time when you press F4, it becomes=$B2
- The fourth time when you press F4, it becomes back to the relative reference=B2
B2 –Press F4–> =$B$2 –Press F4–> =B$2 –Press F4–> = =$B2 –Press F4–> =B2
So, using F4, you do not require to manually type the $ symbol.
Important Points to Remember
- One of the crucial components for Excel functions or formulas is the cell reference.
- Excel formulas that employ relative cell references automatically change the references to match the correct row and column.
- When copying formulas into non-relative cells, absolute cell references are advised. Excel keeps the absolute cell references constant.
- According to the specifications, a mixed reference only locks one of the references, either the row or the column. Not both are locked.
FAQs on Excel Cell References
1. What are the 3 types of cell references in Excel?
Ans: In Excel, we can use one of three types of cell references:
- Relative Cell References
- Absolute Cell References
- Mixed Cell References
Cell References in Excel (Table of Contents)
- Introduction to Cell References in Excel
- How to Apply Cell Reference in Excel?
Introduction to Cell References in Excel
All of you would have seen the $ sign in Excel formulas and Functions. The $ sign confuses a lot of people, but it is very easy to understand and use. The $ sign serves only one purpose in the excel formula. It tells excel whether or not to change the cell reference when the excel formula is copied or moved to another cell.
When writing a cell reference for a single cell, we can use any type of cell reference, but when we want to copy the cell to some other cells, it becomes important to use the correct cell references.
What is Cell Reference?
A cell reference is nothing but the Address of the cell used in the excel formula. In Excel, there are two types of cell references. One is Absolute reference, and the other is Relative reference.
What is Relative Cell Reference?
The cell reference without a $ sign will change every time it is copied to another cell or moved to another cell, and it is known as Relative cell reference.
What is an Absolute Cell Reference?
The cell references in which there is a $ sign before the Row or Column coordinates are Absolute references. In excel, we can refer to one and the same cell in four different ways, for example, A1, $A$1, $A1, and A$1. We will look at each type with examples in this article.
How to Apply Cell Reference in Excel?
Applying Cell References in Excel is very simple and easy. Let’s understand how to reference cells in Excel with some examples.
When a formula with relative cell reference is copied to another cell, the cell references in the formula changes based on the position of row and columns.
You can download this Cell References Excel Template here – Cell References Excel Template
Example #1 – Excel Relative Cell Reference (without $ sign)
Suppose you have sales details for the month of January, as given in the below screenshot.
There is Quantity sold in column C and Rate per KG in Column D. So to arrive at the Total Amount, you will insert the formula in Cell E2 = C2*D2.
After inserting the formula in E2, press the Enter key.
You will need to copy this formula in another row with the same column, say, E2; it will automatically change the cell reference from A1 to A2 because Excel assumes that you are multiplying the value in column C with the value in Column D.
Now drag the same formula in cell E2 to E17.
So as you can see, when using the relative cell reference, you can move the formula in a cell to another cell, and the cell reference will change automatically.
Example #2 – Excel Relative Cell Reference (Without $ Sign)
We already know that the absolute cell reference is a cell address with a $ sign in a row or column coordinates. The $ sign locks the cell so that when you copy the formula to another cell, the cell reference doesn’t change. So using $ in cell reference allows you to copy the formula without changing cell reference.
Suppose in the above example, the Rate per KG is given only in one cell, as shown in the below screenshot. Thus, the Rate per KG is given only in one cell instead of providing in each line.
So when we insert the formula in cell D2, we need to make sure that we lock the cell H2, which is the Rate Per KG for Apple. So the formula to enter in cell D2 =$G$2*C2.
After applying the above formula, the output is as shown below.
Now when you copy the formula to the next row, say cell D3. The cell reference for G2 will not change as we locked the cell reference with a $ sign. However, the cell reference for C2 will change to C3 as we have not locked the cell reference for Column C.
So now you can copy the formula to the below rows till the end of the data.
As you can see, when you lock the cell in cell reference in a formula, no matter where you copy or move the formula in excel, the cell reference in the formula remains the same. In the above formula, we saw the case where we lock an entire cell H2. Now there can be two more scenarios where we can use absolute reference in a better way.
- Lock the row – Refer to Example 3 below
- Lock the column – Refer to Example 4 below
As we already know in the cell reference, the columns are represented by words, and rows are represented by numbers. In the absolute cell reference, we have the option either to lock the row or column.
Example #3 – Copying the Formula
We will take a similar example of Example 2.
After applying the above formula, the output is shown below.
In this case, we are only locking row 2, so when you copy the formula to the below row, the row reference will not change as well as column reference will not change.
But when you copy the formula to the right, the column reference of H will change to I keeping row 2 as locked.
After applying the above formula, the output is shown as below.
Example #4 – Locking the Column
We will take a similar example of Example 2, but now we have the rate per KG for an apple in each line of Column G.
After applying the above formula, the output is shown below.
In this case, we are only locking column H, so when you copy the formula to the below row, the row reference will change, but the column reference will not change.
But when you copy the formula to the right, the column reference of H will not change, and the row reference of 2 will also not change, but the reference of C2 will change to D2 because it is not locked at all.
After applying the above formula, the output is shown below.
Things to Remember About Cell Reference in Excel
- The key which helps in inserting a $ sign in the formula is F4. When you press F4 once, it locks the entire cell; when you press twice, it locks the row only, and when you press F4 thrice, it locks the column only.
- There is one more reference style in excel, which refers to a cell as R1C1, where numbers identify both rows and columns.
- Don’t use too many row/column references in the excel worksheet, as it may slow down your computer.
- We can also use a mix of Absolute and Relative cell references in one formula depending on the situation.
Recommended Articles
This is a guide to Cell Reference in Excel. Here we discuss how to use Cell Reference in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –
- Count Cells with Text in Excel
- 3D Cell Reference in Excel
- Excel Cell Reference
- New Line in Excel Cell
To be able to reference cells and ranges is what makes any spreadsheet tool work. And Excel is the best and most powerful one out there.
In this tutorial, I will cover all that you need to know about how to reference cells and ranges in Excel. Apart from the basic referencing on the same sheet, the major part of this tutorial would be about how to reference another sheet or workbook in Excel.
While there is not much difference in how it works, when you reference another sheet in the same file or reference a completely separate Excel file, the format of that reference changes a bit.
Also, there are some important things you need to keep in mind when referencing another sheet or other external files.
But worry… nothing too crazy!
By the time you’re done with this tutorial, you will know all there is to know about referencing cells and ranges in Excel (be in the same workbook or another workbook).
Let’s get started!
Referencing a Cell in the Same Sheet
This is the most basic level of referencing where you refer to a cell on the same sheet.
For example, if I am in cell B1 and I want to refer to cell A1, the format would be:
=A1
When you do this, the value in the cell where you use this reference will be the same as that in cell A1. And in case you make any changes in cell A1, these would be reflected in the cell where you have used this reference.
Referencing a Cell in the Another Sheet
If you have to reference another sheet in the same workbook, you need to use the below format:
Sheet_name!Cell_address
First, you have the sheet name followed by an exclamation sign which is followed by the cell reference.
So if you need to refer to cell A1 in Sheet 1, you need to use the following reference:
=Sheet1!A1
And if you want to refer to a range of cells in another sheet, you need to use the following format:
Sheet_name!First_cell:Last_cell
So, if you want to refer to the range A1:C10 in another sheet in the same workbook, you need to use the below reference:
=Sheet1!A1:C10
Note that I have only shown you the reference to the cell or the range. In reality, you would be using these in formulas. But the format of the references mentioned above are going to remain the same
In many cases, the worksheet you refer to would have multiple words in the name. For example, it could be Project Data or Sales Data.
In case you have spaces or non-alphabetical characters (such as @, !, #, -,etc.), you need to use the name within single quotes.
For example, if you want to refer cell A1 in the sheet named Sales Data, you will use the below reference:
='Sales Data'!A1
And in case the name of the sheet is Sales-Data, then to refer to cell A1 in this sheet, you need to use the below reference:
='Sales-Data'!A1
When you refer to a sheet in the same workbook, and then later change the name of the worksheet, you don’t need to worry about the reference breaking down. Excel will automatically update these references for you.
While it’s great to know the format of these references, in practice, it’s not such a good idea to manually type these every time. It would be time-consuming and highly error-prone.
Let me show you a better way to create cell references in Excel.
Also read: How to Sum Across Multiple Sheets in Excel?
Automatically Creating Reference to Another Sheet in the Same Workbook
A much better way to create cell reference to another sheet is to simply point Excel to the cell/range to which you want to create the reference and let Excel create it itself.
This will ensure that you don’t have to worry about the exclamation point or quotes being missing or any other format issue cropping up. Excel will automatically create the correct reference for you.
Below are the steps to automatically create a reference to another sheet:
- Select the cell in the current workbook where you need the reference
- Type the formula till you need the reference (or an equal-to sign if you just want the reference)
- Select the sheet to which you need to refer to
- Select the cell/range that you want to refer to
- Hit Enter to get the result of the formula (or continue working on the formula)
The above steps would automatically create a reference to the cell/range in another sheet. You will also be able to see these references in the formula bar. Once you’re done, you can simply hit the enter key and it will give you the result.
For example, if you have some data in cell A1:A10 in a sheet named Sales Data, and you want to get the sum of these values in the current sheet, following will be the steps:
- Type the following formula in the current sheet (where you need the result): =Sum(
- Select the ‘Sales Data’ sheet.
- Select the range that you want to add (A1:A10). As soon as you do this, Excel will automatically create a reference to this range (you can see that in the formula bar)
- Hit the enter key.
When you’re creating a long formula, you may need to refer to a cell or a range in another sheet, and then have a need to come back to the origin sheet and refer to some cell/range there.
When you do this, you will notice that Excel automatically inserts a sheet reference to the sheet where you have the formula. While this is alright and doesn’t harm, it’s not needed. In such a case, you can choose to keep the reference or remove it manually.
Another thing you need to know when creating references by selecting the sheet and then the cell/range is that Excel will always create a relative reference (i.e., references with n0 $ sign). This means that if I copy and paste the formula (one with reference to another sheet) in some other cell, it would automatically adjust the reference.
Here is an example that explains relative references.
Suppose I use the following formula in cell A1 in current sheet (to refer to cell A1 in a sheet name SalesData)
=SalesData!A1
Now, if I copy this formula and paste in cell A2, the formula will change to:
=SalesData!A1
This happens because the formula is relative and when I copy and paste it, the references will automatically adjust.
In case I want this reference to always refer to cell A1 in the SalesData sheet, I will have to use the below formula:
=SalesData!$A$1
The dollar sign before the row and column number lock these references so that these don’t change.
Here is a detailed tutorial where you can learn more about absolute, mixed, and relative references.
Now that we have covered how to reference another sheet in the same workbook, let’s see how we can refer to another workbook.
How to Reference Another Workbook in Excel
When you refer to a cell or a range to another Excel workbook, the format of that reference would depend on whether that workbook is open or closed.
And of course, the name of the workbook and the worksheets also play a role in determining the format (depending on whether you have spaced or non-alphabetical characters in the name or not).
So let’s see the different formats of external references to another workbook in different scenarios.
External Reference to an Open Workbook
When it comes to referring to an external open workbook, you need to specify the workbook name, the worksheet name, and the cell/range address.
Below is the format you need to use when referring to an external open workbook
='[FileName]SheetName!CellAddress
Suppose you have a workbook ‘ExampleFile.xlsx’ and you want to refer to cell A1 in Sheet1 of this workbook.
Below is the reference for this:
=[ExampleFile.xlsx]SalesData!A1
In case there are spaces in the external workbook name or the sheet name (or both), then you need to add put the file name (in square brackets) and the sheet name in single quotes.
Below are the examples where you would need to have the names in single quotes:
='[Example File.xlsx]SalesData'!A1 ='[ExampleFile.xlsx]Sales Data'!A1 ='[Example File.xlsx]Sales Data'!A1
How to Create Reference to Another Workbook (Automatically)
Again, while it’s good to know the format, it’s best not to type it manually.
Instead, just point Excel in the right direction and it will create these references for you. This is a lot faster with way fewer chances of errors.
For example, if you have some data in cell A1:A10 in a workbook named ‘Example File’ in the sheet named ‘Sales Data’, and you want to get the sum of these values in the current sheet, following will be the steps:
- Type the following formula in the current sheet (where you need the result): =Sum(
- Go to the ‘Example File’ workbook
- Select the ‘Sales Data’ sheet.
- Select the range that you want to add (A1:A10). As soon as you do this, Excel will automatically create a reference to this range (you can see that in the formula bar)
- Hit the enter key.
This would instantly create the formula with the correct references.
One thing you would notice when creating a reference to an external workbook is that it will always create absolute references. This means that there is a $ sign before the row and column numbers. This means that if you copy and paste this formula to other cells, it would keep referring to the same range due to absolute reference.
In case you want this to change, you need to change the references manually.
External Reference to a Closed Workbook
When an external workbook is open and you refer to this workbook, you just need to specify the file name, sheet name, and the cell/range address.
But when this is closed, Excel has no clue where you look for the cells/range you referred to.
This is why when you create a reference to a closed workbook, you also need to specify the file path.
Below is a reference that refers to cell A1 in the Sheet1 worksheet in the Example File workbook. Since this file is not open, it also refers to the location where the file is saved.
='C:UserssumitDesktop[Example File.xlsx]Sheet1'!$A$1
The above reference has the following parts:
- File Path – the location on your system or network where the external file is located
- File Name – the name of the external workbook. This would include the file extension as well.
- Sheet Name – the name of the sheet in which you are referring to the cells/ranges
- Cell/Range Address – the exact cell/range address to which you’re referring
When you create an external reference to an open workbook and then closed the workbook, you would notice that the reference automatically changes. After the external workbook is closed, Excel automatically inserts a reference to the file path as well.
Impact of Changing File Location on References
When you create a reference to a cell/range in an external Excel file and then close it, the reference now uses the file path as well.
But then if you change the file location, nothing is going to change in your workbook (in which you create the reference). But since you have changed the location, the link has now been broken.
So if you close and open this workbook, it will tell you that the link is broken and you need to either update the link or break it completely. It will show you a prompt as shown below:
When you click on Update, it will show you another prompt where you can choose the options to edit the links (which will show you the below dialog box)
If you need to keep these files linked, you can specify the new location of the file by clicking on Update Values. Excel opens a dialog box for you where you can specify the new file location by navigating there and selecting it.
Reference to a Defined Name (in the same or external workbook)
When you have to refer to cells and ranges, a better way is to create defined names for the ranges.
This is helpful as it makes it easy for you to refer to these ranges using a name instead of a long and complicated reference address.
For example, it’s easier to use =SalesData instead of =[Example File.xlsx]Sheet1′!$A$1:$A$10
And in case you have used this defined named in multiple formulas and you need to change the reference, you need to only do it once.
Here are the steps to create a named range for a range of cells:
- Select all the cells that you want to include in the named range
- Click the Formulas tab
- Click on the Define Name option (it’s in the Defined Names group)
- In the New Name dialog box, give this range a name (I am using the name SalesData in this example). Remember you can’t have spaces in the name
- Keep the scope as Workbook (unless you have a strong reason to make it sheet-level)
- Make sure the Refers to the range is correct.
- Click OK.
Now your named range has been created and you can use it instead of the cell references with cell addresses.
For example, if I want to get the sum of all these cells in the SalesData range, you can use the below formula:
=SUM(SalesData)
And what if you want to use this named range is other worksheets or even other workbooks?
You can!
You just need to follow the same format we have discussed in the above section.
No need to go back to the beginning of this article. Let me give you all the examples here itself so you get the idea.
Workbook Vs Worksheet Level Named Ranges: When you create a workbook level named range, there could only be one range with that name. So if you refer to it from external workbooks or worksheets in the same workbook, you don’t need to specify the worksheet name (as it’s available for use in the entire workbook). In case you use the worksheet level named range, you will only be able to use it in the worksheet and while referring to it, you will also have to specify the worksheet name.
Referencing the defined name in the same worksheet or workbook
If you have created the defined name for the workbook level, you can use it anywhere in the workbook by just using the defined name itself.
For example, if I want to get the sum of all the cells in the named range we created (SaledData), I can use the below formula:
=SUM(SaledData)
In case you have created a worksheet level named range, you can use this formula only if the named range is created in the same sheet where you’re using the formula.
In case you want to use it on another sheet (say Sheet2), you need to use the following formula:
=SUM(Sheet1!$A$1:$A$10)
And in case there are spaces or alphanumeric characters in the sheet name, you will have to put the sheet name in single quotes.
=SUM('Sheet 1'!$A$1:$A$10)
Referencing the defined name in another workbook (Open or Closed)
When you want to reference a named range in another workbook, you will have to specify the workbook name and then the name of the range.
For example, if you have an Excel workbook with the name ExampleFile.xlsx and a named range with the name SalesData, then you can use the below formula to get the sum of this range from another workbook:
=SUM(ExampleFile.xlsx!SalesData)
In case there are spaces in the file name, then you need to use these in single quotes.
=SUM('Example File.xlsx'!SalesData)
In case you’ve sheet-level named ranges, then you need to specify the name of the workbook as well as the worksheet when referencing it from an external workbook.
Below is an example of referencing a sheet-level named range:
=SUM('[Example File.xlsx]Sheet1'!SalesData)
As I mentioned above as well, it’s always best to create workbook level named ranges, unless you have a strong reason to create a worksheet level one.
In case you’re referencing a named range in a closed workbook, you will have to specify the file path as well. Below is an example of this:
=SUM('C:UserssumitDesktopExample File.xlsx'!SalesData)
When you create a reference to a named range in an open workbook and then close the workbook, Excel automatically changes the reference and adds the file path.
How to Create Reference to a Named Range
If you create and work with a lot of named ranges, it’s not possible to remember each one’s name.
Excel helps you by showing you a list of all the named ranges that you have created and allows you to insert these in formulas with a single click.
Suppose you have created a named range SalesData which you want to use in a formula to SUM all the values in the named range.
Here are the steps to do this:
- Select the cell in which you want to enter the formula.
- Enter the formula to the point where you need the named range to be inserted
- Hit the F3 key on your keyboard. This will open the Paste Name dialog box with the list of all the names you have created
- Double-click on the name that you want to insert.
The above steps would insert the name in the formula and you can continue to work on the formula.
Note: This technique works only for the name ranges that are in the same workbook. If you want to get the names in an external workbook, you will have to go there, check the name using the Paste Name dialog box and then come back and use it in your formula (in the correct format using the file name).
This is all you need to know about how to reference other sheets or workbooks and how to create an external reference in Excel.
Hope you found this tutorial useful.
You may also like the following Excel tutorials:
- How to Sum a Column in Excel
- CONCATENATE Excel Range (with and without separator)
- Hyperlinks in Excel (A Complete Guide + Examples)
- How to Find External Links and References in Excel
- How to Copy and Paste Formulas in Excel without Changing Cell References
- How to Delete Named Range in Excel?
- Using A1 or R1C1 Reference Notation in Excel (& How to Change These)
,
What Do You Mean By Cell Reference in Excel?
A cell reference in Excel refers to other cells to a cell to use its values or properties. So in simple terms, if we have data in some random cell A2 and we want to use that value of cell A2 in cell A1, we can use =A2 in cell A1. So it will copy the value of A2 in A1. So it is called cell referencing in Excel.
For example, suppose you insert C1O. As a result, it will expand “Column C” and the “10th Row.” Likewise, we can also define or declare cell references to any location in the worksheet. We may also activate another way for cell reference, e.g., R7C7 from Excel “Options,” where R7 is Row 7 and C7 is Column 7.
Table of contents
- What Do You Mean By Cell Reference in Excel?
- Explained
- Types of Cell Reference in Excel
- #1 How to Use Relative Cell Reference?
- #2 How to Use Absolute Cell Reference?
- #3 How to Use Mixed Cell Reference?
- Things to Remember
- Recommended Articles
Explained
- Excel worksheet is made up of cells. Each cell has a cell reference.
- Cell reference contains one or more letters or the alphabet followed by a number where the letter or alphabet indicates the column and the number represents the row.
- Each cell can be located or identified by its cell reference or address, e.g., B5.
- Each cell in an Excel worksheet has a unique address. The address of each cell is defined by its location on the grid. g. In the below-mentioned screenshot, the address “B5” refers to the cell in the fifth row of column B.
Even if we enter the cell address directly in the grid or name window, it will go to that cell location in the worksheet. Cell references can refer to either one cell, a range of cells, or entire rows and columns.
When a cell reference refers to more than one cell, it is called “range.” E.g., A1:A8 indicates the first 8 cells in column A. In between, a colon is used.
Types of Cell Reference in Excel
- Relative cell references: It does not contain dollar signs in a row or column, e.g., A2. Relative cell reference type in ExcelIn Excel, relative references are a type of cell reference that changes when the same formula is copied to different cells or worksheets. Let’s say we have =B1+C1 in cell A1, and we copy this formula to cell B2 and it becomes C2+D2.read more changes when a formula is copied or dragged to another cell. In Excel, cell referencing is relative by default. It is the most commonly used cell reference in the formula.
- Absolute cell references: Absolute cell reference Absolute reference in excel is a type of cell reference in which the cells being referred to do not change, as they did in relative reference. By pressing f4, we can create a formula for absolute referencing.read more contains dollar signs attached to each letter or number in a reference, e.g., $B$4. Suppose we mention a dollar sign before the column and row identifiers. It makes absolute or locks both the column and the row, i.e., where cell reference remains constant even if it is copied or dragged to another cell.
- Mixed cell references in Excel: In Excel, mixed cell references contain dollar signs attached to either the letter or the number in a reference. E.g., $B2 or B$4. It is a combination of relative and absolute references.
Now, let us discuss each cell reference in detail –
You can download this Cell Reference Excel Template here – Cell Reference Excel Template
#1 How to Use Relative Cell Reference?
The below-mentioned pharma sales table below contains medicine “Products” in column C (C10:C16), “Quantity Sold” in column D (D10:D16), and “Total_Sales_Value” in column F, which we need to find out.
To calculate the total sales for each item, we need to multiply the price of each item by its quantity of that.
Let us check out the first item; for the first item, the formula in cell F10 would be multiplication in ExcelMultiplication in excel is performed by entering the comparison operator “equal to” (=), followed by the first number, the “asterisk” (*), and the second number.read more – D10*E10.
It returns the total sales value.
Instead of entering the formula for all the cells, we can apply a formula to the entire range. To copy the formula down the column, click inside cell F10 to see that the cell is selected. Then, select the cells till F16. So, that column range will get selected. Then, we will click “Ctrl+D” to apply the formula to the entire range.
Here, when you copy or move a formula with a relative cell reference to another row. Automatically, row references will change (similarly for columns also)
We can notice that the cell reference automatically adjusts to the corresponding row.
To check a relative reference, we must select any of the “Total _Sales_ Value” cells in column F, and we can view the formula in the formula bar. E.g., In cell F14, we can observe that the formula has been changed from D10*E10 to D14*E14.
#2 How to Use Absolute Cell Reference?
The below-mentioned pharma product table contains medicine “Products” in column H (H6:H12), and it’s “Old_Price” in column I (I6:I12), and “New_Price” in column J, which we need to find out with the help of absolute cell reference.
We can see that the rate for each product is increased by 5% effective from Jan 2019 and is listed in cell “K3”.
To calculate the “New_Price” for each item, we need to multiply the old price of each item by the percentage price increase (5%) and add the “Old_Price” to it.
Let us check out the first item. For the first item, the formula in cell J6 would be =I6*$K$3+I6, which returns the new price.
Here, the percentage rate increase for each product is 5%, a common factor. Therefore, we must add a dollar symbol in front of the row and column number for the cell “K3” to make it an absolute reference, i.e., $K$3. We can add it by clicking the “function+F4” key once.
Here the dollar sign for the cell “K3” fixes the reference to a given cell, where it remains unchanged no matter when you copy or apply a formula to other cells.
Here, $K$3 is an absolute cell reference, whereas “I6” is a relative cell reference. It changes when you apply it to the next cell.
Instead of entering the formula for all the cells, we can apply a formula to the entire range. To copy the formula down the column, click inside cell J6 to see that the cell has been selected. Then, we must select the cells till J12. So, that column range will get selected. Then click “Ctrl+D” so the formula is applied to the entire range.
#3 How to Use Mixed Cell Reference?
In the below-mentioned table, we have values in each row (D22, D23, and D24) and columns (E21, F21, and G21). Here, we have to multiply each column with each row with the help of a mixed cell reference.
We can use two mixed-cell references here to get the desired output.
Let us apply two types of mixed references below in cell “E22.”
The formula would be =$D22*E$21
#1 – $D22: Absolute column and Relative row
The dollar sign before column D indicates that only the row number can change. At the same time, the column letter D is fixed. It does not change.
When we copy the formula to the right side, the reference will not change because it is locked, but When you copy it down, the row number will change because it is not locked.
#2 – E$21: Absolute row and Relative column
The dollar sign right before the row number indicates only the column letter E can change. Whereas the row number is fixed; it does not change.
The row number will not change when copying the formula because it is locked. But when we copy the formula to the right side, the column alphabet will change because it is not locked.
Instead of entering the formula for all the cells, we can apply a formula to the entire range. Now, we will click inside cell E22. As a result, first, we will see that the cell is selected. Then, we will select the cells until G24 so that the entire range will get selected. Next, we will click on the “Ctrl+D” key and, later, “Ctrl+R.”
Things to Remember
- The cell reference is a key element of formula or excels functions.
- Cell references are used in Excel functions, formulas, charts, and various other Excel commandsVLOOKUP function, IF condition, CONCATENATE function, find MAXIMUM and MINIMUM values are the most commonly used excel commands.read more.
- Mixed reference locks either of one. It may be a row or column, but not both.
Recommended Articles
This article is a guide to Cell Reference in Excel. We discuss how to cell references in Excel, along with three types, examples, and downloadable templates. You may learn more about Excel from the following articles: –
- 3D Reference Excel – Examples
- Timesheet in Excel
- Excel Auto Numbering
- Solver in Excel
- Programming in Excel