Excel Relative and Absolute Cell References
Last Updated :
10 Jun, 2024
When working with formulas in Excel, it's crucial to understand the difference between relative and absolute cell references. These two types of cell references behave differently when copied or filled into other cells.
Relative cell references change based on their position when a formula is copied to another cell, making them highly useful for repetitive calculations across different rows or columns. Absolute cell references, on the other hand, remain constant regardless of where they are copied, ensuring that a specific cell reference does not change.
By mastering both relative and absolute references, you can enhance your Excel skills, making your data management and formula application more efficient. Whether you're a beginner or an experienced user, knowing how to use these references correctly is essential for accurate and effective spreadsheet work.
What is a Cell Reference in Excel?
A 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 identify the cell from where the data/value is 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.
Types of Cell References in Excel
There are two types of cell references in Excel: Â
- Relative reference
- Absolute reference
Relative Reference in Excel
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.
Relative Reference in ExcelAbsolute Reference in Excel
An 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 another. 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.
Absolute Reference in ExcelHow to Use Excel's Relative Reference - 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 columnsExcel A and B are added.
Step 1: Open Excel and Enter Data
Open your Excel Sheet and enter the data into the Excel sheet. In this example, we are entering marks 1 and 2 in columns A and B respectively with total marks in column C.
Open Excel and Enter the DataNow we need to enter the formula to add marks 1 and 2. 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.
Enter the FormulaStep 3: Click on Fill Handle
Now click on the Fill handle at the corner of the cell which contains the formula(C2).
Click on Fill HandleStep 4: Drag the Handle
Drag the Fill handle up to the cells you want to fill. In our example, we will drag it to cell C10.
Drag the HandleNow we can see that the addition operation is performed between the cells A2 and B2, A3 and B3, and so on.
Total Marks DisplayedYou can double-click on any cell to check that the operation is performed in between which cells.
Check the Performed Action 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.
How to Use Absolute Reference: Example
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.
Step 1: Open Excel and Enter Data
Open your Excel Sheet and enter the data into the Excel sheet. In this example, we are entering marks 1 and 2 in columns A and B respectively with total marks in column C.
Open Excel and Enter the DataWe 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
Enter the FormulaStep 3: Click on Fill Handle
Now click on the Fill handle at the corner of the cell which contains the formula(D2).
Click on Fill HandleStep 4: Drag the Handle
Drag the Fill handle up to the cells you want to fill. In our example, we will drag it to cell D10.
Drag the HandleNow we can see that the percentage is calculated in column D.
Total OutputYou 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.
Check the Performed Action Thus, in the above example, we see that the address of cell C2 is not changed whereas the address of columns A and B changes with the relative position of the row and column, this happened because we used the absolute address of cell C2.
How to use Cell References with Multiple Worksheets in Excel
Step 1: Open Excel and Enter Data
Open your Excel Sheet and enter the data into the Excel sheet. In this example, we are entering marks 1 and 2 in columns A and B respectively with total marks in column C.
Open Excel and Enter the DataStep 2: Locate the Cell for Reference
Locate the Cell for Reference and note down its worksheet name.
Locate the Cell for ReferenceStep 3: Access Second Worksheet
Go to the second worksheet of your Choice and Select it
Access Second WorksheetStep 4: Locate Cell
Go to the Cell where you want to store the value.
Step 5: Enter Equals To followed by Sheet Name and Exclamation
Enter the equal to sign in the selected cell followed by the worksheet name followed by! sign. Hit Enter.
Enter Equals To followed by Sheet Name and ExclamationDifference Between Absolute and Relative cell Reference in Excel
Aspects | Relative Reference | Absolute Reference |
---|
Definition
| Adjusts its location based on the relative position of the formula
|
Remains constant regardless of where it is copied or filled
|
Symbol | Typically represented without any dollar signs ($) | Usually indicated by adding dollar signs ($) before column and row |
Example | If copied from A1 to B1, it changes to B1 | Remains as $A$1 when copied or filled to other cells |
Usage | Useful for calculations that involve moving formulas | Ideal for keeping specific cell references constant |
Syntax | Contains only the column and row references | Contains column and row references with dollar signs ($) |
Example Formula | =A1+B1 | =$A$1+$B$1 |
Also Read: Relative, Absolute ,and Mixed Cell Reference in Excel
Conclusion
Knowing about relative and absolute cell references in Excel helps manage data easily. These concepts let you create dynamic spreadsheets and make your work faster. By mastering them, you can automate tasks and get more done. Keep using these tools to become an Excel pro and make your work easier.
What are the advantages of relative reference in Excel?
Relative references in Excel mean that when you copy a formula to other cells, the program automatically changes the column and row numbers to match where the formula is copied. It adjusts based on how many columns or rows the formula moves.
Which type of referencing occurs in the formula =$ F $12 /$ G $1 +$ M $2?
This is an example of Absolute Referencing.
Similar Reads
Relative, Absolute and Mixed Cell Reference in Excel
Understanding how cell references in Excel work is a cornerstone of effective spreadsheet use. Whether youâre building formulas that auto-adjust to changes, locking a specific cell, or creating dynamic worksheets, the types of cell referencesârelative, absolute, and mixedâplay a vital role. This gui
11 min read
Relative References in Excel Macros
We have two options to refer a cell in Excel VBA Absolute references and Relative references. Â Default Excel records macro in Absolute mode. In this article, we learn about Relative references in Excel VBA. Â We select a cell âA1â, turn on âUse Relative Referenceâ and record a macro to type some text
5 min read
Absolute References in Excel Macros
Excel Macros are incredibly powerful tools that provide the capability to automate repetitive tasks, streamline processes, and save time. When building macros, it's common to use cell references for performing calculations or actions. In some situations, it's important to ensure that these reference
5 min read
Absolute Error and Relative Error: Formula and Equation
Absolute error measures the size of the difference between the estimated value and the true value, whereas relative error expresses this difference as a percentage of the true value. Absolute and relative error are two different methods to calculate the difference between a measured or calculated va
7 min read
Excel VLOOKUP with Dynamic Column Reference
Suppose anytime you work with colossal tables of data and you want to implant a VLOOKUP function that dynamically updates to the accompanying portion as you copy it across. In that case, the VLOOKUP with the COLUMNS capacity is what you truly care about. That is; the col_index_num a piece of the VLO
4 min read
Mixed Cell References in MS Excel
Cell: The row and column in Excel together make a cell. We input the value/data(s) in cells of a spreadsheet. There are three types of values that can be entered into the cell. NumbersAlphabeticFormulas Cell reference ââââââis the address or name of a cell or a range of cell is known as Cell referen
3 min read
What is a Cell in Excel?
MS-EXCELÂ is a part of Microsoft Office suite software. It is an electronic spreadsheet with multiple rows and columns, used for organizing data and performing different calculations. A spreadsheet takes the shape of a table, consisting of rows and columns. A cell is created at the intersection point
6 min read
How to Calculate Mean Absolute Error in Excel?
Mean absolute error is the measure of error between the observed and the expected values in a given data set. Where, O stands for Observed values,E stands for Expected values,n stands for total no. of observations. Now let us understand it with the help of an example. Example: Follow the below steps
1 min read
How to Calculate Mean Absolute Percentage Error in Excel?
In statistics, we often use Forecasting Accuracy which denotes the closeness of a quantity to the actual value of that particular quantity. The actual value is also known as the true value. It basically denotes the degree of closeness or a verification process that is highly used by business profess
2 min read
How to Separate Numbers and Percentages from One Cell in Excel?
While dealing with numbered data, we generally come across a variety of problems that hamper our work. One such problem of separating numbers and percentages from one cell. In this article, we will learn how to separate numbers and percentages from one cell. Data Set The data on which to be performi
4 min read