Absolute Reference in Excel
Last Updated :
-
Blog Author :
Edited by :
Reviewed by :
Table Of Contents
What is Absolute Reference in Excel?
A absolute reference is excel is a cell reference wherein the column and row coordinates remain fixed on copying a formula from one cell to the other. To fix the coordinates, a dollar sign ($) is placed before them. For example, $D$2 is an absolute reference that refers to cell D2. Shortcut to Absolute Reference in excel is the key F4
The purpose of making the cell reference absolute is to keep it static irrespective of whether the formula is copied to a different worksheet or workbook. By default, a cell reference in Excel is relative (like D2), implying that it changes when the formula is copied.
Apart from absolute and relative, a cell reference can also be mixed. In a mixed reference, either the column label or the row number is kept constant (like $D2 or D$2).
Absolute Reference in Excel Shortcut
The shortcut to absolute reference in excel is F4. With a single keystroke, the F4 key on your keyboard allows you to add both dollar signs.
How to Use Absolute References in Excel?
While working in Excel, it is essential to know whether a cell reference should stay absolute, relative reference or mixed. This helps one to carry out the calculations as desired.
With this article, we will focus on absolute references of Excel. Let us consider some examples to understand the working of these references in Excel.
Example #1–Multiplication Formula Using Absolute and Relative References
The following image shows the rates (in USD in column B) of different rooms of a hotel. We want to convert each amount from USD to INR (in column C).
Assume that 1 USD is equal to Rs. 72.5. This USD to INR conversion rate is given in cell C2. Use absolute and relative references in the multiplication excel formula. Explain the cell references used for the given task.
The steps to convert the given amounts from USD to INR by using the stated references are listed as follows:
- Begin by typing the “equal to” sign (=) in cell C5. Next, select cell B5 and type the asterisk (*), which is the symbol for multiplication. Then, select cell C2.
Once the reference C2 appears in cell C5, press the F4 key once. This changes the reference from C2 to $C$2. The entire formula (=B5*$C$2) is shown in the following image. - Once the formula has been entered in cell C5, press the “Enter” key. The output is 906250, as shown in the following image.
Hence, $12,500 is equal to Rs. 906,250. So, the first USD amount has been converted to INR.
Note: Please ignore the small checkbox displayed in cell C5 of the following image.
- Drag the formula of cell C5 till cell C7. For dragging, use the fill handle displayed at the bottom-right corner of cell C5.
The outputs for the range C5:C7 are shown in the following image. Notice that though cells C5, C6, and C7 are selected, the formula of only cell C5 is shown in the formula bar. Further, the output of cell C7 is shown in a red box.
Note: Please ignore the checkboxes appearing in cells C5, C6, and C7 on the left side. These checkboxes are not an outcome of the multiplication formula entered in these cells.
Explanation of the cell references: In the formulas of column C, the first cell reference is relative (B5, B6, and B7), while the second cell reference is absolute ($C$2). The reason is that on copying the formula from cell C5 to C7, we wanted the first reference to change and the second reference to stay constant.
As a result, B5 (in cell C5) changes to B6 (in cell C6) and further changes to B7 (in cell B7). However, the reference $C$2 stays the same in cells C5, C6, and C7. So, the aim is to multiply the different amounts of column B with the same conversion rate of cell C2.
Example #2–SUMIFS Formula Using Absolute and Mixed References
The following image shows the sales revenue generated (in $ in column C) in three months (column B) by five sales managers (in column A) of an organization. The three months are January, February, and March. The five sales managers are John, Shub, Kavish, Raj, and Sanju.
Since some sales managers have made multiple sales in a month, their names appear more than once against a single month. Sum the sales revenues generated by each manager in a particular month. Use the SUMIFS function of Excel.
Further, use the following types of cell references for the given task:
- For “sum_range,” “criteria_range1,” and “criteria_range2,” use absolute excel references.
- For “criteria1” and “criteria2,” use mixed references.
Explain the formula and the cell references used.
The steps to perform the given task by using the SUMIFS function and the stated references are listed as follows:
Step 1: Write the names of the five managers in the range E2:E6. Enter the names of the three months in the range F1 to H1. All these names (shown in the following image) will be used in the SUMIFS formula one at a time.
Step 2: Enter the following formula in cell F2.
“=SUMIFS($C$2:$C$17,$A$2:$A$17,$E2,$B$2:$B$17,F$1)”
This is shown in the succeeding image.
Note: Please ignore the figures of cells G2 and H2 at this step.
Step 3: Drag the formula of cell F2 horizontally (till cell H2) and vertically (till cell F6). Likewise, drag the formula of cells F3, F4, F5, and F6 horizontally till cells H3, H4, H5, and H6 respectively.
The outputs of all the SUMIFS formulas are shown in the range F2:H6 of the following image. Hence, the sales revenue generated by all the managers in the given months (January, February, and March) has been obtained.
Notice that the cells containing a hyphen (F6, G5, and H4) imply that a sale has not been made in that month by the respective manager.
Explanation of the formula and the cell references: The formula of step 1 works as follows:
- The “sum_range” supplied to the SUMIFS function is $C$2:$C$17. The numbers of this range are summed subject to the conditions (or criteria) entered in the formula. We have used absolute cell references in the “sum_range.” This is because we do not want the references to change as the formula is copied to the remaining cells of the range F2:H6.
- The “criteria_range1” supplied to the SUMIFS function is $A$2:$A$17. This range is evaluated for “criteria1.” We have again used absolute excel references in “criteria_range1.” The reason is that the “criteria_range1” stays the same across all the SUMIFS formulas of the range F2:H6.
- The “criteria1” supplied to the SUMIFS function is $E2. Since cell E2 contains the name “John,” the SUMIFS function checks the range A2:A17 for this name. We have used a mixed reference ($E2) for “criteria1” because we want its column label (E) to be fixed and the row number (2) to be variable. This enables the SUMIFS function to check the range A2:A17 for the values of cells E2, E3, E4, E5, and E6. So, each cell of column E (rows 2 to 6) serves as “criteria 1” in the different SUMIFS formulas of the range F2:H6.
- The “criteria_range2” supplied to the SUMIFS function is $B$2:$B$17. This range is evaluated for “criteria2.” We have used absolute references in this range because we want the same range (B2:B17) to be evaluated each time for “criteria2.”
- The “criteria2” supplied to the SUMIFS function is F$1. Cell F1 contains the value “Jan.” So, the SUMIFS function checks the range B2:B17 for the value “Jan.” We have used a mixed reference (F$1) for “criteria2.” This is because we want the SUMIFS function to check the range B2:B17 for the values of cells F1, G1, and H1. Thus, the column label changes from F to G and finally to H, while the row number stays constant at 1.
The SUMIFS formula of step 1 checks for two conditions (criteria) “John” and “Jan” in the ranges A2:A17 and B2:B17 respectively. Further, those values of the range C2:C17 are summed that satisfy both these conditions. So, only the number 56,928 satisfies both these conditions. Hence, the output is 56,928.
In the same way, the SUMIFS formulas of the remaining range F2:H6 work.
Note: The SUMIFS function sums those values that satisfy multiple criteria. For the syntax of the SUMIFS function, click the hyperlink given before step 1 of this example.
Frequently Asked Questions
An absolute reference in excel is one in which both the column label and the row number are fixed by placing a dollar sign ($) before them. For example, $H$5 is an absolute cell reference.
To create an absolute cell reference in Excel, follow either of the listed methods:
• Insert a dollar sign ($) in the cell reference manually. This sign should precede the column label and the row number.
• Enter a relative reference and press the F4 key to make it absolute. This key should be pressed only once.
Note: To insert a relative reference in a formula, simply select the cell or the range to be referenced. Excel inserts a relative reference by default.
Absolute references of Excel should be used in the following situations:
a. When there is a need to move the formula to a different worksheet or workbook without impacting the cell references
b. When the formula needs to be dragged to the remaining cells of the range, but the column and row coordinates should stay fixed
c. When multiple calculations need to be performed by referring to a particular cell again and again
Removing absolute references from a cell implies changing them to either mixed or relative references. For this, follow either of the listed methods:
• Manually delete the dollar sign ($), which precedes the column label and/or the row number. The cell reference changes to either mixed or relative depending on the number of deletions made.
• Double-click the cell containing the formula. Select the absolute cell reference and press the F4 key once. The cell reference changes to mixed where the column label is variable and the row number is fixed.
Note: Once the reference has been changed in the preceding bullet points, press either the “Enter” or the “Ctrl+Shift+Enter” keys to complete the formula.
The differences between absolute and relative cell references are listed as follows:
a. Absolute references stay static irrespective of where they are copied, while relative references change when copied to a different location.
b. In an absolute reference, both column and row coordinates are fixed. On the other hand, in a relative reference, both column and row coordinates are variable.
c. An absolute reference is used when calculations involve a specific cell to be referred multiple times. In contrast, a relative reference is used when the same calculation needs to be repeated across various columns and/or rows.
d. An absolute reference is inserted either manually or by pressing the F4 key. In comparison, a relative reference is inserted by simply selecting the cell or the range to be referenced.
Before applying formulas in Excel, it is essential to know the differences between the two cell references (absolute and relative). This helps choose the appropriate cell reference.
Recommended Articles
This has been a guide to Absolute Reference in Excel. Here we explain how to use Absolute Cell Reference in Excel along its shortcut and practical examples. You may also look at these useful tools of Excel–
- Relative References in Excel
- Watch Window in Excel
- Formatting in Excel
- How to Name Range in Excel?