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?
Want more options?
Explore subscription benefits, browse training courses, learn how to secure your device, and more.
Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.
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
A worksheet in Excel is made up of cells. These cells can be referenced by specifying the row value and the column value.
For example, A1 would refer to the first row (specified as 1) and the first column (specified as A). Similarly, B3 would be the third row and second column.
The power of Excel lies in the fact that you can use these cell references in other cells when creating formulas.
Now there are three kinds of cell references that you can use in Excel:
- Relative Cell References
- Absolute Cell References
- Mixed Cell References
Understanding these different types of cell references will help you work with formulas and save time (especially when copy-pasting formulas).
What are Relative Cell References in Excel?
Let me take a simple example to explain the concept of relative cell references in Excel.
Suppose I have a data set shown below:
To calculate the total for each item, we need to multiply the price of each item with the quantity of that item.
For the first item, the formula in cell D2 would be B2* C2 (as shown below):
Now, instead of entering the formula for all the cells one by one, you can simply copy cell D2 and paste it into all the other cells (D3:D8). When you do it, you will notice that the cell reference automatically adjusts to refer to the corresponding row. For example, the formula in cell D3 becomes B3*C3 and the formula in D4 becomes B4*C4.
These cell references that adjust itself when the cell is copied are called relative cell references in Excel.
When to Use Relative Cell References in Excel?
Relative cell references are useful when you have to create a formula for a range of cells and the formula needs to refer to a relative cell reference.
In such cases, you can create the formula for one cell and copy-paste it into all cells.
What are Absolute Cell References in Excel?
Unlike relative cell references, absolute cell references don’t change when you copy the formula to other cells.
For example, suppose you have the data set as shown below where you have to calculate the commission for each item’s total sales.
The commission is 20% and is listed in cell G1.
To get the commission amount for each item sale, use the following formula in cell E2 and copy for all cells:
=D2*$G$1
Note that there are two dollar signs ($) in the cell reference that has the commission – $G$2.
What does the Dollar ($) sign do?
A dollar symbol, when added in front of the row and column number, makes it absolute (i.e., stops the row and column number from changing when copied to other cells).
For example, in the above case, when I copy the formula from cell E2 to E3, it changes from =D2*$G$1 to =D3*$G$1.
Note that while D2 changes to D3, $G$1 doesn’t change.
Since we have added a dollar symbol in front of ‘G’ and ‘1’ in G1, it wouldn’t let the cell reference change when it’s copied.
Hence this makes the cell reference absolute.
When to Use Absolute Cell References in Excel?
Absolute cell references are useful when you don’t want the cell reference to change as you copy formulas. This could be the case when you have a fixed value that you need to use in the formula (such as tax rate, commission rate, number of months, etc.)
While you can also hard code this value in the formula (i.e., use 20% instead of $G$2), having it in a cell and then using the cell reference allows you to change it at a future date.
For example, if your commission structure changes and you’re now paying out 25% instead of 20%, you can simply change the value in cell G2, and all the formulas would automatically update.
What are Mixed Cell References in Excel?
Mixed cell references are a bit more tricky than the absolute and relative cell references.
There can be two types of mixed cell references:
- The row is locked while the column changes when the formula is copied.
- The column is locked while the row changes when the formula is copied.
Let’s see how it works using an example.
Below is a data set where you need to calculate the three tiers of commission based on the percentage value in cell E2, F2, and G2.
Now you can use the power of mixed reference to calculate all these commissions with just one formula.
Enter the below formula in cell E4 and copy for all cells.
=$B4*$C4*E$2
The above formula uses both kinds of mixed cell references (one where the row is locked and one where the column is locked).
Let’s analyze each cell reference and understand how it works:
- $B4 (and $C4) – In this reference, the dollar sign is right before the Column notation but not before the Row number. This means that when you copy the formula to the cells on the right, the reference will remain the same as the column is fixed. For example, if you copy the formula from E4 to F4, this reference would not change. However, when you copy it down, the row number would change as it is not locked.
- E$2 – In this reference, the dollar sign is right before the row number, and the Column notation has no dollar sign. This means that when you copy the formula down the cells, the reference will not change as the row number is locked. However, if you copy the formula to the right, the column alphabet would change as it’s not locked.
How to Change the Reference from Relative to Absolute (or Mixed)?
To change the reference from relative to absolute, you need to add the dollar sign before the column notation and the row number.
For example, A1 is a relative cell reference, and it would become absolute when you make it $A$1.
If you only have a couple of references to change, you may find it easy to change these references manually. So you can go to the formula bar and edit the formula (or select the cell, press F2, and then change it).
However, a faster way to do this is by using the keyboard shortcut – F4.
When you select a cell reference (in the formula bar or in the cell in edit mode) and press F4, it changes the reference.
Suppose you have the reference =A1 in a cell.
Here is what happens when you select the reference and press the F4 key.
- Press F4 key once: The cell reference changes from A1 to $A$1 (becomes ‘absolute’ from ‘relative’).
- Press F4 key two times: The cell reference changes from A1 to A$1 (changes to mixed reference where the row is locked).
- Press F4 key three times: The cell reference changes from A1 to $A1 (changes to mixed reference where the column is locked).
- Press F4 key four times: The cell reference becomes A1 again.
You May Also Like the Following Excel Tutorials:
- How to Copy and Paste Formulas in Excel without Changing Cell References
- How to Lock Cells in Excel.
- Excel Freeze Panes: Use it to Lock Row/Column Headers.
- How to Lock Formulas in Excel.
- How to Reference Another Sheet or Workbook in Excel
- How to Find Circular Reference 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
Relative Reference | Absolute Reference | Mixed Reference
Cell references in Excel are very important. Understand the difference between relative, absolute and mixed reference, and you are on your way to success.
Relative Reference
By default, Excel uses relative references. See the formula in cell D2 below. Cell D2 references (points to) cell B2 and cell C2. Both references are relative.
1. Select cell D2, click on the lower right corner of cell D2 and drag it down to cell D5.
Cell D3 references cell B3 and cell C3. Cell D4 references cell B4 and cell C4. Cell D5 references cell B5 and cell C5. In other words: each cell references its two neighbors on the left.
Absolute Reference
See the formula in cell E3 below.
1. To create an absolute reference to cell H3, place a $ symbol in front of the column letter and row number ($H$3) in the formula of cell E3.
2. Now we can quickly drag this formula to the other cells.
The reference to cell H3 is fixed (when we drag the formula down and across). As a result, the correct lengths and widths in inches are calculated. Visit our page about absolute reference to learn more about this type of reference.
Mixed Reference
Sometimes we need a combination of relative and absolute reference (mixed reference).
1. See the formula in cell F2 below.
2. We want to copy this formula to the other cells quickly. Drag cell F2 across one cell, and look at the formula in cell G2.
Do you see what happens? The reference to the price should be a fixed reference to column B. Solution: place a $ symbol in front of the column letter ($B2) in the formula of cell F2. In a similar way, when we drag cell F2 down, the reference to the reduction should be a fixed reference to row 6. Solution: place a $ symbol in front of the row number (B$6) in the formula of cell F2.
Result:
Note: we don’t place a $ symbol in front of the row number of $B2 (this way we allow the reference to change from $B2 (Jeans) to $B3 (Shirts) when we drag the formula down). In a similar way, we don’t place a $ symbol in front of the column letter of B$6 (this way we allow the reference to change from B$6 (Jan) to C$6 (Feb) and D$6 (Mar) when we drag the formula across).
3. Now we can quickly drag this formula to the other cells.
The references to column B and row 6 are fixed.
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
In order to make accurate calculations in Excel, it’s essential to understand how the different types of cell references work.
A1 vs. R1C1 References
Excel worksheets contain many cells and (by default) each cell is identified by its column letter followed by its row number. This is known as A1-style referencing. Examples: A1, B4, C6
A1 reference style
Optionally, you can switch to R1C1 Reference Mode to refer to a cell’s row & column number. Instead of referring to cell A1 you would refer to R1C1 (row 1, column 1). Cell C4 would be referred to R4C3.
R1C1 reference style
R1C1-style referencing is extremely uncommon in Excel. Unless you have a good reason you should probably stick to the default A1-style reference mode. However, if you use VBA you will likely encounter this reference style.
Switch to R1C1 Reference Style
To switch the reference style, go to File > Option > Formula. Check the box next to R1C1 reference style.
Named Ranges
One of the most under-utilized features of Excel is the Named Ranges feature. Instead of referring to a cell (or group of cells) by its cell location (ex B3 or R3C2), you can name that range and simply reference the range name in your formulas.
To name a range:
- Select the cell or cells that you wish to name
- Click Inside the Range Name Box
- Enter your desired name
- Hit Enter
Now you can reference cell A1 by typing =range_name1 instead. This is very useful when working with large workbooks with multiple worksheets.
Range of Cells
When using Excel’s built in Functions, you may need to reference ranges of cells. Cell ranges appear like this ‘A1:B3’. This reference refers to all cells in between A1 and B3: cells A1,A2,A3, B1, B2, B3.
To select a range of cells when entering a formula:
- Type in the range (separate the start and end range with a semicolon)
- Use your mouse to click the first cell reference, hold down the mouse button and drag your desired range.
- Hold down the shift key and navigate with the arrow keys to select your range
Absolute (Frozen) and Relative References
When entering cell references within formulas, you can use relative or absolute (frozen) references. Relative references will move proportionally when you copy the formula to a new cell. Absolute references will remain unchanged. Let’s look at some examples:
Relative Reference
A relative reference in Excel looks like this
=A1
When you copy and paste a formula with relative references, the relative references will move proportionally. Unless you specify otherwise, your cell references will be relative (unfrozen) by default.
Example: If you copy ‘=A1’ down one row the reference changes to ‘=A2’.
Absolute (Frozen) Cell References
If you don’t want your cell references to move when you copy a formula, you can “freeze” your cell references by adding dollar signs ($s) in front of the reference that you want frozen. Now when you copy and paste the formula, the cell reference will remain unchanged. You can choose to freeze the row reference, column reference, or both.
A1: Nothing is frozen
$A1: The column is frozen, but the row is not frozen
A$1: The row is frozen, but the column is not frozen
$A$1: Both the row and column are frozen
Absolute Reference Shortcut
Manually adding in dollar signs ($s) into your formulas isn’t very practical. Instead, while creating your formula, use the F4 key to toggle between absolute/relative cell references.
Absolute Cell Reference Example
When would you actually need to freeze a cell reference? One common example is when you have input cells that are referenced frequently. In the example below, we want to calculate the sales tax for each quantity of menu items. The sales tax is constant across all items, so we will reference the sales tax cell repeatedly.
To find the total sales tax, enter the formula ‘=(B3*C3)*$C$1’ in column D and the copy the formula down.
Mixed Reference
You may have heard of mixed cell references. A mixed reference is when either the row or column reference is locked (but not both).
Mixed Reference
Remember, by using the “F4” key you are able to cycle through your relative, absolute cell references.
Cell References – Inserting & Deleting Rows/Columns
You may be wondering what happens to your cell references when you insert or delete rows/columns?
The cell reference will update automatically to refer to the original cell. This is the case regardless of whether the cell reference is frozen.
3D References
At times, you may need to work with several worksheets with identical patterns of data. Excel allows you to refer to multiple sheets at once without needing to manually enter each worksheet. You can reference a range of sheets similar to how would reference a range of cells. Example ‘Sheet1:Sheet5!A1’ would reference cells A1 on all sheets from Sheet1 to Sheet5.
Let’s walk through an example:
You want to add together the total units sold for each product across all stores. Each store has its own worksheet and all the worksheets have an identical format. You could create a formula similar to this:
This is not too difficult with only four worksheets, but what if you had 40 worksheets? Would you really want to manually add each cell reference?
Instead, you can use a 3D reference to reference multiple sheets at once with ease(similar to how you can reference a range of cells).
Be Careful! The order of your worksheets matters. If you move another sheet in between the referenced sheets (StoreA and StoreD) that sheet will be included. Conversely, if you move a sheet outside the range of sheets (before StoreA or after StoreD), it will no longer be included.
Circular Cell Reference
A circular cell reference is when a cell refers back to itself. For example, if the result of cell B1 is used as an input for cell B1 then a circular reference is created. The cell does not need to directly refer to itself There can be intermediate steps.
Example:
In this case, the formula for cell B2 is “A2+A3+B2”. Because you are in cell B2, you may not use B2 in the equation. This would trigger circular reference and the value in cell “B2” will automatically be set to “0”.
Usually circular references are a result of user error, but in there are circumstances in which you may want to use a circular reference. The primary example of using a circular reference is to calculate values iteratively. To do this, you need to go to File > Options > Formulas and Enabled Iterative Calculation:
External References
At times when calculating data you may need to refer to data outside of your workbook. This is called an external reference (link).
To select an external reference while creating a formula, navigate to the external workbook, and select your reference as you normally would.
To navigate to the other workbook you can use the CTRL + TAB shortcut or go to View > Switch Windows.
Once you’ve selected the cell, you’ll see that an external reference that looks like this:
Notice that the workbook name is enclosed by brackets [].
Once you close the referenced workbook, the reference will show the file location:
When you reopen the workbook containing the external link, you will be prompted to enable automatic updating of links. If you do so, then Excel will open the reference value with the current value of the workbook. Even if it’s closed! Be careful! You may or may not want this.
Named Ranges and External References
What happens to your external cell reference when rows / columns are added or deleted from the reference workbook? If both workbooks are open then the cell references update automatically. However, if both workbooks aren’t open then the cell references won’t update and will no longer be valid. This is a huge concern when linking to external workbooks. Many errors are caused by this.
If you do link to external workbooks, you should name the cell reference with a named range (see previous section for more information). Now your formula will refer to the named range no matter what changes occur on the external workbook.
An Excel worksheet is a grid with columns labelled by letters, and rows labelled by numbers.
A CELL is an individual ‘box’ in the grid.
Cells are referred to by:
- a RELATIVE reference A7, or
- an ABSOLUTE reference $A$7, where the row and column identifiers are preceded by a dollar sign ‘$’, or
- a mix of relative and absolute:
- $A7 – absolute column, relative row
- A$7 – relative column, absolute row.
Relative references change when a formula is copied to another cell. Absolute references remain constant, wherever they are copied to.
This distinction between absolute and relative underlies the power of Excel to manage:
- dynamic formulas which update if moved to another location, or additional cells and ranges are inserted;
- formulas which refer to fixed cells which are not affected by changes to cells and ranges.
Use F4 to toggle between relative, absolute and mixed cell references. Click in the cell with the formula. Select the cell reference to change, and press F4 to toggle between the reference types.
A RANGE is a number of adjacent cells, defined by a start and finish cell reference, separated by a colon ‘:’
- One-dimensional, e.g.:
- Column: A2:A10 (absolute reference for this range is $A2:$A10)
- Row: A2:H2 (absolute reference is $A$2:$H$2).
- Two-dimensional, a number of rows and columns, e.g.:
- Two rows by three columns: A2:C3 (absolute reference $A$2:$C$3)
- Four rows by eight columns: A2:H5 ($A$2:$H$5). Note that the ‘name window’ [top left box in the screenshot below] contains just the starting cell reference of the range (A2 in this example).