An absolute cell reference changes the cell references when the formula is copied to a new location.

By default, a cell reference is relative. For example, when 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), and in the same row (2). A formula that contains a relative cell reference changes as you copy it from one cell to another. For example, if you copy the formula =A2+B2 from cell C2 to C3, the formula references in C3 adjust downward by one row and become =A3+B3.

If you want to maintain the original cell reference when you copy it, you "lock" it by putting a dollar sign ($) before the cell and column references. For example, when you copy the formula =$A$2+$B$2 from C2 to D2, the formula stays exactly the same. This is an absolute reference.

In less frequent cases, you may want to make a cell reference "mixed" by preceding either the column or the row value with a dollar sign to "lock" either the column or the row (for example, $A2 or B$3). To change the type of cell reference:

  1. Select the cell that contains the cell reference that you want to change.

  2. In the formula bar

    An absolute cell reference changes the cell references when the formula is copied to a new location.
    , click the cell reference that you want to change.

  3. Press

    An absolute cell reference changes the cell references when the formula is copied to a new location.
    + T to move through the combinations.

    The following table summarizes what happens if a formula in cell A1, which contains a reference, is copied. Specifically, the formula is copied two cells down and two cells to the right, to cell C3.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

Current reference (description):

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)

An absolute cell reference changes the cell references when the formula is copied to a new location.
An absolute cell reference changes the cell references when the formula is copied to a new location.
An absolute cell reference changes the cell references when the formula is copied to a new location.

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.

An absolute cell reference changes the cell references when the formula is copied to a new location.

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:

  1. Select the cell that contains the formula.

  2. In the formula bar

    An absolute cell reference changes the cell references when the formula is copied to a new location.
    , select the reference that you want to change.

  3. 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:

An absolute cell reference changes the cell references when the formula is copied to a new location.

$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)

An absolute cell reference changes the cell references when the formula is copied to a new location.
An absolute cell reference changes the cell references when the formula is copied to a new location.
An absolute cell reference changes the cell references when the formula is copied to a new location.

/en/excel2016/creating-more-complex-formulas/content/

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.

Optional: Download our practice workbook.

Watch the video below to learn more about cell references.

By default, all cell references are relative references. When copied across multiple cells, they change based on the relative position of 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.

To create and copy a formula using relative references:

In the following example, we want to create a formula that will multiply each item's price by the quantity. Instead of creating a new formula for each row, we can create a single formula in cell D4 and then copy it to the other rows. We'll use relative references so the formula calculates the total for each item correctly.

  1. Select the cell that will contain the formula. In our example, we'll select cell D4.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

  2. Enter the formula to calculate the desired value. In our example, we'll type =B4*C4.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

  3. Press Enter on your keyboard. The formula will be calculated, and the result will be displayed in the cell.
  4. Locate the fill handle in the bottom-right corner of the desired cell. In our example, we'll locate the fill handle for cell D4.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

  5. Click and drag the fill handle over the cells you want to fill. In our example, we'll select cells D5:D13.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

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

    An absolute cell reference changes the cell references when the formula is copied to a new location.

You can double-click the filled cells to check their formulas for accuracy. The relative cell references should be different for each cell, depending on their rows.

An absolute cell reference changes the cell references when the formula is copied to a new location.

Absolute references

There may be times when you do not want a cell reference to change when filling cells. Unlike relative references, absolute references do not change when copied or filled. You can use an absolute reference to keep a row and/or column constant.

An absolute reference is designated in a formula by the addition of a dollar sign ($) before the column and row. If it precedes the column or row (but not both), it's known as a mixed reference.

An absolute cell reference changes the cell references when the formula is copied to a new location.

You will use the relative (A2) and absolute ($A$2) formats in most formulas. Mixed references are used less frequently.

When writing a formula in Microsoft Excel, you can press the F4 key on your keyboard to switch between relative, absolute, and mixed cell references, as shown in the video below. This is an easy way to quickly insert an absolute reference.

In the example below, we're going to use cell E2 (which contains the tax rate at 7.5%) to calculate the sales tax for each item in column D. To make sure the reference to the tax rate stays constant—even when the formula is copied and filled to other cells—we'll need to make cell $E$2 an absolute reference.

  1. Select the cell that will contain the formula. In our example, we'll select cell D4.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

  2. Enter the formula to calculate the desired value. In our example, we'll type =(B4*C4)*$E$2, making $E$2 an absolute reference.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

  3. Press Enter on your keyboard. The formula will calculate, and the result will display in the cell.
  4. Locate the fill handle in the bottom-right corner of the desired cell. In our example, we'll locate the fill handle for cell D4.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

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

    An absolute cell reference changes the cell references when the formula is copied to a new location.

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

    An absolute cell reference changes the cell references when the formula is copied to a new location.

You can double-click the filled cells to check their formulas for accuracy. The absolute reference should be the same for each cell, while the other references are relative to the cell's row.

An absolute cell reference changes the cell references when the formula is copied to a new location.

Be sure to include the dollar sign ($) whenever you're making an absolute reference across multiple cells. The dollar signs were omitted in the example below. This caused Excel to interpret it as a relative reference, producing an incorrect result when copied to other cells.

An absolute cell reference changes the cell references when the formula is copied to a new location.

Using cell references with multiple worksheets

Excel allows you to refer to any cell on any worksheet, which can be especially helpful if you want to reference a specific value from one worksheet to another. To do this, you'll simply need to begin the cell reference with the worksheet name followed by an exclamation point (!). For example, if you wanted to reference cell A1 on Sheet1, its cell reference would be Sheet1!A1.

Note that if a worksheet name contains a space, you'll need to include single quotation marks (' ') around the name. For example, if you wanted to reference cell A1 on a worksheet named July Budget, its cell reference would be 'July Budget'!A1.

To reference cells across worksheets:

In our example below, we'll refer to a cell with a calculated value between two worksheets. This will allow us to use the exact same value on two different worksheets without rewriting the formula or copying data.

  1. Locate the cell you want to reference, and note its worksheet. In our example, we want to reference cell E14 on the Menu Order worksheet.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

  2. Navigate to the desired worksheet. In our example, we'll select the Catering Invoice worksheet.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

  3. Locate and select the cell where you want the value to appear. In our example, we'll select cell C4.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

  4. Type the equals sign (=), the sheet name followed by an exclamation point (!), and the cell address. In our example, we'll type ='Menu Order'!E14.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

  5. Press Enter on your keyboard. The value of the referenced cell will appear. Now, if the value of cell E14 changes on the Menu Order worksheet, it will be updated automatically on the Catering Invoice worksheet.

    An absolute cell reference changes the cell references when the formula is copied to a new location.

If you rename your worksheet at a later point, the cell reference will be updated automatically to reflect the new worksheet name.

If you enter a worksheet name incorrectly, the #REF! error will appear in the cell. In our example below, we've mistyped the name of the worksheet. To edit, ignore, or investigate the error, click the Error button beside the cell and choose an option from the menu.

An absolute cell reference changes the cell references when the formula is copied to a new location.

Challenge!

  1. Open our practice workbook.
  2. Click the Paper Goods tab in the bottom-left of the workbook.
  3. In cell D4, enter a formula that multiplies the unit price in B4, the quantity in C4, and the tax rate in E2. Make sure to use an absolute cell reference for the tax rate because it will be the same in every cell.
  4. Use the fill handle to copy the formula you just created to cells D5:D12.
  5. Change the tax rate in cell E2 to 6.5%. Notice that all of your cells have updated. When you're finished, your workbook should look like this:

    An absolute cell reference changes the cell references when the formula is copied to a new location.

  6. Click the Catering Invoice tab.
  7. Delete the value in cell C5 and replace it with a reference to the total cost of the paper goods. Hint: The cost of the paper goods is in cell E13 on the Paper Goods worksheet.
  8. Use the same steps from above to calculate the sales tax for each item on the Menu Order worksheet. The total cost in cell E14 should update. Then, in cell C4 of the Catering Invoice worksheet, create a cell reference to the total you just calculated. Note: If you used our practice workbook to follow along during the lesson, you may have already completed this step.
  9. When you're finished, the Catering Invoice worksheet should look something like this:

    An absolute cell reference changes the cell references when the formula is copied to a new location.

/en/excel2016/functions/content/