Escolar Documentos
Profissional Documentos
Cultura Documentos
Examples:
=SUM(B2:B28)
=SUM(B2:B28,B34:B39)
Example: =SUM(B2,B8,B24,B66)
=B2+B3
Eg: =B2*C2
Eg: =B2-C2
OTHER FUNCTIONS
There are many many more spreadsheet functions. For example, AVERAGE will
calculate the average among a range of values and MEDIAN will calculate the
median. ( EG =AVERAGE(A2:A26) calculates the average value in the range of
cells from A2 through A26). There are dozens more, including some mighty
impressive statistical stuff that you should steer clear of unless you know what
you are doing.
Complete details on these functions are in the online help in Excel but they all
follow the same pattern as SUM so you will probably be able to guess.
PERCENTAGES:
To calculate percentage change, subtract the old value from the new value, and
divide by the old value. The formula is (New-Old)/Old. Eg: =(E2-D2)/D2
To calculate what one number is as a percentage of another, divide the first
number by the second and format the formula cell using the percentage button
on the toolbar. In the next illustration, a formula is being entered in cell G3 to
determine what cell F3 is as a percentage of cell B3. The formula entered in cell
G3 is: =F3/B3
One you have calculated a percentage, or done any other calculation, you can
copy the formula into adjacent cells by placing the mouse in the lower right hand
corner of the cell where you entered the first formula. When the cursor turns into
a small plus sign, drag it to the bottom or end of the range of cells you want to fill,
or if you are copying the formula downward, simply double click on the corner of
the cell. The formula will be copied automatically, as you can see from the
illustration on the next page:
You can continue to copy formulas downward or to the right. As you copy the
formula into new cells, the cells the formula adds up, divides, etc, will move the
same number of cells up or down or to the left or right as you move the formula
itself.
The following illustration shows how a formula changes as it is moved from cell to
cell:
The one way to alter this behavior is to place a dollar sign before one or both of
the coordinates in a cell reference. If you do so, that coordinate will be fixed in
place. So, if you enter a cell reference as $D8, the cell reference can move up
and down, through the range of numbers, but not left to right through the range of
letters. If you enter a cell reference as D$8, the opposite is true. The cell can
move left to right through the letters, but cannot move up and down through the
numbers. If you write it as $D$8, it is frozen in place and cannot move in either
direction.
The dollar sign is typically used to freeze totals and other such entries in
formulas.
You can also copy and paste formulas from one cell to another, using standard
copy and paste commands.
SORTING:
Now, pick the column or columns you want to sort on, choose ascending or
descending order in each case, and click OK to do the sort.
Excel has a couple of shortcuts for sorting, but both can cause problems.
You can place a cursor in the first row to be sorted, and choose data/sort. Excel
will choose a range to be sorted. As long as there are no gaps in the range,
either empty rows or columns, Excel will generally get it right, but not always.
So, be careful. A partially-sorted spreadsheet is a useless spreadsheet.
You can also place your cursor in the column you want so sort on, and click on
one of the quick sort buttons
Excel will automatically sort, but again, it can make mistakes. I do not like to
leave this much up to a computer program and would advise you be similarly
cautious. A good practice is to save your sheet under a different name before
sorting so you can recover the original if you make a mistake.
FILTERING
Excel has the ability to exclude certain rows from what you see on the screen
through a trick called “autofilter.” This is a rudimentary database function and
you will use it most often when you have a column of information you want to
narrow down.
Choosing “custom” allows you to set more complex filter conditions. In the next
illustration it is being used to choose projects whose value is between $100,000
and $200,000:
Here is the result. The rows included are shown at the left:
To restore all of the rows after using autofilter, choose data/filter/show all on the
menu bar.
GRAPHING
One of the most useful functions of Excel is its ability to create graphs and
charts. These allow you to “see” your data.
To quickly create a chart, highlight the area you wish to chart, and push f11. This
will create a quick and dirty chart using a default chart type.
Begin by highlighting an area that includes the columns/rows you would like to
graph, as in this illustration:
Click on the series tab, and remove the series that refer(s) to column(s) that you
do not want represented on your graph or chart.
In this case, we remove series 1, which is a range of cells in column B, the actual
incidents column. We only want to chart crime rates:
In this case, this leaves only series 2, the one that contains the crime rate. The
box marked “Category (X) axis labels” contains the reference for what will appear
along the X axis of the graph, in this case the city names.
Once you have narrowed down to the series you want to chart/graph, click next.
At this point you can give your chart a title, and label the X and Y axes if you so
choose.
Click next, and choose whether to display your chart as a separate worksheet, or
place it in your existing worksheet, along with your numbers.
In a bar graph such as this, you can force it to display the values from largest to
smallest or vice versa by sorting the main worksheet on the appropriate column.
The result is on the next page:
Charting is an extensive topic. To find out more about the techniques, and the
different charts available, look in Excel help under Create a Chart.