Excel Relative and Absolute Cell References

Microsoft Excel Tutorial

This tutorial is from Karyn Stille.  It is located at: http://www.awardsites.com/tutorials/excel/cell_ref-01.htm.
She is an experienced software trainer who has helped thousands understand Microsoft Office. 
Her tutorials site and free newsletter get rave reviews from site visitors and subscribers.

Excel uses two types of cell references to create formulas - Relative and Absolute.  Each has its own purpose.  Read on to determine which type of cell reference to use for your formula.  Summary of references.

Relative Cell References

This is the most widely used type of cell reference in formulas.  Relative cell references are basic cell references that adjust and change when copied or when using AutoFill. For more information on AutoFill, see Excel AutoFill tutorial.

Example:

=SUM(B5:B8), as shown below, changes to =SUM(C5:C8) when copied across to the next cell.

""

""


Absolute Cell References

Situations arise in which the cell reference must remain the same when copied or when using AutoFill.  For more information on AutoFill, see Excel AutoFill tutorial.  Dollar signs are used to hold a column and/or row reference constant.

Example:

In the example below, when calculating commissions for sales staff, you would not want cell B10 to change when copying the formula down.  You want both the column and the row to remain the same to refer to that exact cell.  By using $B$10 in the formula, neither changes when copied.

""

""

A more complicated example:

Let's pretend that you need to calculate the prices of items in stock with two different price discounts. Take a look at the worksheet below.

""

Examine the formula in cell E4. By making the first cell reference $C4 , you keep the column from changing when copied across, but allow the row to change when copying down to accommodate the prices of the different items going down.  By making the last cell reference A$12, you keep the row number from changing when copied down, but allow the column to change and reflect discount B when copied across.  Confused?  Check out the graphics below and the cell results.

Copied Across
""

Copied Down
""

Now, you might be thinking, why not just use 10% and 15% in the actual formulas?  Wouldn't that be easier? Yes, if you are sure the discount percentages will never change - which is highly unlikely.  It's more likely that eventually those percentages will need to be adjusted.  By referencing the cells containing 10% and 15% and not the actual numbers, when the percentage changes all you need to do is change the percentage one time in cell A12 and/or B12 instead of rebuilding all of your formulas. Excel would automatically update the discount prices to reflect your discount percentage change.


Summary of absolute cell reference uses

There is a shortcut for placing absolute cell references in your formulas!

When you are typing your formula, after you type a cell reference - press the F4 key.
In this formula, =B4*B10, Excel automatically makes both the column and row cell references absolute - $B$10.
By continuing to press the F4 key, Excel will cycle through all of the absolute reference possibilities.
For example, in this formula , =B4*$B$10, I could have pressed the F4 key to change $B$10 to B$10.
Continuing to press F4 would have resulted in $B10, and finally B10.
Pressing the F4 key changes only the cell reference directly to the left of your insertion point.

Excel cell reference types
$B$10 Allows both the column and the row references to be absolute.
B$10 Allows the row reference to be absolute, but not the column reference.
$B10 Allows the column reference to be absolute, but not the row reference.
B10 Neither the row or column references are absolute.

Editing Cell References

Pressing F2 when a cell is selected allows you to edit the formula directly.
Any cell references used in the formula will be automatically highlighted and will appear in different colors.
These colored squares are referred to as the Range Finders.

Edit references

or using the Sum function

Editing references

You can click and drag any of the colored boxes to new cells to quickly adjust the cell references used in the formula. The four squares in the corners allow you to increase or decrease the range of cells being referred to by dragging these squares with your mouse. As you change the cell references you will see the formula changing automatically.

I hope this tutorial has made the cell reference types "absolutely" clear!


3/11 DGB