{"id":100,"date":"2016-10-21T00:00:22","date_gmt":"2016-10-21T00:00:22","guid":{"rendered":"https:\/\/pressbooks.usnh.edu\/math502\/chapter\/statistical-functions\/"},"modified":"2023-03-24T14:25:55","modified_gmt":"2023-03-24T14:25:55","slug":"statistical-functions","status":"publish","type":"chapter","link":"https:\/\/pressbooks.usnh.edu\/mth402\/chapter\/statistical-functions\/","title":{"raw":"Statistical Functions","rendered":"Statistical Functions"},"content":{"raw":"<div class=\"2.2-statistical-functions\">\n<div class=\"textbox learning-objectives\">\n<h3>Learning Objectives<\/h3>\n<ol>\n \t<li>Use the\u00a0SUM function\u00a0to calculate totals.<\/li>\n \t<li>Use\u00a0absolute references\u00a0to calculate percent of totals.<\/li>\n \t<li>Use the\u00a0COUNT function\u00a0to count cell locations with numerical values.<\/li>\n \t<li>Use the\u00a0AVERAGE function\u00a0to calculate the arithmetic mean.<\/li>\n \t<li>Use the\u00a0MAX and MIN functions\u00a0to find the highest and lowest values in a range of cells.<\/li>\n<\/ol>\n<\/div>\nIn addition to formulas, another way to conduct mathematical computations in Excel is through functions. Statistical functions apply a mathematical process to a group of cells in a worksheet. For example, the SUM function is used to add the values contained in a range of cells. A list of commonly used statistical functions is shown in <strong>Table 2.4<\/strong>. Functions are more efficient than formulas when you are applying a mathematical process to a group of cells. If you use a formula to add the values in a range of cells, you would have to add each cell location to the formula one at a time. This can be very time-consuming if you have to add the values in a few hundred cell locations. However, when you use a function, you can highlight all the cells that contain values you wish to sum in just one step. This section demonstrates a variety of statistical functions that we will add to the Personal Budget workbook. In addition to demonstrating functions, this section also reviews percent of total calculations and the use of absolute references.\n\nTable 2.4\u00a0Commonly Used Statistical Functions\n<table style=\"height: 185px;\"><colgroup><\/colgroup>\n<thead>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\">Function<\/td>\n<td style=\"height: 13px; width: 689.271px;\">Output<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>ABS<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The absolute value of a number<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>AVERAGE<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The average or arithmetic mean for a group of numbers<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>COUNT<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The number of cell locations in a range that contain a numeric character<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>COUNTA<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The number of cell locations in a range that contain a text or numeric character<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>MAX<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The highest numeric value in a group of numbers<\/td>\n<\/tr>\n<tr style=\"height: 29px;\">\n<td style=\"height: 29px; width: 65.9375px;\"><strong>MEDIAN<\/strong><\/td>\n<td style=\"height: 29px; width: 689.271px;\">The middle number in a group of numbers (half the numbers in the group are higher than the median and half the numbers in the group are lower than the median)<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>MIN<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The lowest numeric value in a group of numbers<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>MODE<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The number that appears most frequently in a group of numbers<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>PRODUCT<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The result of multiplying all the values in a range of cell locations<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>SQRT<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The positive square root of a number<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>STDEV.S<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The standard deviation for a group of numbers based on a sample<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>SUM<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The total of all numeric values in a group<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>The SUM Function<\/h2>\nThe SUM function is used when you need to calculate totals for a range of cells or a group of selected cells on a worksheet. With regard to the\u00a0<strong>Budget Detail<\/strong> worksheet, we will use the SUM function to calculate the totals in row 12. It is important to note that there are several methods for adding a function to a worksheet, which will be demonstrated throughout the remainder of this chapter. The following illustrates how a function can be added to a worksheet by typing it into a cell location:\n<ol>\n \t<li>Click the\u00a0<strong>Budget Detail\u00a0<\/strong>worksheet tab to open the worksheet.<\/li>\n \t<li>Click cell C12.<\/li>\n \t<li>Type an equal sign <strong>=<\/strong>.<\/li>\n \t<li>Type the function name\u00a0<strong>SUM<\/strong>.<\/li>\n \t<li>Type an open parenthesis <strong>(<\/strong>.<\/li>\n \t<li>Click cell C3 and drag down to cell C11. This places the range C3:C11 into the function.<\/li>\n \t<li>Type a closing parenthesis <strong>)<\/strong>.<\/li>\n \t<li>Press the ENTER key. The function calculates the total for the Monthly Spend column, which is $1,496.<\/li>\n<\/ol>\n<strong>Figure 2.41<\/strong> shows the appearance of the SUM function added to the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet before pressing the ENTER key.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1320\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image11-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2016\/09\/image11-1.jpg\" alt=\"Budget Detail Worksheet showing range of cells included in function to calculate total of values when &quot;Enter&quot; is pressed.\" width=\"1320\" height=\"775\"><\/a> Figure 2.41 Adding the SUM Function to the Budget Detail Worksheet[\/caption]\n\nAs shown in <strong>Figure 2.11<\/strong>, the SUM function was added to cell C12. However, this function is also needed to calculate the totals in the Annual Spend and LY Spend columns. The function can be copied and pasted 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:\n<ol>\n \t<li>Click cell C12 in the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet.<\/li>\n \t<li>Click the Copy button in the Home tab of the Ribbon.<\/li>\n \t<li>Highlight cells D12 and E12.<\/li>\n \t<li>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.<\/li>\n \t<li>Click cell F11.<\/li>\n \t<li>Click the Copy button in the Home tab of the Ribbon.<\/li>\n \t<li>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.<\/li>\n<\/ol>\n<strong>Figure 2.42<\/strong> shows the output of the SUM function that was 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.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1319\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image12-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image12-1.jpg\" alt=\"Totals were added to cell range C12:E12 and percent change formula was pasted in cell F12 indicating spending will decrease by 1.7% compared to last year.\" width=\"1319\" height=\"779\"><\/a> Figure 2.42 Results of the SUM Function in the Budget Detail Worksheet[\/caption]\n\n<div class=\"textbox integrity\">\n<h3>Integrity Check<\/h3>\n<strong>Cell Ranges in Statistical Functions<\/strong>\n\nWhen 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 <strong>Figure 2.13<\/strong> will add only the values in cells C3 and C11, not the range C3:C11.\n\n<\/div>\n\n[caption id=\"\" align=\"aligncenter\" width=\"715\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image13-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image13-1.jpg\" alt=\"A comma indicates functions will only be applied to cells C3 and C11, and not the range.\" width=\"715\" height=\"452\"><\/a> Figure 2.42 SUM Function Adding Two Cell Locations[\/caption]\n<h2>Absolute References (Calculating Percent of Totals)<\/h2>\n<em>Data file: Continue with CH2 Personal Budget.<\/em>\n\nSince totals were added to row 12 of the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet, a percent of total calculation can be added to Column B beginning in cell B3. The percent of total calculation shows the percentage for each value in the Annual Spend column with respect to the total in cell D12. However, after the formula is created, it will be necessary to turn off Excel\u2019s relative referencing feature before copying and pasting the formula to the rest of the cell locations in the column. Turning off Excel\u2019s relative referencing feature is accomplished through an absolute reference. The following steps explain how this is done:\n<ol>\n \t<li>Click cell B3 in the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet.<\/li>\n \t<li>Type an equal sign <strong>=<\/strong>.<\/li>\n \t<li>Click cell D3.<\/li>\n \t<li>Type a forward slash <strong>\/<\/strong>.<\/li>\n \t<li>Click cell D12.<\/li>\n \t<li>Press the ENTER key. You will see that Household Utilities represents 16.7% of the Annual Spend budget (see <strong>Figure 2.44<\/strong>).<\/li>\n<\/ol>\n[caption id=\"\" align=\"aligncenter\" width=\"1210\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image14-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image14-1.jpg\" alt=\"Household Utilities represents 16.7% of total Annual Spend from cell D12 when formula &quot;=D3\/D12&quot; is entered in cell B3 and &quot;enter&quot; is pressed in D12.\" width=\"1210\" height=\"883\"><\/a> Figure 2.44 Adding a Formula to Calculate the Percent of Total[\/caption]\n\n<strong>Figure 2.44<\/strong> shows the completed formula that is calculating the percentage that Household Utilities Annual Spend represents to the total Annual Spend for the budget (see cell B3). Normally, we would copy this formula and paste it into the range B4:B11. However, because of relative referencing, both cell references will increase by one row as the formula is pasted into the cells below B3. This is fine for the first cell reference in the formula (D3) but not for the second cell reference (D12). <strong>Figure 2.45<\/strong> illustrates what happens if we paste the formula into the range B4:B12 in its current state. Notice that Excel produces the\u00a0#DIV\/0\u00a0error code. This means that Excel is trying to divide a number by zero, which is impossible. Looking at the formula in cell B4, you see that the first cell reference was changed from D3 to D4. This is fine because we now want to divide the Annual Spend for Insurance by the total Annual Spend in cell D12. However, Excel has also changed the D12 cell reference to D13. Because cell location D13 is blank, the formula produces the #DIV\/0 error code.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1210\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image15-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image15-1.jpg\" alt=\"Relative Referencing changed cell reference to D13 which is blank, causing divide by zero code &quot;#DIV\/0!&quot; to appear repeatedly in Column B.\" width=\"1210\" height=\"881\"><\/a> Figure 2.45 #DIV\/0 Error from Relative Referencing[\/caption]\n\nTo eliminate the divide-by-zero error shown in <strong>Figure 2.15<\/strong> we must add an absolute reference to cell D12 in the formula. An\u00a0absolute\u00a0reference\u00a0prevents relative referencing from changing a cell reference in a formula. This is also referred to as\u00a0locking a cell. The following explains how this is accomplished:\n<ol>\n \t<li>Double click cell B3.<\/li>\n \t<li>Place the mouse pointer in front of D12 and click. The blinking cursor should be in front of the D in the cell reference D12.<\/li>\n \t<li>Press the F4 key. You will see a dollar sign ($) added in front of the column letter D and the row number 12. You can also type the dollar signs in front of the column letter and row number.<\/li>\n \t<li>Press the ENTER key.<\/li>\n \t<li>Click cell B3.<\/li>\n \t<li>Click the Copy button in the Home tab of the Ribbon.<\/li>\n \t<li>Highlight the range B4:B11.<\/li>\n \t<li>Click the Paste button in the Home tab of the Ribbon.<\/li>\n<\/ol>\n<strong>Figure 2.46<\/strong> shows the percent of total formula with an absolute reference added to D12. Notice that in cell B4, the cell reference remains D12 instead of changing to D13 as shown in <strong>Figure 2.15<\/strong>. Also, you will see that the percentages are being calculated in the rest of the cells in the column, and the divide-by-zero error is now eliminated.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1210\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image16-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image16-1.jpg\" alt=\"Dollar signs in formula indicate that Absolute Reference was added to this cell changing D13 or D12, allowing calculations in remaining cells of column, eliminating the divide-by-zero error indicator.\" width=\"1210\" height=\"970\"><\/a> Figure 2.46 Adding an Absolute Reference to a Cell Reference in a Formula[\/caption]\n\n<div class=\"textbox examples\">\n<h3>Skill Refresher<\/h3>\n<strong>Absolute References<\/strong>\n<ol>\n \t<li>Click in front of the column letter of a cell reference in a formula or function that you do not want altered when the formula or function is pasted into a new cell location.<\/li>\n \t<li>Press the F4 key or type a dollar sign $ in front of the column letter and row number of the cell reference.<\/li>\n<\/ol>\n<\/div>\n<h2>\u00a0The COUNT Function<\/h2>\n<em>Data file: Continue with CH2 Personal Budget.<\/em>\n\nThe next function that we will add to the<strong>\u00a0Budget Detail<\/strong>\u00a0worksheet is the COUNT function. The COUNT function is used to determine how many cells in a range contain a numeric entry. The COUNT function will not work for counting text or other non-numeric entries. For the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet, we will use the COUNT function to count the number of items that are planned in the Annual Spend column (Column D). The following explains how the COUNT function is added to the worksheet by using the function list:\n<ol>\n \t<li>Click cell D13 in the\u00a0Budget Detail\u00a0worksheet.<\/li>\n \t<li>Type an equal sign <strong>=<\/strong>.<\/li>\n \t<li>Type the letter<strong>\u00a0C<\/strong>.<\/li>\n \t<li>Click the down arrow on the scroll bar of the function list (see <strong>Figure 2.47<\/strong>) and find the word COUNT.<\/li>\n \t<li>Double click the word\u00a0COUNT\u00a0from the function list.<\/li>\n \t<li>Highlight the range D3:D11.<\/li>\n \t<li>You can type a closing parenthesis <strong>)<\/strong> and then press the ENTER key, or simply press the ENTER key and Excel will close the function for you.\u00a0The function produces an output of 9 since there are 9 items planned on the worksheet.<\/li>\n<\/ol>\n<strong>Figure 2.47<\/strong> shows the function list box that appears after completing steps 2 and 3 for the COUNT function. The function list provides an alternative method for adding a function to a worksheet.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1320\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image17-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image17-1.jpg\" alt=\"Press Shift + F3 to open the function search\/picker. Search for a function, or use up\/down arrows to scroll through function list.\" width=\"1320\" height=\"778\"><\/a> Figure 2.47 Using the Function List to Add the COUNT Function[\/caption]\n\n<strong>Figure 2.48<\/strong> shows the output of the COUNT function after pressing the ENTER key. The function counts the number of cells in the range D3:D11 that contain a numeric value. The result of 9 indicates that there are 9 categories planned for this budget.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1215\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image18-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image18-1.jpg\" alt=\"&quot;=COUNT(D3:D11)&quot; appears in formula bar, and output &quot;9&quot; appears in cell D13.\" width=\"1215\" height=\"712\"><\/a> Figure 2.48 Completed COUNT Function in the Budget Detail Worksheet[\/caption]\n<h2>The AVERAGE Function<\/h2>\nThe next function we will add to the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet is the AVERAGE function. This function is used to calculate the <em><strong>arithmetic mean<\/strong><\/em> for a group of numbers. For the\u00a0<strong>Budget Detail\u00a0<\/strong>worksheet, we will use the function to calculate the average of the 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:\n<ol>\n \t<li>Click cell D14 in the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet.<\/li>\n \t<li>Click the Formulas tab on the Ribbon.<\/li>\n \t<li>Click the More Functions button in the Function Library group of commands.<\/li>\n \t<li>Place the mouse pointer over the Statistical option from the drop-down list of options.<\/li>\n \t<li>Click the AVERAGE function name from the list of functions that appear in the menu (see <strong>Figure 2.49<\/strong>). This opens the Function Arguments dialog box.<\/li>\n \t<li>Click the Collapse Dialog button in the Function Arguments dialog box (see <strong>Figure 2.410<\/strong>).<\/li>\n \t<li>Highlight the range D3:D11.<\/li>\n \t<li>Click the Expand Dialog button in the Function Arguments dialog box (see <strong>Figure 2.411<\/strong>). You can also press the ENTER key to get the same result.<\/li>\n \t<li>Click the OK button on the Function Arguments dialog box. This adds the AVERAGE function to the worksheet.<\/li>\n<\/ol>\n<strong>Figure 2.49<\/strong> illustrates how a function is selected from the Function Library in the Formulas tab of the Ribbon.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1320\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image19-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image19-1.jpg\" alt=\"Press F6 until ribbon pane is activated, then M to select Formulas, then Q to select More Functions. Press S to select Statistical menu item, then scroll down to select the Average function.\" width=\"1320\" height=\"778\"><\/a> Figure 2.19\u00a0Selecting the AVERAGE Function from the Function Library[\/caption]\n\n<strong>Figure 2.410<\/strong>\u00a0shows 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.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1320\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image20-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image20-1.jpg\" alt=\"Function Arguments dialog box open to Average function, with function definition, and Collapse Dialog button.\" width=\"1320\" height=\"570\"><\/a> Figure 2.410 Function Arguments Dialog Box[\/caption]\n\n<strong>Figure 2.411<\/strong> shows how a range of cells can be selected from the Function Arguments dialog box once it has been collapsed.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1319\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image21-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image21-1.jpg\" alt=\"When Function Arguments dialog box is collapsed, cell range can be highlighted with function appearing in cell as it is being built.\" width=\"1319\" height=\"872\"><\/a> Figure 2.411 Selecting a Range from the Function Arguments Dialog Box[\/caption]\n\n<strong>Figure 2.412<\/strong> 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.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1319\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image22-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image22-1.jpg\" alt=\"Function Arguments dialog box shows first few values next to cell range, and output of function appears both in center of box and at bottom as &quot;formula result&quot;.\" width=\"1319\" height=\"484\"><\/a> Figure 2.412 Function Arguments Dialog Box after a Cell Range Is Defined for a Function[\/caption]\n\n<strong>Figure 2.413<\/strong> shows the completed AVERAGE function in the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet. 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.\n\n[caption id=\"\" align=\"aligncenter\" width=\"1319\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image23-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image23-1.jpg\" alt=\"The AVERAGE function at top of worksheet as &quot;=AVERAGE(D:3D11)&quot; and output of &quot;$1,994&quot; in cell D14.\" width=\"1319\" height=\"790\"><\/a> Figure 2.413 Completed AVERAGE Function[\/caption]\n<h2>The MAX and MIN Functions<\/h2>\n<em>Data file: Continue with CH2 Personal Budget.<\/em>\n\nThe final two statistical functions that we will add to the\u00a0<strong>Budget Detail<\/strong> worksheet are the <strong>MAX<\/strong> and <strong>MIN<\/strong> functions. These functions identify the highest and lowest values in a range of cells. The following steps explain how to add these functions to the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet:\n<ol>\n \t<li>Click cell D15 in the\u00a0<strong>Budget Det<\/strong>ail\u00a0worksheet.<\/li>\n \t<li>Type an equal sign <strong>=<\/strong>.<\/li>\n \t<li>Type the word\u00a0<strong>MIN<\/strong>.<\/li>\n \t<li>Type an open parenthesis <strong>(<\/strong>.<\/li>\n \t<li>Highlight the range D3:D11.<\/li>\n \t<li>Type a closing parenthesis <strong>) <\/strong>and press the ENTER key, or simply press the ENTER key and Excel will close the function for you. The MIN function produces an output of $1,200, which is the lowest value in the Annual Spend column (see <strong>Figure 2.414<\/strong>).<\/li>\n \t<li>Click cell D16.<\/li>\n \t<li>Type an equal sign <strong>=<\/strong>.<\/li>\n \t<li>Type the word\u00a0<strong>MAX<\/strong>.<\/li>\n \t<li>Type an open parenthesis <strong>(<\/strong>.<\/li>\n \t<li>Highlight the range D3:D11.<\/li>\n \t<li>Type a closing parenthesis <strong>) <\/strong>and press the ENTER key, or simply press the ENTER key and Excel will close the function for you. The MAX function produces an output of $3,500. This is the highest value in the Annual Spend column (see <strong>Figure 2.415<\/strong>).<\/li>\n<\/ol>\n[caption id=\"\" align=\"aligncenter\" width=\"1320\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image24-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image24-1.jpg\" alt=\"The MIN function in formula as &quot;=MIN(D3:D11)&quot; and output of &quot;$1,200&quot; in cell D15 for Min Spend.\" width=\"1320\" height=\"791\"><\/a> Figure 2.414 MIN Function Added to the Budget Detail Worksheet[\/caption]\n\n[caption id=\"\" align=\"aligncenter\" width=\"1320\"]<a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image25-1.jpg\"><img src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image25-1.jpg\" alt=\"The MAX function in formula as &quot;=MAX(D3:D11)&quot; and output of &quot;$3,500&quot; in cell D16 for Max Spend.\" width=\"1320\" height=\"798\"><\/a> Figure 2.415 MAX Function Added to the Budget Detail Worksheet[\/caption]\n\n<div class=\"textbox examples\">\n<h3>Skill Refresher<\/h3>\n<strong>Statistical Functions<\/strong>\n<ol>\n \t<li>Type an equal sign <strong>=<\/strong>.<\/li>\n \t<li>Type the function name followed by an open parenthesis <strong>(<\/strong>\u00a0or double click the function name from the function list.<\/li>\n \t<li>Highlight a range on a worksheet or click individual cell locations followed by commas.<\/li>\n \t<li>Type a closing parenthesis <strong>)<\/strong> and press the ENTER key or press the ENTER key to close the function.<\/li>\n<\/ol>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>Key Takeaways<\/h3>\n<ul>\n \t<li>Statistical functions are used when a mathematical process is required for a range of cells, such as summing the values in several cell locations. For these computations, functions are preferable to formulas because adding many cell locations one at a time to a formula can be very time-consuming.<\/li>\n \t<li>Statistical functions can be created using cell ranges or selected cell locations separated by commas. Make sure you use a cell range (two cell locations separated by a colon) when applying a statistical function to a contiguous range of cells.<\/li>\n \t<li>To prevent Excel from changing the cell references in a formula or function when they are pasted to a new cell location, you must use an absolute reference. You can do this by placing a dollar sign ($) in front of the column letter and row number of a cell reference.<\/li>\n \t<li>The #DIV\/0 error appears if you create a formula that attempts to divide a constant or the value in a cell reference by zero.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h2>Attribution<\/h2>\nAdapted by Mary Schatz from <a href=\"https:\/\/saylordotorg.github.io\/text_how-to-use-microsoft-excel-v1.1\/index.html\" target=\"_blank\" rel=\"noopener noreferrer\">How to Use Microsoft Excel: The Careers in Practice Series<\/a>,\u00a0adapted by <a href=\"https:\/\/www.saylor.org\" target=\"_blank\" rel=\"noopener noreferrer\">The Saylor Foundation<\/a> without attribution as requested by the work\u2019s original creator or licensee,\u00a0and licensed under <a href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\" target=\"_blank\" rel=\"noopener noreferrer\">CC BY-NC-SA 3.0<\/a>.","rendered":"<div class=\"2.2-statistical-functions\">\n<div class=\"textbox learning-objectives\">\n<h3>Learning Objectives<\/h3>\n<ol>\n<li>Use the\u00a0SUM function\u00a0to calculate totals.<\/li>\n<li>Use\u00a0absolute references\u00a0to calculate percent of totals.<\/li>\n<li>Use the\u00a0COUNT function\u00a0to count cell locations with numerical values.<\/li>\n<li>Use the\u00a0AVERAGE function\u00a0to calculate the arithmetic mean.<\/li>\n<li>Use the\u00a0MAX and MIN functions\u00a0to find the highest and lowest values in a range of cells.<\/li>\n<\/ol>\n<\/div>\n<p>In addition to formulas, another way to conduct mathematical computations in Excel is through functions. Statistical functions apply a mathematical process to a group of cells in a worksheet. For example, the SUM function is used to add the values contained in a range of cells. A list of commonly used statistical functions is shown in <strong>Table 2.4<\/strong>. Functions are more efficient than formulas when you are applying a mathematical process to a group of cells. If you use a formula to add the values in a range of cells, you would have to add each cell location to the formula one at a time. This can be very time-consuming if you have to add the values in a few hundred cell locations. However, when you use a function, you can highlight all the cells that contain values you wish to sum in just one step. This section demonstrates a variety of statistical functions that we will add to the Personal Budget workbook. In addition to demonstrating functions, this section also reviews percent of total calculations and the use of absolute references.<\/p>\n<p>Table 2.4\u00a0Commonly Used Statistical Functions<\/p>\n<table style=\"height: 185px;\">\n<colgroup><\/colgroup>\n<thead>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\">Function<\/td>\n<td style=\"height: 13px; width: 689.271px;\">Output<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>ABS<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The absolute value of a number<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>AVERAGE<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The average or arithmetic mean for a group of numbers<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>COUNT<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The number of cell locations in a range that contain a numeric character<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>COUNTA<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The number of cell locations in a range that contain a text or numeric character<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>MAX<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The highest numeric value in a group of numbers<\/td>\n<\/tr>\n<tr style=\"height: 29px;\">\n<td style=\"height: 29px; width: 65.9375px;\"><strong>MEDIAN<\/strong><\/td>\n<td style=\"height: 29px; width: 689.271px;\">The middle number in a group of numbers (half the numbers in the group are higher than the median and half the numbers in the group are lower than the median)<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>MIN<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The lowest numeric value in a group of numbers<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>MODE<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The number that appears most frequently in a group of numbers<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>PRODUCT<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The result of multiplying all the values in a range of cell locations<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>SQRT<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The positive square root of a number<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>STDEV.S<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The standard deviation for a group of numbers based on a sample<\/td>\n<\/tr>\n<tr style=\"height: 13px;\">\n<td style=\"height: 13px; width: 65.9375px;\"><strong>SUM<\/strong><\/td>\n<td style=\"height: 13px; width: 689.271px;\">The total of all numeric values in a group<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>The SUM Function<\/h2>\n<p>The SUM function is used when you need to calculate totals for a range of cells or a group of selected cells on a worksheet. With regard to the\u00a0<strong>Budget Detail<\/strong> worksheet, we will use the SUM function to calculate the totals in row 12. It is important to note that there are several methods for adding a function to a worksheet, which will be demonstrated throughout the remainder of this chapter. The following illustrates how a function can be added to a worksheet by typing it into a cell location:<\/p>\n<ol>\n<li>Click the\u00a0<strong>Budget Detail\u00a0<\/strong>worksheet tab to open the worksheet.<\/li>\n<li>Click cell C12.<\/li>\n<li>Type an equal sign <strong>=<\/strong>.<\/li>\n<li>Type the function name\u00a0<strong>SUM<\/strong>.<\/li>\n<li>Type an open parenthesis <strong>(<\/strong>.<\/li>\n<li>Click cell C3 and drag down to cell C11. This places the range C3:C11 into the function.<\/li>\n<li>Type a closing parenthesis <strong>)<\/strong>.<\/li>\n<li>Press the ENTER key. The function calculates the total for the Monthly Spend column, which is $1,496.<\/li>\n<\/ol>\n<p><strong>Figure 2.41<\/strong> shows the appearance of the SUM function added to the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet before pressing the ENTER key.<\/p>\n<figure style=\"width: 1320px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image11-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2016\/09\/image11-1.jpg\" alt=\"Budget Detail Worksheet showing range of cells included in function to calculate total of values when &quot;Enter&quot; is pressed.\" width=\"1320\" height=\"775\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.41 Adding the SUM Function to the Budget Detail Worksheet<\/figcaption><\/figure>\n<p>As shown in <strong>Figure 2.11<\/strong>, the SUM function was added to cell C12. However, this function is also needed to calculate the totals in the Annual Spend and LY Spend columns. The function can be copied and pasted 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:<\/p>\n<ol>\n<li>Click cell C12 in the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet.<\/li>\n<li>Click the Copy button in the Home tab of the Ribbon.<\/li>\n<li>Highlight cells D12 and E12.<\/li>\n<li>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.<\/li>\n<li>Click cell F11.<\/li>\n<li>Click the Copy button in the Home tab of the Ribbon.<\/li>\n<li>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.<\/li>\n<\/ol>\n<p><strong>Figure 2.42<\/strong> shows the output of the SUM function that was 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.<\/p>\n<figure style=\"width: 1319px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image12-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image12-1.jpg\" alt=\"Totals were added to cell range C12:E12 and percent change formula was pasted in cell F12 indicating spending will decrease by 1.7% compared to last year.\" width=\"1319\" height=\"779\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.42 Results of the SUM Function in the Budget Detail Worksheet<\/figcaption><\/figure>\n<div class=\"textbox integrity\">\n<h3>Integrity Check<\/h3>\n<p><strong>Cell Ranges in Statistical Functions<\/strong><\/p>\n<p>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 <strong>Figure 2.13<\/strong> will add only the values in cells C3 and C11, not the range C3:C11.<\/p>\n<\/div>\n<figure style=\"width: 715px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image13-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image13-1.jpg\" alt=\"A comma indicates functions will only be applied to cells C3 and C11, and not the range.\" width=\"715\" height=\"452\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.42 SUM Function Adding Two Cell Locations<\/figcaption><\/figure>\n<h2>Absolute References (Calculating Percent of Totals)<\/h2>\n<p><em>Data file: Continue with CH2 Personal Budget.<\/em><\/p>\n<p>Since totals were added to row 12 of the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet, a percent of total calculation can be added to Column B beginning in cell B3. The percent of total calculation shows the percentage for each value in the Annual Spend column with respect to the total in cell D12. However, after the formula is created, it will be necessary to turn off Excel\u2019s relative referencing feature before copying and pasting the formula to the rest of the cell locations in the column. Turning off Excel\u2019s relative referencing feature is accomplished through an absolute reference. The following steps explain how this is done:<\/p>\n<ol>\n<li>Click cell B3 in the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet.<\/li>\n<li>Type an equal sign <strong>=<\/strong>.<\/li>\n<li>Click cell D3.<\/li>\n<li>Type a forward slash <strong>\/<\/strong>.<\/li>\n<li>Click cell D12.<\/li>\n<li>Press the ENTER key. You will see that Household Utilities represents 16.7% of the Annual Spend budget (see <strong>Figure 2.44<\/strong>).<\/li>\n<\/ol>\n<figure style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image14-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image14-1.jpg\" alt=\"Household Utilities represents 16.7% of total Annual Spend from cell D12 when formula &quot;=D3\/D12&quot; is entered in cell B3 and &quot;enter&quot; is pressed in D12.\" width=\"1210\" height=\"883\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.44 Adding a Formula to Calculate the Percent of Total<\/figcaption><\/figure>\n<p><strong>Figure 2.44<\/strong> shows the completed formula that is calculating the percentage that Household Utilities Annual Spend represents to the total Annual Spend for the budget (see cell B3). Normally, we would copy this formula and paste it into the range B4:B11. However, because of relative referencing, both cell references will increase by one row as the formula is pasted into the cells below B3. This is fine for the first cell reference in the formula (D3) but not for the second cell reference (D12). <strong>Figure 2.45<\/strong> illustrates what happens if we paste the formula into the range B4:B12 in its current state. Notice that Excel produces the\u00a0#DIV\/0\u00a0error code. This means that Excel is trying to divide a number by zero, which is impossible. Looking at the formula in cell B4, you see that the first cell reference was changed from D3 to D4. This is fine because we now want to divide the Annual Spend for Insurance by the total Annual Spend in cell D12. However, Excel has also changed the D12 cell reference to D13. Because cell location D13 is blank, the formula produces the #DIV\/0 error code.<\/p>\n<figure style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image15-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image15-1.jpg\" alt=\"Relative Referencing changed cell reference to D13 which is blank, causing divide by zero code &quot;#DIV\/0!&quot; to appear repeatedly in Column B.\" width=\"1210\" height=\"881\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.45 #DIV\/0 Error from Relative Referencing<\/figcaption><\/figure>\n<p>To eliminate the divide-by-zero error shown in <strong>Figure 2.15<\/strong> we must add an absolute reference to cell D12 in the formula. An\u00a0absolute\u00a0reference\u00a0prevents relative referencing from changing a cell reference in a formula. This is also referred to as\u00a0locking a cell. The following explains how this is accomplished:<\/p>\n<ol>\n<li>Double click cell B3.<\/li>\n<li>Place the mouse pointer in front of D12 and click. The blinking cursor should be in front of the D in the cell reference D12.<\/li>\n<li>Press the F4 key. You will see a dollar sign ($) added in front of the column letter D and the row number 12. You can also type the dollar signs in front of the column letter and row number.<\/li>\n<li>Press the ENTER key.<\/li>\n<li>Click cell B3.<\/li>\n<li>Click the Copy button in the Home tab of the Ribbon.<\/li>\n<li>Highlight the range B4:B11.<\/li>\n<li>Click the Paste button in the Home tab of the Ribbon.<\/li>\n<\/ol>\n<p><strong>Figure 2.46<\/strong> shows the percent of total formula with an absolute reference added to D12. Notice that in cell B4, the cell reference remains D12 instead of changing to D13 as shown in <strong>Figure 2.15<\/strong>. Also, you will see that the percentages are being calculated in the rest of the cells in the column, and the divide-by-zero error is now eliminated.<\/p>\n<figure style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image16-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image16-1.jpg\" alt=\"Dollar signs in formula indicate that Absolute Reference was added to this cell changing D13 or D12, allowing calculations in remaining cells of column, eliminating the divide-by-zero error indicator.\" width=\"1210\" height=\"970\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.46 Adding an Absolute Reference to a Cell Reference in a Formula<\/figcaption><\/figure>\n<div class=\"textbox examples\">\n<h3>Skill Refresher<\/h3>\n<p><strong>Absolute References<\/strong><\/p>\n<ol>\n<li>Click in front of the column letter of a cell reference in a formula or function that you do not want altered when the formula or function is pasted into a new cell location.<\/li>\n<li>Press the F4 key or type a dollar sign $ in front of the column letter and row number of the cell reference.<\/li>\n<\/ol>\n<\/div>\n<h2>\u00a0The COUNT Function<\/h2>\n<p><em>Data file: Continue with CH2 Personal Budget.<\/em><\/p>\n<p>The next function that we will add to the<strong>\u00a0Budget Detail<\/strong>\u00a0worksheet is the COUNT function. The COUNT function is used to determine how many cells in a range contain a numeric entry. The COUNT function will not work for counting text or other non-numeric entries. For the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet, we will use the COUNT function to count the number of items that are planned in the Annual Spend column (Column D). The following explains how the COUNT function is added to the worksheet by using the function list:<\/p>\n<ol>\n<li>Click cell D13 in the\u00a0Budget Detail\u00a0worksheet.<\/li>\n<li>Type an equal sign <strong>=<\/strong>.<\/li>\n<li>Type the letter<strong>\u00a0C<\/strong>.<\/li>\n<li>Click the down arrow on the scroll bar of the function list (see <strong>Figure 2.47<\/strong>) and find the word COUNT.<\/li>\n<li>Double click the word\u00a0COUNT\u00a0from the function list.<\/li>\n<li>Highlight the range D3:D11.<\/li>\n<li>You can type a closing parenthesis <strong>)<\/strong> and then press the ENTER key, or simply press the ENTER key and Excel will close the function for you.\u00a0The function produces an output of 9 since there are 9 items planned on the worksheet.<\/li>\n<\/ol>\n<p><strong>Figure 2.47<\/strong> shows the function list box that appears after completing steps 2 and 3 for the COUNT function. The function list provides an alternative method for adding a function to a worksheet.<\/p>\n<figure style=\"width: 1320px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image17-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image17-1.jpg\" alt=\"Press Shift + F3 to open the function search\/picker. Search for a function, or use up\/down arrows to scroll through function list.\" width=\"1320\" height=\"778\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.47 Using the Function List to Add the COUNT Function<\/figcaption><\/figure>\n<p><strong>Figure 2.48<\/strong> shows the output of the COUNT function after pressing the ENTER key. The function counts the number of cells in the range D3:D11 that contain a numeric value. The result of 9 indicates that there are 9 categories planned for this budget.<\/p>\n<figure style=\"width: 1215px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image18-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image18-1.jpg\" alt=\"&quot;=COUNT(D3:D11)&quot; appears in formula bar, and output &quot;9&quot; appears in cell D13.\" width=\"1215\" height=\"712\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.48 Completed COUNT Function in the Budget Detail Worksheet<\/figcaption><\/figure>\n<h2>The AVERAGE Function<\/h2>\n<p>The next function we will add to the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet is the AVERAGE function. This function is used to calculate the <em><strong>arithmetic mean<\/strong><\/em> for a group of numbers. For the\u00a0<strong>Budget Detail\u00a0<\/strong>worksheet, we will use the function to calculate the average of the 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:<\/p>\n<ol>\n<li>Click cell D14 in the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet.<\/li>\n<li>Click the Formulas tab on the Ribbon.<\/li>\n<li>Click the More Functions button in the Function Library group of commands.<\/li>\n<li>Place the mouse pointer over the Statistical option from the drop-down list of options.<\/li>\n<li>Click the AVERAGE function name from the list of functions that appear in the menu (see <strong>Figure 2.49<\/strong>). This opens the Function Arguments dialog box.<\/li>\n<li>Click the Collapse Dialog button in the Function Arguments dialog box (see <strong>Figure 2.410<\/strong>).<\/li>\n<li>Highlight the range D3:D11.<\/li>\n<li>Click the Expand Dialog button in the Function Arguments dialog box (see <strong>Figure 2.411<\/strong>). You can also press the ENTER key to get the same result.<\/li>\n<li>Click the OK button on the Function Arguments dialog box. This adds the AVERAGE function to the worksheet.<\/li>\n<\/ol>\n<p><strong>Figure 2.49<\/strong> illustrates how a function is selected from the Function Library in the Formulas tab of the Ribbon.<\/p>\n<figure style=\"width: 1320px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image19-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image19-1.jpg\" alt=\"Press F6 until ribbon pane is activated, then M to select Formulas, then Q to select More Functions. Press S to select Statistical menu item, then scroll down to select the Average function.\" width=\"1320\" height=\"778\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.19\u00a0Selecting the AVERAGE Function from the Function Library<\/figcaption><\/figure>\n<p><strong>Figure 2.410<\/strong>\u00a0shows 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.<\/p>\n<figure style=\"width: 1320px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image20-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image20-1.jpg\" alt=\"Function Arguments dialog box open to Average function, with function definition, and Collapse Dialog button.\" width=\"1320\" height=\"570\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.410 Function Arguments Dialog Box<\/figcaption><\/figure>\n<p><strong>Figure 2.411<\/strong> shows how a range of cells can be selected from the Function Arguments dialog box once it has been collapsed.<\/p>\n<figure style=\"width: 1319px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image21-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image21-1.jpg\" alt=\"When Function Arguments dialog box is collapsed, cell range can be highlighted with function appearing in cell as it is being built.\" width=\"1319\" height=\"872\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.411 Selecting a Range from the Function Arguments Dialog Box<\/figcaption><\/figure>\n<p><strong>Figure 2.412<\/strong> 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.<\/p>\n<figure style=\"width: 1319px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image22-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image22-1.jpg\" alt=\"Function Arguments dialog box shows first few values next to cell range, and output of function appears both in center of box and at bottom as &quot;formula result&quot;.\" width=\"1319\" height=\"484\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.412 Function Arguments Dialog Box after a Cell Range Is Defined for a Function<\/figcaption><\/figure>\n<p><strong>Figure 2.413<\/strong> shows the completed AVERAGE function in the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet. 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.<\/p>\n<figure style=\"width: 1319px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image23-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image23-1.jpg\" alt=\"The AVERAGE function at top of worksheet as &quot;=AVERAGE(D:3D11)&quot; and output of &quot;$1,994&quot; in cell D14.\" width=\"1319\" height=\"790\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.413 Completed AVERAGE Function<\/figcaption><\/figure>\n<h2>The MAX and MIN Functions<\/h2>\n<p><em>Data file: Continue with CH2 Personal Budget.<\/em><\/p>\n<p>The final two statistical functions that we will add to the\u00a0<strong>Budget Detail<\/strong> worksheet are the <strong>MAX<\/strong> and <strong>MIN<\/strong> functions. These functions identify the highest and lowest values in a range of cells. The following steps explain how to add these functions to the\u00a0<strong>Budget Detail<\/strong>\u00a0worksheet:<\/p>\n<ol>\n<li>Click cell D15 in the\u00a0<strong>Budget Det<\/strong>ail\u00a0worksheet.<\/li>\n<li>Type an equal sign <strong>=<\/strong>.<\/li>\n<li>Type the word\u00a0<strong>MIN<\/strong>.<\/li>\n<li>Type an open parenthesis <strong>(<\/strong>.<\/li>\n<li>Highlight the range D3:D11.<\/li>\n<li>Type a closing parenthesis <strong>) <\/strong>and press the ENTER key, or simply press the ENTER key and Excel will close the function for you. The MIN function produces an output of $1,200, which is the lowest value in the Annual Spend column (see <strong>Figure 2.414<\/strong>).<\/li>\n<li>Click cell D16.<\/li>\n<li>Type an equal sign <strong>=<\/strong>.<\/li>\n<li>Type the word\u00a0<strong>MAX<\/strong>.<\/li>\n<li>Type an open parenthesis <strong>(<\/strong>.<\/li>\n<li>Highlight the range D3:D11.<\/li>\n<li>Type a closing parenthesis <strong>) <\/strong>and press the ENTER key, or simply press the ENTER key and Excel will close the function for you. The MAX function produces an output of $3,500. This is the highest value in the Annual Spend column (see <strong>Figure 2.415<\/strong>).<\/li>\n<\/ol>\n<figure style=\"width: 1320px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image24-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image24-1.jpg\" alt=\"The MIN function in formula as &quot;=MIN(D3:D11)&quot; and output of &quot;$1,200&quot; in cell D15 for Min Spend.\" width=\"1320\" height=\"791\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.414 MIN Function Added to the Budget Detail Worksheet<\/figcaption><\/figure>\n<figure style=\"width: 1320px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/openoregon.pressbooks.pub\/app\/uploads\/sites\/7\/2016\/09\/image25-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.usnh.edu\/math502\/wp-content\/blogs.dir\/12\/files\/2023\/03\/image25-1.jpg\" alt=\"The MAX function in formula as &quot;=MAX(D3:D11)&quot; and output of &quot;$3,500&quot; in cell D16 for Max Spend.\" width=\"1320\" height=\"798\" \/><\/a><figcaption class=\"wp-caption-text\">Figure 2.415 MAX Function Added to the Budget Detail Worksheet<\/figcaption><\/figure>\n<div class=\"textbox examples\">\n<h3>Skill Refresher<\/h3>\n<p><strong>Statistical Functions<\/strong><\/p>\n<ol>\n<li>Type an equal sign <strong>=<\/strong>.<\/li>\n<li>Type the function name followed by an open parenthesis <strong>(<\/strong>\u00a0or double click the function name from the function list.<\/li>\n<li>Highlight a range on a worksheet or click individual cell locations followed by commas.<\/li>\n<li>Type a closing parenthesis <strong>)<\/strong> and press the ENTER key or press the ENTER key to close the function.<\/li>\n<\/ol>\n<\/div>\n<div class=\"textbox key-takeaways\">\n<h3>Key Takeaways<\/h3>\n<ul>\n<li>Statistical functions are used when a mathematical process is required for a range of cells, such as summing the values in several cell locations. For these computations, functions are preferable to formulas because adding many cell locations one at a time to a formula can be very time-consuming.<\/li>\n<li>Statistical functions can be created using cell ranges or selected cell locations separated by commas. Make sure you use a cell range (two cell locations separated by a colon) when applying a statistical function to a contiguous range of cells.<\/li>\n<li>To prevent Excel from changing the cell references in a formula or function when they are pasted to a new cell location, you must use an absolute reference. You can do this by placing a dollar sign ($) in front of the column letter and row number of a cell reference.<\/li>\n<li>The #DIV\/0 error appears if you create a formula that attempts to divide a constant or the value in a cell reference by zero.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h2>Attribution<\/h2>\n<p>Adapted by Mary Schatz from <a href=\"https:\/\/saylordotorg.github.io\/text_how-to-use-microsoft-excel-v1.1\/index.html\" target=\"_blank\" rel=\"noopener noreferrer\">How to Use Microsoft Excel: The Careers in Practice Series<\/a>,\u00a0adapted by <a href=\"https:\/\/www.saylor.org\" target=\"_blank\" rel=\"noopener noreferrer\">The Saylor Foundation<\/a> without attribution as requested by the work\u2019s original creator or licensee,\u00a0and licensed under <a href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\" target=\"_blank\" rel=\"noopener noreferrer\">CC BY-NC-SA 3.0<\/a>.<\/p>\n","protected":false},"author":11,"menu_order":4,"template":"","meta":{"pb_show_title":"","pb_short_title":"","pb_subtitle":"","pb_authors":["noreen-brown","barbara-lave","julie-romey","mary-schatz","diane-shingledecker"],"pb_section_license":"cc-by"},"chapter-type":[49],"contributor":[63,66,64,65,62],"license":[53],"class_list":["post-100","chapter","type-chapter","status-publish","hentry","chapter-type-numberless","contributor-barbara-lave","contributor-diane-shingledecker","contributor-julie-romey","contributor-mary-schatz","contributor-noreen-brown","license-cc-by"],"part":30,"_links":{"self":[{"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/pressbooks\/v2\/chapters\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/wp\/v2\/users\/11"}],"version-history":[{"count":1,"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/pressbooks\/v2\/chapters\/100\/revisions"}],"predecessor-version":[{"id":101,"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/pressbooks\/v2\/chapters\/100\/revisions\/101"}],"part":[{"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/pressbooks\/v2\/parts\/30"}],"metadata":[{"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/pressbooks\/v2\/chapters\/100\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/pressbooks\/v2\/chapter-type?post=100"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/wp\/v2\/contributor?post=100"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.usnh.edu\/mth402\/wp-json\/wp\/v2\/license?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}