Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

Relative, Absolute, and Mixed Cell References in Google Sheets

Understand A2, $A$2, $A2, and A$2, then copy formulas while keeping shared inputs fixed and row-specific values relative.

Table of Contents

Google Sheets formulas can use relative, absolute, or mixed cell references. A relative reference changes when you copy a formula. A dollar sign locks the column or row for copying: $A$2 locks both, $A2 locks the column, and A$2 locks the row.

Relative references

By default, all cell references are relative references. When copied across multiple cells, they change based on the relative positions of the rows and columns. For example, if you copy the formula =A1+B1 from row 1 to row 2, the formula will become =A2+B2. Relative references are especially convenient whenever you need to repeat the same calculation across multiple rows or columns.

How to create and copy formulas using relative references

The following example aims to create a formula that multiplies the price of each item by the quantity. Instead of creating a new formula for each row, you can create a single formula in cell D4 and then copy it to the other rows. Relative references will be used to ensure the formula calculates the exact total for each item.

1. Select the cell that will contain the formula. For example, we would select cell D4.

Types of cell references Picture 1

2. Enter the formula to calculate the desired value. For example, you would enter =B4*C4.

Types of cell references Picture 2

3. Press Enter on the keyboard. The formula will be calculated and the result will be displayed in the cell.

4. Select the cell you want to copy. For example, select cell D4 . The fill handle will appear in the bottom right corner of the cell.

Types of cell references Picture 3

5. Click and drag the fill handle to the cells you want to fill. For example, we would select cells D5:D13.

Types of cell references Picture 4

6. Release the mouse button. The formula will be copied to the selected cells with relative references, displaying the result in each cell.

Types of cell references Picture 5

You can double-click on filled cells to check the accuracy of the formula. For example, D5 should contain =B5*C5 and D6 should contain =B6*C6. Check the first and last filled rows so a misplaced drag does not go unnoticed.

Types of cell references Picture 6

Absolute and mixed references

Use a fixed reference for a shared input, such as a rate or multiplier used by every row. Lock both parts when the formula must always use the same cell; lock only one part when copying across a two-dimensional table.

An absolute reference is specified in a formula by adding a dollar sign ($). It can precede a column reference, a row reference, or both.

Types of cell references Picture 7

Choose the reference for the direction in which you will copy the formula. The dollar sign applies only to the part immediately after it; it has no currency meaning here.

Compare the four reference forms

If a formula is copied one column right and one row down, its references change as follows:

Original referenceAfter copyingLocked part
A2B3None
$A2$A3Column A
A$2B$2Row 2
$A$2$A$2Column and row

Copy a formula with an absolute reference

This separate example calculates a tax amount in column D using a hypothetical 7.5% rate in E2. Enter the rate as 7.5% or 0.075, not 7.5. Keep $E$2 fixed while the price and quantity references change for each row. This calculates the tax amount only, not the total including tax.

1. Select the cell that will contain the formula. For example, we would select cell D4.

Types of cell references Picture 8

2. Enter the formula to calculate the desired value. For example, you would enter =(B4*C4)*$E$2 , making $E$2 an absolute reference.

Types of cell references Picture 9

3. Press Enter on the keyboard. The formula will perform the calculation, and the result will be displayed in the cell.

4. Select the cell you want to copy. For example, select cell D4 . The fill handle will appear in the bottom right corner of the cell.

Types of cell references Picture 10

5. Click and drag the fill handle into the cells you want to fill (cells D5:D13 in the example).

Types of cell references Picture 11

6. Release the mouse button. The formula will be copied to the selected cells with absolute references, and the values ​​in each cell will be calculated.

Types of cell references Picture 12

You can double-click on filled cells to check the accuracy of the formula. For example, the next row should contain =(B5*C5)*$E$2. B4 and C4 change to B5 and C5, while the rate reference remains $E$2.

Types of cell references Picture 13

If you omit the locks from E2, copying the formula down changes it to E3, E4, and so on. Those cells may be empty or contain unrelated data. Inspect the formula if results unexpectedly become zero or use a different rate.

Types of cell references Picture 14

For more formula examples, see useful Google Sheets functions. If a rate looks wrong, check percentage formatting and stored values as well as the reference locks.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.