As you read this text, pay attention to Table 1, which outlines the most common statistical functions in Microsoft Excel. You can apply these functions to large spreadsheet data sets. The rest of the section details how to use each type of function in a budget spreadsheet.
The Average Function
The next function we will add to the Budget Detail worksheet is the AVERAGE function. This function calculates the arithmetic mean for a group of numbers. For the Budget Detail worksheet, we will use the function to calculate the average values in the Annual Spend column. We will add this to the worksheet by using the Function Library. The following steps explain how this is accomplished:
- Click cell D14 in the Budget Detail worksheet
- Click the Formulas tab on the Ribbon
- Click the More Functions button in the Function Library group of commands
- Place the mouse pointer over the Statistical option from the drop-down list of options
- Click the AVERAGE function name from the list of functions that appear in the menu (see Figure 2.19). This opens the Function Arguments dialog box.
- Click the Collapse Dialog button in the Function Arguments dialog box (see Figure 2.20)
- Highlight the range D3:D11
- Click the Expand Dialog button in the Function Arguments dialog box (see Figure 2.21); you can also press the ENTER key to get the same result
- Click the OK button on the Function Arguments dialog box; this adds the AVERAGE function to the worksheet
Figure 9 illustrates how a function is selected from the Function Library in the Formulas tab of the Ribbon.
Figure 9 Selecting the AVERAGE Function from the Function Library
Figure 10 shows the Function Arguments dialog
box. This appears after a function is selected from the Function
Library. The Collapse Dialog button is used to hide the dialog box so a
range of cells can be highlighted on the worksheet
and then added to the function.
Figure 10 Function Arguments Dialog Box
Figure 11 shows how a range of cells can be selected from the Function Arguments dialog box once it has been collapsed.
Figure 11 Selecting a Range from the Function Arguments Dialog Box
Figure 12 shows the Function Arguments dialog
box after the cell range is defined for the AVERAGE function. The dialog
box shows the result of the function before it is added to the cell
location. This allows you to assess the function
output to determine whether it makes sense before adding it to the
worksheet.
Figure 12 Function Arguments Dialog Box after a Cell Range Is Defined for a Function
Figure 13 shows the completed AVERAGE function in the Budget Detail
worksheet. The output of the function shows that on average we expect
to spend $1,994 for each of the categories listed in Column A of the
budget.
This average spend calculation per category can be used as an
indicator to determine which categories are costing more or less than
the average budgeted spend dollars.
Figure 13 Completed AVERAGE Function