Excel XP
Using Functions
Introduction
By the end of this lesson, learners should be able to:
- Understand definition of a function
- Use Excel XP functions in calculations
- Access Excel XP functions
- Find the sum of a range of data
Using Functions
A function is a pre-defined formula that helps perform common mathematical functions. Functions save you the time of writing lengthy formulas. You could use an Excel function called Average, for example, to quickly find the average of range of numbers. Or you could use the Sum function to find the sum of a cell range. Excel XP contains many different functions.
Each function has a specific order, called syntax, which must be strictly followed for the function to work correctly.
Syntax Order:
- All functions begin with the = sign.
- After the = sign define the function name (e.g., Sum).
- One or more arguments-numbers, text or cell references-enclosed by parentheses. If there is more than one argument, separate each by a comma.
An example of a function with one argument that adds a range of cells, B3 through B10:
An example of a function with more than one argument that calculates the average of numbers in a range of cells, B3 through B10, and C3 through C10:
Excel literally has hundreds of different functions to assist with your calculations. Building formulas can be difficult and time-consuming. Excel's functions can save you a lot of time and headaches.
Excel's Different Functions
There are many different functions in Excel XP. Some of the more common functions include:
Statistical Functions:
- SUM - summation adds a range of cells together.
- AVERAGE - average calculates the average of a range of cells.
- COUNT - counts the number of chosen data in a range of cells.
- MAX - identifies the largest number in a range of cells.
- MIN - identifies the smallest number in a range of cells.
Financial Functions:
- Interest Rates
- Loan Payments
- Depreciation Amounts
Date and Time functions:
- DATE - Converts a serial number to a day of the month
- Day of Week
- DAYS360 - Calculates the number of days between two dates based on a 360-day year
- TIME - Returns the serial number of a particular time
- HOUR - Converts a serial number to an hour
- MINUTE - Converts a serial number to a minute
- TODAY - Returns the serial number of today's date
- MONTH - Converts a serial number to a month
- YEAR - Converts a serial number to a year
You don't have to memorize the functions but should have an idea of what each can do for you.
Finding the Sum of a Range of Data
The AutoSum function allows you to create a formula that includes a cell range-many cells in a column, for example, or many cells in a row.
To Calculate the AutoSum of a Range of Data:
- Type the numbers to be included in the formula in separate cells of column B (Ex: type 128 in cell B2, 345 in cell B3, 243 in cell B4, 97 in cell B5 and 187 cell B6).
- Click on the first cell (B2) to be included in the formula.
- Using the point-click-drag method, drag the mouse to define a cell range from cell B2 through cell B6.
- On the Standard toolbar, click the Sum button.
- The sum of the numbers is added to cell B7, or the cell immediately beneath the defined range of numbers.
- Notice the formula, =SUM(B2:B6), has been defined to cell B7.
Excel will not always tell you if your function contains an error, so it's up to you to check all of your functions. To learn how to do this, read the Double-Check Your Formulas lesson from our Excel Formulas tutorial.
Finding the Average of a Range of Numbers
The Average function calculates the average of a range of numbers. The Average function can be selected from the AutoSum drop-down menu.
To Calculate the Average of a Range of Data:
- Type the numbers to be included in the formula in separate cells of column B (Ex: type 128 in cell B2, 345 in cell B3, 243 in cell B4, 97 in cell B5 and 187 cell B6).
- Click on the first cell (B2) to be included in the formula.
- Using the point-click-drag method, drag the mouse to define a cell range from cell B2 through cell B6.
- On the Standard toolbar, click on the drop-down part of the AutoSum button.
- Select the Average function from the drop-down Functions list.
- The average of the numbers is added to cell B7, or the cell immediately beneath the defined range of numbers.
- Notice the formula, =AVERAGE(B2:B6), has been defined to cell B7.
Accessing Excel XP Functions
To Access Other Functions in Excel:
- Using the point-click-drag method, select a cell range to be included in the formula.
- On the Standard toolbar, click on the drop-down part of the AutoSum button.
- If you don't see the function you want to use (Sum, Average, Count, Max, Min), display additional functions by selecting More Functions.
- The Paste Function dialog box opens.
- There are three ways to locate a function in the Insert Function dialog box:
You can type a question in the Search for a function box and click GO, or
You can scroll through the alphabetical list of functions in the Select a function field, or
You can select a function category in the Select a category drop-down list and review the corresponding function names in the Select a function field.
- Select the function you want to use and then click the OK button.
If you're comfortable with basic functions, you may want to try a more advanced one like VLOOKUP. You can check out our article on How to Use Excel's VLOOKUP Function for more information. If you want to learn even more about functions, check out our Excel Formulas tutorial.
Challenge
- Type the following information:
In cell A1, type 7842
In cell A2, type 5681
In cell A3, type 3947
In cell B1, type 2594
In cell B2, type 9024
In cell B3, type 6505 - Create a formula in cell A4 that uses the AutoSum function to add the values in cell A1, cell A2 and cell A3.
- Create a formula in cell B4 that uses the Average function to find the averages of values in cell B1, cell B2 and cell B3.