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 Sum Function
Use the SUM function to calculate totals for a range of cells or a group of selected cells on a worksheet. We will use the SUM function for the Budget Detail worksheet to calculate the totals in row 12. Note that several methods for adding a function to a worksheet will be demonstrated throughout this chapter. The following illustrates how to add a function to a worksheet by typing it into a cell location:
- Click the Budget Detail worksheet tab to open the worksheet
- Click cell C12
- Type an equal sign: =
- Type the function name SUM
- Type an open parenthesis: (
- Click cell C3 and drag down to cell C11. This places the range C3:C11 into the function
- Type a closing parenthesis: )
- Press the ENTER key; the function calculates the total for the Monthly Spend column, which is $1,496
Figure 1 shows the appearance of the SUM function added to the Budget Detail worksheet before pressing the ENTER key.
Figure 1 Adding the SUM Function to the Budget Detail Worksheet
As shown in Figure 1, the SUM function was added
to cell C12. However, you also need this function to calculate the
totals in the Annual Spend and LY Spend columns. You can copy and paste the function into these cell locations
because of relative referencing. Relative referencing serves the
same purpose for functions as it does for formulas. The following
demonstrates how the total row is completed:
- Click cell C12 in the Budget Detail worksheet
- Click the Copy button in the Home tab of the Ribbon
- Highlight cells D12 and E12
- Click the Paste button in the Home tab of the Ribbon. This
pastes the SUM function into cells D12 and E12 and calculates the totals
for these columns
- Click cell F11
- Click the Copy button in the Home tab of the Ribbon
- Click cell F12, then click the Paste button in the Home tab of the Ribbon; since we now have totals in row 12, we can paste the percent change formula into this row
Figure 2 shows the output of the SUM function added to cells C12, D12, and E12. In addition, the percent
change formula was copied and pasted into cell F12. Notice that this
version of the budget is planning a 1.7% decrease
in spending compared to last year.
Figure 2 Results of the SUM Function in the Budget Detail Worksheet
Integrity Check
Cell Ranges in Statistical Functions
When you intend to use a statistical function on a range of cells in a worksheet, make sure there are two cell locations separated by a colon and not a comma. If you enter two cell locations separated by a comma, the function will produce an output but it will be applied to only two cell locations instead of a range of cells. For example, the SUM function shown in Figure 3 will add only the values in cells C3 and C11, not the range C3:C11.
Figure 3 SUM Function Adding Two Cell Locations