6
Exercise 8 – Formulas
Make sure you are working in the Formulas worksheet tab. In the
Formulas worksheet tab, highlight column C only and press delete.
For each row (2, 3, 4, etc.), I want each cell in column C to be the result
of adding the value in column A to column B.
I could manually enter the formula over and over in each cell of column C,
changing the row reference for each row, but there is an easier way.
Make cell C2 the active cell. In cell C2 enter the formula =A2+B2. Press
Enter and move the active cell back to cell C2. (You’ll notice the active
cell has a box around it as we discussed earlier.) In the lower, right hand
corner of the box is a green square. This is a handle. Notice how your
cursor will change from a large white cross to a small black cross when
you touch the handle. So, hover the cursor over the handle so that the
cursor is a small black cross, click and hold the left mouse button, then
drag the box down to cover cells C2 through C4. Release to see the new
answers in column C.
Relative Cell Reference gives us the ability to copy formulas down or across the
spreadsheet and have the formula automatically updated for the cell reference.
If you copy down, the row numbers are indexed. If you copy across, the
columns are indexed. But you can’t do both at the same time. That would just
be too confusing for Excel.
A word of caution. You can make a mistake right here if you’re not careful. So, if
you attempt to drag the formula in our example from C1 to D1, your formula will
not mean much because it would become a formula that takes the answer and
adds to it again one of the numbers used to produce the answer. There are
times when relative cell reference will not work for you and there is another way
to handle those situations. We’ll come to that in the next exercise. First we need
to talk about functions.
Sum Function: The makers of Excel knew that we would be doing a lot of
totaling long lists of numbers. If we had a list of 6000 values and wanted to total
the whole list, that would be quite a long formula (=A1+A2+A3+A4… all the way
to A6000). We have a way to short cut that process. One way of making this
statement would be to add up all the numbers from A1 to A6000. The “SUM”
function does exactly that.
Look for an icon on the tool bar that looks like the Greek symbol “Sigma”. It
looks like a letter M laying on it’s left side. Like this: “ Σ “ This is the Sum button.