Absolute vs relative cell referencing in Excel with the $A$1 reference

Download the Cell References Practice Workbook

Practice relative, absolute and mixed references on real examples. Write the formula once, copy it across and down, and see which dollar signs make it work.

Why Use Cell References in Excel?

Using cell references in Excel makes your formulas more dynamic. Instead of hardcoding numbers, referencing cells means your formulas adjust automatically whenever data changes. This saves you time and reduces the chance of errors.

Excel’s dollar sign can seem confusing, but it’s an important tool for controlling cell references.

Whether you’re copying a formula across cells or wanting to lock a specific value, understanding how and when to use the dollar sign will make your work easier.

New to formulas? Start with the difference between Excel formulas and functions.

Example: Add Two Cells with References

Imagine you want to add two numbers. You could type =10 + 20 directly into Excel.

Excel formula =10+20 typed with hardcoded numbers

But if these numbers change, you would need to update your formula each time.

Instead, you can reference the cells holding these values:

  • Use =A1 + A2 if A1 contains 10 and A2 contains 20.
Formula =A1+A2 adding the values in two cells

Now, if the values in A1 or A2 change, Excel will automatically recalculate the answer for you.

Result updating from 30 to 575 after the value in A1 changes

It’s like telling Excel, “Take the value in cell A1 and add it to the value in cell A2.” This way, your formula always stays up-to-date.

Relative References: How Excel Adjusts Formulas

By default, Excel uses relative references. This means the reference will change when you copy the formula to another cell.

For example, let’s say you write a formula in cell C2 to subtract B2 from A2 (i.e., =A2 - B2).

When you copy the formula to C3, it adjusts to subtract B3 from A3 (=A3 – B3).

Relative references from =A2-B2 to =A5-B5 copied down a column

This is helpful when you need the same pattern across multiple rows or columns.

Absolute References: Lock a Cell with the Dollar Sign

An absolute reference is fixed. If you want a reference to stay the same when copying a formula, use the dollar sign ($).

For instance:

=$A$1: The dollar signs lock both the row and column. No matter where you copy the formula, it will always point to cell A1.

Relative reference A1 next to absolute reference $A$1

Example: Apply One Discount Cell to Every Row

Imagine you have a discount rate in cell B1 that you want to apply to every price in column B.

In C4, enter =B4*$B$1 and copy it down. The dollar signs keep every formula pointing to B1, so each row returns its discount amount.

Formulas multiplying each price by the discount in $B$1

Switch Reference Types with F4

Typing dollar signs by hand is slow. Click a reference in the formula bar and press F4. Each press moves to the next type:

  • Once: $A$1 locks the column and the row
  • Twice: A$1 locks only the row
  • Three times: $A1 locks only the column
  • Four times: A1 goes back to relative

On a Mac, press Cmd+T. F4 is one of the Excel shortcuts worth learning first.

Mixed References: Lock Only the Row or Column

Sometimes, you only need to lock a row or a column, not both. This is called a mixed reference:

  • $A1: The column is locked, but the row can change.
  • A$1: The row is locked, but the column can change.

When Do You Use Mixed References?

Mixed references are helpful when you copy a formula across multiple rows or columns but still want part of the reference to stay the same.

Example: Mixed References in Excel

Imagine you have retail prices in column B, and two outlet discounts in cells C1 and D1.

You want to calculate the final outlet prices for the items listed in cells A4 to A7 using these discounts.

Retail prices in column B with two outlet discounts in C1 and D1

Here’s how to do it:

Write the Formula Once

In cell C4, write a formula that calculates the outlet price by applying the discount in C1 to the retail price in B4:

=$B4 * (1 - C$1)
  • The reference $B4 locks the column but allows the row to change when copied down. This ensures that the formula always refers to the retail price in column B.
  • The reference C$1 locks the row but allows the column to change when copying the formula across to other columns (like D1 for Outlet B).
Mixed reference formula =$B4*(1-C$1) in cell C4

Copy the Formula Down and Across

  • Copy down: Copy the formula from C4 to C5, C6, and C7. The reference $B4 will adjust to $B5, $B6, etc., allowing each retail price to be used.
  • Copy Across: Now highlight C4 to C7 and drag the formula to column D. The reference to C$1 automatically updates to D$1, applying the discount for Outlet B, while the retail price still points to column B.
Mixed reference formula copied to column D, now pointing to D$1

Key Takeaway

  • Use $B4 to keep the retail price in column B fixed.
  • Use C$1 to keep the discount on row 1 but allow the column to change.

How to Check Your References

Go to the last cell of your results, the bottom-right corner of the range.

Press F2 to open the formula. Excel colors each reference and draws a matching box around the cells it uses.

If the boxes sit where you expect, every cell in between is right too. If a total box has drifted down or across, you are missing a dollar sign.

Copy a Formula Without Changing Its References

Copying formulas in Excel should save you time, not cause headaches.

But if you’ve ever copied a formula and found that Excel changed the cell references, you know how frustrating it can be.

Suddenly, your data is off, and your calculations don’t add up.

Check out this guide to learn simple tricks to copy formulas without changing those all-important cell references.

It covers filling down a column, copying across sheets and moving formulas to another workbook.

Download the Cell References Practice Workbook

Get the Practice Workbook

Try each reference type yourself before you use it on your own data.

Frequently Asked Questions

What is the difference between relative and absolute cell references in Excel?

A relative reference such as A1 changes when you copy the formula, so each row or column uses its own cells. An absolute reference such as $A$1 stays fixed and always points to the same cell, no matter where you copy the formula.

What does the dollar sign mean in an Excel formula?

The dollar sign locks the part of the reference that follows it. In $A$1 both the column and the row are locked. In $A1 only the column is locked, and in A$1 only the row is locked.

What is a mixed cell reference?

A mixed reference locks either the column or the row, but not both. Use $A1 when the column must stay fixed as you copy across, and A$1 when the row must stay fixed as you copy down. This lets one formula fill a whole table.

What is the shortcut for absolute references in Excel?

Click a reference in the formula bar and press F4. Each press cycles through $A$1, A$1, $A1 and back to A1. On a Mac, press Cmd+T.

Why does my formula give wrong results when I copy it down?

The references moved with the formula. If every row should use the same rate or divide by the same total, lock that cell with dollar signs, for example $B$1. Then check the last cell of the range with F2 to see which cells the formula uses.

Can I lock a reference without dollar signs?

Yes. Select the cell, type a name such as Rate in the Name Box and press Enter. Use that name in your formulas. A named range points to the same cell wherever you copy the formula.

Leila Gharani

Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.