Formulas and Functions

The real power of a spreadsheet resides in your ability to create formulas and functions. To understand these you also need to understand the concept of ranges.


Formulas

Since the result is a number, the resulting data is right aligned.


Functions

The alignment of the resulting data depends upon the result, that is, the “answer” to some functions is text, to others it is a number.

the basic format for a function is

function name(argument of function)
  • function name is the name for the function to be performed; the “name” may be a whole word or an abbreviation
  • the argument of function represents the cells to be evaluated
  • for example
    • =SUM(A1:A3)
    • =AVERAGE(M4:M12)

for further reference

If you would like a reference to all of the functions included with Excel, with examples on how to use them …

Since the functions in Excel Windows and Excel Macintosh are the same, any book can be used for both platforms.


Ranges

A range is a rectangular group of cells. Ranges are included in many types of functions. To specify a range in a formula or function, you separate the upper-left and lower-right cells in the range (known as “anchors” or “anchor cells”) with a colon. For example:

By definition, the smallest range would be a single cell while the largest would be the entire spreadsheet.

Why are Ranges Important?

Using ranges is much easier than specifying each individual cell in the argument. Consider the last function example above:

=AVERAGE(M4:M12)

is the same as

=AVERAGE(M4+M5+M6+M7+M8+M9+M10+M11+M12)

Formulas versus Functions

If you can use either a formula or a function to accomplish the same thing, and you need to perform a mathematical operation on a RANGE of cells, then you should always use a Function with its argument expressed as a RANGE. Ranges will automatically be updated if you add/delete rows or columns within the range. It is imperative that you express the range properly, that is with the anchor cells separated by a colon.

In other words, you could do either of the following

=A1 + A2 + A3 + A4 + A5
=SUM(A1 + A2 + A3 + A4 + A5)
=SUM(A1, A2, A3, A4, A5)
=SUM(A1:A5)

The last way is the right way. Although all four methods are mathematically the same, only the last way will always give you the correct result if you ever insert rows within the specified range. If you are not sure, try the following and you will see!

In both cases the formula/function was updated once the new row was inserted. However only the function with its argument expressed as a range was correctly updated to include the new information. Keep this concept in mind as we begin to build a spreadsheet.


Return to
Excel 2000 or 2001
Excel XP or X

Copyright©2003
last updated August 12, 2003