- Insert the following data into the first 6 rows of the A column:
56, 67, 76, 55, 62, 69.
- Insert the following set of numbers into the first 6 rows of column B.
34, 44, 123, 89, 22, 10
That should have been easy - now lets do some calculations.
The Hard Way
Let's add the numbers in each column and place the sum in the 7th row of each column. One way (the hard way) would be as follows:- Select cell A7. This is the cell where the sum will be displayed.
- Type in the equal sign (=). All calculations (or formulas) in Excel must begin with an equal sign.
- Type in the arithmetic expression summing the various cells so that that the following expression is inserted into the cell =A1+A2+A3+A4+A5+A6, and press the ENTER key. Your sheet should look similar to the following figure.
Note that the sum of the numbers in column 1 is displayed in cell A7 and that the formula is shown in the window of the formula bar. If you were to change the value of cell A1 from 56 to 55, you would find that the sum shown in A7 would also change. (Try it, but remember to change it back). NOTE: If you were to forget to start the formula with the equal sign, Excel would assume that you are typing in text and would not do any calculations!
One can do the same procedure to sum the values in column B and type =B1+B2+B3+B4+B5+B6 into cell B7 (actually, you could type it into any cell, but it is more logical to use B7). But there is an easier way. Note that there is small box in the lower right corner of any selected cell. Select cell A7 (as shown above) and move, without pressing a button, the cursor over the box. You should note that the cursor changes when over the box, changing from a hollow cross to a simple line cross. This will occur automatically whenever the cursor lies over the little box. Do this several times so that you are familiar with its appearance.
Now, with the cursor over the box in cell A7 (and thus in the line format), press down and hold the left mouse button and drag the mouse over cell B7. Once you observe that B7 becomes selected, release the button. If done correctly, you should find that the formula was copied into B7 but that it changed so that it summed the contents of Column B! Pretty amazing! Your screen should look like the following figure (with cell B7 selected). This is much easier than typing in all of the cell names into the formula. This process (where you use the little box to copy a formula to adjacent boxes) will be know as "dragging the box" in this tutorial.
No comments:
Post a Comment