8. Relative Cell References
Very early on in the development of spreadsheets it was quickly realised that entering formulas by hand was just too tedious for all but the simplest situtations.
There had to be an automatic way that the spreadsheet itself could generate formulas once a single formula had been entered by the user. And so the idea of Relative Cell Reference came about.
Let's use an example to explain this a little more simply:
Imagine you have a blank worksheet in front of you. In cell A1 you type the number 1. In cell A2 you type in the number 2 and continue until cell A5 where you type the number 5. Your worksheet will look something like this:
A |
B |
C |
D |
|
1 |
1 |
|||
2 |
2 |
|||
3 |
3 |
|||
4 |
4 |
|||
5 |
5 |
Then in cell B1 you type =A1 and press the enter key
A |
B |
C |
D |
|
1 |
1 |
=A1 |
||
2 |
2 |
|||
3 |
3 |
|||
4 |
4 |
|||
5 |
5 |
After pressing the 'enter' key, the formula that you wrote in B1 will pick up the value held in cell A1. It will look like this:
A |
B |
C |
D |
|
1 |
1 |
1 |
||
2 |
2 |
|||
3 |
3 |
|||
4 |
4 |
|||
5 |
5 |
To copy the formula in B1 down to the other cells B2:B5, you would probably use the fill handle in B1 and drag down, so when you release the mouse button a set of extra formulas will have been entered automatically by the spreadsheet software.
The result would look like this:
A |
B |
C |
D |
|
1 |
1 |
1 |
||
2 |
2 |
2 |
||
3 |
3 |
3 |
||
4 |
4 |
4 |
||
5 |
5 |
5 |
The numbers in column B look exactly the same as those in column A.
However, if you were to look at the formulae in column B, they would look like this:
A |
B |
C |
D |
|
1 |
1 |
=A1 |
||
2 |
2 |
=A2 |
||
3 |
3 |
=A3 |
||
4 |
4 |
=A4 |
||
5 |
5 |
=A5 |
What happened when you dragged the formula down from B1 to B2 was that the spreadsheet understood that you were copying the formula down a row and that it needed to track that formula 'relative' to the cell one column to the left on the new row. So =A1 becomes =A2.
DEFINITION: When a formula is copied or replicated to another cell, relative cell referencing alters any cell references it contains relative to the position of the original formula.
|
Challenge see if you can find out one extra fact on this topic that we haven't already told you
Click on this link: Relative Cell Reference