Excel for Microsoft 365 Excel for the web Excel 2021 Excel 2019 Excel 2016 Excel 2013 Excel Web App Excel 2010 Excel 2007 More…Less
By default, a cell reference is a relative reference, which means that the reference is relative to the location of the cell. If, for example, you refer to cell A2 from cell C2, you are actually referring to a cell that is two columns to the left (C minus A)—in the same row (2). When you copy a formula that contains a relative cell reference, that reference in the formula will change.
As an example, if you copy the formula =B4*C4 from cell D4 to D5, the formula in D5 adjusts to the right by one column and becomes =B5*C5. If you want to maintain the original cell reference in this example when you copy it, you make the cell reference absolute by preceding the columns (B and C) and row (2) with a dollar sign ($). Then, when you copy the formula =$B$4*$C$4 from D4 to D5, the formula stays exactly the same.
Less often, you may want to mixed absolute and relative cell references by preceding either the column or the row value with a dollar sign—which fixes either the column or the row (for example, $B4 or C$4).
To change the type of cell reference:
-
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.
The table below summarizes how a reference type updates if a formula containing the reference is copied two cells down and two cells to the right.
For a formula being copied: |
If the reference is: |
It changes to: |
|
$A$1 (absolute column and absolute row) |
$A$1 (the reference is absolute) |
A$1 (relative column and absolute row) |
C$1 (the reference is mixed) |
|
$A1 (absolute column and relative row) |
$A3 (the reference is mixed) |
|
A1 (relative column and relative row) |
C3 (the reference is relative) |
Need more help?
,
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
If you want to use Excel like a power user, you will need to understand the cell addressing in an Excel workbook.
In Excel, a cell reference points to a cell on a worksheet and can be used in a formula so that Microsoft Office Excel can find the values that you want the formula to calculate.
Cell reference is the format used for addressing a particular cell. Each cell is created at the crossing of a row and a column. Therefore, every cell can be uniquely addressed using the column and row number. Excel addresses each cell with (Column Letter)(Row Number) format. For example, cell C7 cell is located at the crossing of column C and row number 7.
A cell address is also called cell reference because Excel uses this cell address to refer to a cell.
There are three types of cell references in Excel:
- Relative
- Absolute
- Mixed
In this article we will examine the difference between absolute, relative and mixed cell references in Excel.
Relative Cell Reference
Relative cell reference indicates that the reference will change if it is copied and pasted elsewhere in the worksheet. Let’s understand it by example. Open a new worksheet and enter the values in cells as follows:
- A1 = 7
- A2 = 5
- B1 = 4
- B2 = 2
Now in cell C4 type the following formula:
=SUM(A1,B1)
Press enter and you will see that C4 will show (7+4 = 11) as sum.
Now select cell C4 and press Ctrl+C to copy the formula
Select Cell C5 and press Ctrl+V to paste the copied formula. You will see that C5 will show sum result as 7 because moving the formula also automatically changed the cell reference from A1,B1 to A2,B2.
Cell references like A1 and B1 are relative references and they see the target cell with respect to the location of formula.
While working on the formula in cell C4, Excel will need to find the value in cells A1 and B1. How does it find these values? Well, it searches for B1 like a crossword puzzle… three cells up and one cell to left from the location of formula.
When you copy the formula and paste it in cell C5, even then Excel will follow the same steps for locating the second cell mentioned in the formula. That is to say that Excel will still go three cells up and one cell to the left. As a result the target cell will change from B1 to B2.
So, this is the Relative Reference. Excel calculate a cell’s location with respect to the location of the formula containing cell. The benefit of relative referencing is that your formula will automatically change if you need to make several copies of the same formula (for example, through auto fill). The drawback of relative referencing is that it may throw unexpected results if you don’t know what you’re doing.
Absolute Cell Reference
Absolute cell reference means that the reference will not change if it is copied and pasted somewhere else. For example, if you copy a formula containing absolute cell references and paste it elsewhere, the references will still point to exactly the same cells as they were pointing in formula’s original location.
To make a cell reference absolute, just add $ sign before the column number or row number or both of them:
- A2 = both column and row references are relative
- $A2 = column reference is absolute, row reference is relative
- A$2 = column reference is relative, row reference is absolute
- $A$2 = both column and row references are absolute
Let’s understand it with the help of an example. Let’s use the same worksheet that we created for the previous example. Type the following formula in cell C7
=($A$1*B1)
This formula multiplies the value of cell A1 with the value of cell B1. Note that the first cell reference is fully absolute ($A$1) and the second cell reference (B1) is fully relative.
The result of this formula will be 28.
Now let’s copy this formula and paste it in cell C11. You will see that the absolutely referenced cell $A$1 will remain as it is while the relative reference B1 will change to B5.
Question for you: Can you now suggest why B1 changed to B5 and not B4 or B6? We have already explained the answer
Mixed Cell Reference
Mixed cell reference occurs when we use both relative and absolute references to refer to a cell. For example, A$1 is a mixed reference because the column name (A) is relatively referred to and row number is absolutely referred to ($1). Similarly $C5 is also an example of mixed reference.
Switch Between Absolute, Relative and Mixed References
By pressing F4 key, you can switch among various types of references in Excel. Let’s see it by an example:
- Type the following formula in any cell
=(A1+B1) - Press F4 key and Excel will change B1 to $B$1 (fully absolute)
- Press F4 key again and $B$1 will change to B$1 (mixed)
- Press F4 key again and B$1 will change to $B1 (mixed)
- Press F4 key again and $B1 will change to B1 (fully relative)
- If you want to change reference type of A1, just place your typing cursor at A1 in the formula and then press F4
Difference between Absolute and Relative Cell Reference
Absolute Reference | Relative Reference | |
---|---|---|
1. | Does not change when formula is moved to another location | Changes according to the location of the formula |
2. | $ sign is used to indicate absolute reference | No special sign is required. |
3. | In case formula is moved, result will remain unchanged if all references are fully absolute. | Result will change if formula is moved. |
4. | Useful if we want formula results to remain same irrespective of its location. | Useful if we want to use facilities like flash fill. |
Which Excel Version Does it Apply to?
Cell referencing is a core concept of Microsoft Excel. It remains same across all the versions of Excel. So, it does not matter whether you are using Excel version XP, 2007, 2010, 2013 or 2016 —the above mentioned concept and examples will hold true.
So, this was all about cell references in Microsoft Excel. We hope that you found this article helpful. Should you have any questions on this subject, please feel free to ask in the comments section. We will try our best to assist you. Thank you for using TechWelkin!
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)
Excel Cell Reference (Table of Contents)
- Cell Reference in Excel
- Types of Cell Reference in Excel
- #1 – Relative Cell Reference in Excel
- #2- Absolute Cell Reference in Excel
- #3- Mixed Cell Reference in Excel
Cell Reference in Excel
Cell Reference in excel is the way to represent the identity and the location of any cell with the help of combining Column Name and Row Number on a worksheet. For example, if we say cell B10, then it expands as Column B and 10th Row. Similarly, we can define or declare cell references to any position in the worksheet. We can also activate R1C1 from Excel Options, another way for cell reference, where R1 is Row1 and C1 is Column1.
Types of Cell Reference in Excel
We have three different types of Cell References in Excel –
- Relative Cell Reference in Excel
- Absolute Cell Reference in Excel
- Mixed Cell Reference in Excel
Using the correct type of Cell Reference in a particular scenario will save a lot of time and effort and make the work much easier.
#1 – Relative Cell Reference in Excel
Relative cell references in excel refer to a cell or a range of cells in excel. Every time a value is entered into a formula, such as SUMIFS, it is possible to input into Excel a “cell reference” as a substitute for a hard-coded number. A cell reference may come in the form B2, where B corresponds to the cell column letter in question and 2 represents the row number. Whenever Excel comes across a cell reference, it visits the particular cell, extracts out its value, and uses that value in whichever formula that you’re writing. When this cell reference in excel is duplicated to a different location, the relative cell references in excel correspondingly also change automatically.
When we refer to cells like this, we can achieve it with any of the two cell reference types in excel: absolute and relative. The demarcation between these two distinct reference types is the different inherent behavior when you drag or copy and paste them to different cells. Relative Cell references can alter themselves and adjust as you copy and paste them; absolute references contrarily do not. Therefore, in order to successfully achieve results in Excel, it is critical to be able to use relative and absolute cell references in the right way.
How to effectively use Relative cell reference in Excel?
To comprehensively understand the versatility and usability of this amazing feature of Excel, we will need to look at a few practical examples to grasp its true value.
You can download this Cell Reference Excel Template here – Cell Reference Excel Template
Example #1
Let us consider a simple example to explain the mechanics of Relative Cell Reference in Excel. If we wish to have the sum of two numbers in two different cells – A1 and A2, and have the result in a third cell A3.
So we apply the formula =A1+A2
Which would yield the result as 100 in A3.
Now suppose, we have a similar scenario in the next column (B). Cell B1 and B2 have two numbers, and we wish to have the sum in B3.
We can achieve this in two different ways:
Here we physically write the formula to add the two cells B1 and B2 in B3.
The result is 30.
Or we could simply copy the formula from cell A3 and paste it into cell B3 (it would work if we drag the formula from A3 to B3 also).
So, when we copy the contents of cell A3 and paste in B3 or drag the contents of cell A3 and paste in B3, the formula gets copied, not the result. We could achieve the same result by right-clicking on cell A3 and use the Copy option.
And after that, we move to the next cell, B3, and right-click and select “Formulas (f)”.
What this means is that cell A3=A1+A2. When we copy A3 and move one cell to the right and paste it onto cell B3, the formula automatically adapts itself and changes to become B3=B1+B2. It applies the summation formula for B1 and B2 cells instead.
Example #2
Now, let’s look at yet another practical scenario that would make the concept quite clear. Let us assume that we have a data set consisting of the Unit Price of a product and the quantity sold for each of them. Now our objective is to calculate the Sale Price, which the following formula can describe:
Sale Price = Unit Price x Units Sold.
To be able to find the Sale Price, we need to now multiply Unit Price with Units Sold for each product. So, we shall now proceed to apply this formula for the first cell in Sale Price, i.e. for Product 1.
When we apply the formula, we get the following result for Product 1:
It successfully multiplied the Unit Cost by the Units Sold for Product 1, i.e. cell G2 * cell H2, i.e. 1826.00 * 20, which gives us the result 36520.00.
So now we see that we have 9 other products to go. In real case scenarios, this could go up to hundreds or thousands of rows. It becomes difficult and nearly impossible to simply go about writing the formula for each row.
Hence, we will use the Relative Reference feature of Excel and simply copy the contents of cell I2 and paste in all of the remaining cells in the table for the column Sale Price or simply drag the formula from cell I2 to the rest of the rows in that column and get the results for the whole table in less than 5 seconds.
Here we press Ctrl + D. So the output will look like below:
#2 – Absolute Cell Reference in Excel
Most of our daily work in Excel involves handling formulae. Therefore, having a working knowledge of Relative, Absolute, or Mixed cell References in excel becomes quite important.
Let us see the following:
=A1 is a relative reference, where both the row and column change when we copy the formula cell.
=$A$1 is an absolute cell reference; both the column and row are locked and do not change when we copy the formula cell. Thus, the cell value remains constant.
In =$A1, the column is locked, and the row can keep changing for that specific column.
In =A$1, the row is locked, and the column can keep changing for that specific row.
Unlike Relative Reference, which can change as it moves to different cells, the absolute reference doesn’t change. The only thing required here is to lock the specific cell completely.
Using a dollar sign in the formula, w.r.t. a cell reference makes it an absolute cell reference as the dollar sign locks the cell. We can lock either the row or the column using the dollar sign. If the “$” is before an alphabet, then it locks a column, and if the “$” is before a number, then a row is locked.
#3- Mixed Cell Reference in Excel
How to effectively use Absolute cell reference in Excel also how to use Mixed cell Reference in excel?
To get a comprehensive understanding of Absolute and Mixed cell Reference in excel, let us look at the following example.
We have the sales data for 4 sales managers across different months, where sales have occurred multiple times in a month.
Our objective is to calculate the consolidated sales summary of all 4 sales managers. We shall apply the SUMIFS formula to get the desired result.
The result will be as:
Let us observe the formula to see what happened.
- In the “sum_range”, we have $C$2:$C$17. There is a dollar sign in front of both the alphabet and the numbers. Thus, both the rows and columns for the cell range are locked. This is an absolute cell reference.
- Next, we have “criteria_range1”. Here too, we have absolute cell reference.
- After this, we have “criteria1” – $F2. Here we see that only the column will be locked while copying the formula cell, meaning only the row will change when we copy the formula to a different cell (moving down). This is a mixed cell reference.
- Next, we have “criteria_range2”, which is also an absolute cell reference.
- The final segment of the formula is “criteria2” – G$1. Here we observe that the dollar sign is present in front of the number and not the alphabet. Thus, only the row is locked when we copy the formula cell. The column can change when we copy the formula cell to a different cell (moving right). This is a mixed cell reference.
Dragging the formula across the summary table by pressing the Ctrl+D key first and later Ctrl+R. We get the following result:
Mixed cell reference refers to a particular row or column only, such as =$A2 or =A$2. If we want to create a mixed cell reference, we can press the F4 key on the formula two to three times, as per your requirement, i.e. to refer to a row or a column. Pressing F4 again will cause the cell reference to change to relative reference.
Things to Remember
- While copying the Excel formula, relative referencing is generally what is desired. This is the reason why this is the default behavior of Excel. But sometimes, the objective might be to apply absolute reference rather than relative Cell reference in excel. Absolute Reference is making a cell reference fixed to an absolute cell address, due to which, when the formula is copied, it remains unaltered.
- Absolutely no dollar signs are required with Relative referencing. When we copy the formula from one place to others, the formula will adapt accordingly. So, if we type =B1+B2 into cell B3 and then drag or copy-paste the same formula into the cell C3, the Relative Cell reference would automatically adjust the formula to =C1+C2.
- With Relative referencing, the referred cells automatically adjust themselves in the formula as per your movement, either to the right, left, upward or downwards.
- With Relative referencing, if we were to give a reference to cell D10 and then shift one cell downwards, it would change to D11; if instead, we shift one cell upwards, it would change to D9. If we shift one cell to the right, the reference will change to E10, and instead, if we shift one cell to the left, the reference would automatically adjust itself to C10.
- Pressing F4 once will change relative Cell reference to absolute Cell reference in excel.
- Pressing F4 twice will change the cell reference to a mixed reference where the row is locked.
- Pressing F4 thrice will change the cell reference to a mixed reference where the column is locked.
- Pressing F4 for the fourth time will change the cell reference back to the relative reference in excel.
Recommended Articles
This has been a guide to Cell Reference in Excel. Here we discuss three types of cell reference in excel, i.e. absolute, relative, and mixed cell reference, and how to use each of them along with practical examples and a downloadable excel template. You can also go through our other suggested articles –
- Relative Reference in Excel
- New Line in Excel Cell
- SUM Cells in Excel
- Divide Cell in Excel
A cell reference in spreadsheet programs such as Excel and Google Sheets identifies the location of a cell in the worksheet. These references use Autofill to adjust and change information as needed in your spreadsheet.
The information in this article applies to Excel versions 2019, 2016, 2013, Excel for Mac, Excel Online, and Google Sheets.
The Different Types of Cell References
The three types of references that can be used in Excel and Google Sheets are easily identified by the presence or absence of dollar signs ($) within the cell reference. A dollar sign tells the program to use that value every time it runs a formula.
- Relative cell references contain no dollar signs (i.e., A1).
- Mixed cell references have dollar signs attached to either the letter or the number in a reference but not both (i.e., $A1 or A$1).
- Absolute cell references have dollar signs attached to each letter or number in a reference (i.e., $A$1).
You’ll typically use an absolute or mixed cell reference if you set up a formula. For example, if you have a number in Cell A1, more numbers in Column B, and Column C contains the sums of A1 and each of the values in B, you’ll use «$A$1» in the SUM formula so that when you autofill, the program knows to always use the number in A1 instead of the empty cells below it.
A cell is one of the boxlike structures that fill a worksheet, and you can locate one by its references, such as A1, F26, or W345. A cell reference consists of the column letter and row number that intersect at the cell’s location. When listing a cell reference, the column letter always appears first. Cell references appear in formulas, functions, charts, and other Excel commands.
How Cell References Use Automatic Updating
One advantage of using cell references in spreadsheet formulas is that, normally, if the data located in the referenced cells changes, the formula or chart automatically updates to reflect the change.
If a workbook has been set not to update automatically when you make changes to a worksheet, you can carry out a manual update by pressing the F9 key on the keyboard.
You Can Reference Cells From Different Worksheets
Cell references are not restricted to the same worksheet where the data is located. Other worksheets in the same file can reference each other by including a notation that tells the program which sheet to pull the cell from.
You don’t need a sheet notation if you’re referring to a cell in the same worksheet.
Similarly, when you reference data in a different workbook, the name of the workbook and the worksheet are included in the reference along with the cell location.
To reference a cell on a different sheet, preface the cell reference with «Sheet[number]» with an exclamation point after it, and then the name of the cell. So if you want to pull info from Cell A1 in Sheet 3, you’ll type, «Sheet3!A1.»
A notation referring to another workbook in Excel also includes the name of the book in brackets. To use the information contained in Cell B2 in Sheet 2 of Workbook 2, you’ll type, «[Book2]Sheet2!B2.»
Cell Range: A Quick Primer
While references often refer to individual cells, such as A1, they can also refer to a group or range of cells. You identify ranges of cells by the starting and ending cells. In the case of ranges that occupy multiple rows and columns, you’ll use the cell references of the cells in the upper left and lower right corners of the range.
Separate the limits of a cell range with a colon ( : ), which tells Excel or Google Sheets to include all the cells between these start and end points. So to grab everything between Cell A1 and D10, you’d type, «A1:D10.»
To capture an entire row or column, you still use the cell range notation, but you only use the column numbers or row letters. To include everything in Column A, the range will be «A:A.» To use Row 8, you’ll type, «8:8.» For everything in Columns B through D, you’ll type, «B:D.»
Copying Formulas and Different Cell References
Another advantage of using cell references in formulas is that they make it easier to copy formulas from one location to another in a worksheet or workbook.
Relative cell references change when copied to reflect the new location of the formula. The name relative comes from the fact that they change relative to their location when copied. This is usually a good thing, and it is why relative cell references are the default type of reference used in formulas.
At times, cell references need to stay static when formulas are copied. Copying formulas is the other major use of an absolute reference such as =$A$2+$A$4. The values in those references don’t change when you copy them.
At other times, you may want part of a cell reference to change, such as the column letter, while having the row number stay static or vice versa when you copy the formula. In this case, you’ll use a mixed cell reference such as =$A2+A$4. Whichever part of the reference has a dollar sign attached to it stays static, while the other part changes when copied.
So for $A2, when it is copied, the column letter is always A, but the row numbers change to $A3, $A4, $A5, and so on.
The decision to use the different cell references when creating the formula is based on the location of the data that the copied formulas will use.
Toggling Between Types of Cell References
The easiest way to change cell references from relative to absolute or mixed is to press the F4 key on the keyboard. To change existing cell references, Excel must be in edit mode, which you enter by double-clicking on a cell with the mouse pointer or by pressing the F2 key on the keyboard.
To convert relative cell references to absolute or mixed cell references:
- Press F4 once to create a cell reference fully absolute, such as $A$6.
- Press F4 a second time to create a mixed reference where the row number is absolute, such as A$6.
- Press F4 a third time to create a mixed reference where the column letter is absolute, such as $A6.
- Press F4 a fourth time to make the cell reference relative again, such as A6.
Thanks for letting us know!
Get the Latest Tech News Delivered Every Day
Subscribe
Last update on August 19 2022 21:50:34 (UTC/GMT +8 hours)
Introduction
There are two types of cell references: relative and absolute. Relative and absolute references behave differently when copied and filled to other cells. Relative references change when a formula is copied to another cell. Absolute references, on the other hand, remain constant, no matter where they are copied.
Relative Cell References
The default cell references are relative references. See the picture below.
When copied across multiple cells, they change based on the relative position of rows and columns. For example, if you copy the formula =C2*D2 from row 2 to row 3, the formula will become =C3*D3. Relative references are especially convenient whenever you need to repeat the same calculation across multiple rows or columns.
Press Enter key on the keyboard. The formula will be calculated, and the result will be displayed in the cell.
To create and copy a formula using relative references:
In the following example, we want to create a formula that will calculate the gross by multiplying the units with rate/unit. It is better to create a formula and copy the formula for each row rather than to create a formula for each row. Here in the example below we have written the formula in cell E2 and drag it below or double click the autofill option or copy it to the other rows. The cells will be relatively changed.
Here is the picture below after copying the formula for each of the rows.
Here in the picture below shows the formula in cell E7 is referencing the row 7, i.e. C7 * D7.
Absolute Cell Reference
Sometimes we need to copy a formula that, the content of some cell associated with this formulas must be fixed. In that condition, the relative cell references can be used. In this type of cell references, we can keep the row and/or column constant.
An absolute reference is designated in a formula by the addition of a dollar sign ($). It can precede the column reference or the row reference or both.
The table below shows that the usage of absolute cell reference.
Absolute Reference | Particular | Keys in the keyboard |
$A$1 | The column and the row do not change when copied. | Press F4. |
A$1 | The row does not change when copied. | Press F4 twice . |
$A1 | The column does not change when copied. | Press F4 three times . |
You will generally use the $A$1 format when creating formulas that contain absolute references. The other two formats are used much less frequently.
When writing a formula, you can press the F4 key on your keyboard to switch between relative and absolute cell references. This is an easy way to quickly insert an absolute reference.
Create and copy a formula using absolute references:
If we want to calculate the commission for each row by 5% of gross, we have to use the absolute cell reference. By default the cell reference is relative and it makes changes the cell address at the time of copying the formula.
Here in the example below, we have written the formula in the cell F5. Here we see that the E5 is multiplying with $D$1, that means that every value of column E will be multiplied by the value of column D and row 1. The $ (dollar) sign have restricted to change the cell address. Press enter key to the cell F5 to see the result or to stay on that press Ctrl+enter
Now locate the fill handle in the cell where the formula has been written and press and hold the mouse key on the fill handle then drag upto the cell you desire to copy and release the mouse button. You can also double-click on the fill handle to copy the formula upto the cell automatically
Here is the picture below shows, after copies the formula for a number of rows.
Now you see, how the absolute cell reference works.
Mixed Reference
Sometimes we need such a combination of formulas that contain such a cell references the can be static for the rows or columns, i.e. a combination of relative and absolute references (mixed reference).
The below sheet shows that a company has set a target for the 1st. Qtr. for two product TV (LCD) and TV (LED) and also specified the achievable target for the months of the Qtr. and calculate the units to be achieved for the 3 months. Suppose the target is 75000 and 12000
See the following example, we want to get the number of units to be produced for January to get the setting target. Here in the sheet according to the condition we have multiplied B2 by B7.
And now, we need to copy the formula for the month of February, and here we see the cell references are relative and the result is incorrect. See the picture below.
To prevent this situation we have to use the mixed cell references. We have used $B2, that means if we copy the formula horizontally or vertically the column will be absolute and row will be relative. In the same way, we have used C$7, that means if we copy the formula horizontally or vertically the column will be relative but row will be static. Here is the picture below.
See the picture below for TV (LCD) for the month February.
See the picture below for TV (LED) for the month of January.
How using cell references with multiple worksheets ?
Excel allows cell references not only within one sheet of a workbook but also can update many sheets at a time with the changes of value of one cell of a sheet. To work with more sheets, the cell address denotes like the picture below.
Here is the picture below shows the active sheet master and another inactive sheet transaction. We want to write the formula in transaction sheet with the usage of cell reference of master sheet.
Here is the picture below. Here in the formula [master!$B2] indicating that, the sheet is ‘master’ and the cell address is $B2, that is in the sheet ‘master’ the column B is absolute and row is relative. In the formula [master!B$7] indicating that, the sheet is ‘master’ and the cell address is B$7, that is in the sheet ‘master’ the column is relative and row7 is absolute. In the formula [transaction!$B2] indicating that, the sheet is ‘transaction’ and the cell address is $B2, that is in the sheet ‘transaction’ the column B is absolute and row is relative.
Note that if a worksheet name contains a space, you will need to include single quotation marks (‘ ‘) around the name. For example ‘Cell Reference’!|$F$2.
Previous: Basics of Cell — Excel 2013
Next:
Functions Basic — Excel 2013
Cell reference is the address or name of a cell or a range of cells. It is the combination of column name and row number. It helps the software to identify the cell from where the data/value is to be used in the formula. We can reference the cell of other worksheets and also of other programs.
- Referencing the cell of other worksheets is known as External referencing.
- Referencing the cell of other programs is known as Remote referencing.
There are two types of cell references in Excel:
- Relative reference
- Absolute reference
Relative Reference
Relative reference is the default cell reference in Excel. It is simply the combination of column name and row number without any dollar ($) sign. When you copy the formula from one cell to another the relative cell address changes depending on the relative position of column and row. C1, D2, E4, etc are examples of relative cell references. Relative references are used when we want to perform a similar operation on multiple cells and the formula must change according to the relative address of column and row.
For example, We want to add the marks of two subjects entered in column A and column B and display the result in column C. Here, we will use relative reference so that the same rows of column’s A and B are added.
Steps to Use Relative Reference:
Step 1: We write the formula in any cell and press enter so that it is calculated. In this example, we write the formula(= B2 + A2) in cell C2 and press enter to calculate the formula.
Step 2: Now click on the Fill handle at the corner of cell which contains the formula(C2).
Step 3: Drag the Fill handle up to the cells you want to fill. In our example, we will drag it till cell C10.
Step 4: Now we can see that the addition operation is performed between the cell A2 and B2, A3 and B3 and so on.
Step 5: You can double-click on any cell to check that the operation is performed in between which cells.
Thus, in the above example, we see that the relative address of cell A2 changes to A3, A4, and so on, similarly the relative address changes for column B, depending on the relative position of the row.
Absolute Reference
Absolute reference is the cell reference in which the row and column are made constant by adding the dollar ($) sign before the column name and row number. The absolute reference does not change as you copy the formula from one cell to other. If either the row or the column is made constant then it is known as a mixed reference. You can also press the F4 key to make any cell reference constant. $A$1, $B$3 are examples of absolute cell reference.
For example, We want to multiply the sum of marks of two subjects, entered in column A and column B, with the percentage entered in cell C2 and display the result in column D. Here, we will use absolute reference so that the address of cell C2 remains constant and does not change with the relative position of column and rows.
Steps to Use Absolute Reference:
Step 1: We write the formula in any cell and press enter so that it is calculated. In this example, we write the formula(=(A2+B2)*$C$2) in cell D2 and press enter to calculate the formula.
Step 2: Now click on the Fill handle at the corner of cell which contains the formula(D2).
Step 3: Drag the Fill handle up to the cells you want to fill. In our example, we will drag it till cell D10.
Step 4: Now we can see that the percentage is calculated in column D.
Step 5: You can double-click on any cell to check that the operation is performed in between which cells, and we see that the address of cell C2 does not change.
Thus, in the above example we see that the address of cell C2 is not changed whereas the address of column A and B changes with the relative position of the row and column, this happened because we used the absolute address of the cell C2.