Chapter 8 FINAL Conditional Math Functions Text and HOE Combined PDF
Chapter 8 FINAL Conditional Math Functions Text and HOE Combined PDF
Do not let the term statistics scare you. Every day, you rely on statistics to make routine
decisions. When you purchase a car, you compare the average miles per gallon (MPG)
among several vehicles. The automobile manufacturer conducted multiple test drives,
recorded the MPG under various driving conditions, and then calculated the MPG sta-
tistic based on average performance. Statistics involve analyzing a collection of data and
making inferences to draw conclusions about a dataset.
You have already learned to use the SUM, AVERAGE, MIN, MAX, MEDIAN, and
COUNT statistical functions. However, sometimes you might want to calculate a statistic
based on a particular condition. Excel’s math and statistical function categories contain
functions that enable you to perform conditional calculations, such as calculating a total
only when a particular circumstance or set of circumstances exists.
In this section, you will use math and statistical functions—SUMIF, AVERAGEIF,
COUNTIF, SUMIFS, AVERAGEIFS, and COUNTIFS—to perform conditional statisti-
cal calculations. In addition, you will use relative-standing functions, such as RANK,
PERCENTRANK, PERCENTILE, and QUARTILE.
• Range. The range argument specifies the range of cells you want to evaluate to
determine if the values meet a particular condition. In Figure 8.2, the SUMIF
function’s range is C2:C13, the range containing the teaching assignments.
• Criteria. The criteria argument specifies the condition that imposes limitations
on what values Excel sums. The criteria can be a value, date, text, or another
cell containing a value, date, or text. In Figure 8.2, the SUMIF function criterion
is the text high school. Excel restricts the totaling to rows in which the range
contains only high school. When you use text as a criterion, you must enclose it
TROUBLESHOOTING: If you make any major mistakes in this exercise, you can close the file,
open e08h1Assessment again, and then start this exercise over.
b. Click cell H3, click the Formulas tab, click More Functions in the Function Library
group, point to Statistical, scroll through the list, and then select COUNTIF.
Cell H3 is the cell in which you want to calculate the total number of high school
teachers hired before 1/1/2005. The Function Arguments dialog box opens so that you
can enter the range and criteria arguments.
c. Select the range B3:B52 to enter it in the Range box.
The range B3:B52 contains the data array that contains the values to be counted.
d. Click in the Criteria box, type <1/1/2005, and then click OK.
The newly created function indicates there are 16 teachers that meet the criteria
requirements.
e. Click cell H4, click Math & Trig in the Function Library group, and then select SUMIF.
The Function Arguments dialog box displays so that you can enter the range, criteria,
and sum_range arguments.
f. Type B3:B52 in the Range box, type <1/1/2005 in the Criteria box, and then type
C3:C52 in the Sum_range box: Click OK to exit the Function Arguments box.
The total salaries paid to high school teachers hired before 1/1/2005 is $790,922.00.
g. Ensure cell H5 is selected. Click More Functions in the Function Library group, point
to Statistical, and then select AVERAGEIF.
h. Type B3:B52 in the Range box, type <1/1/2005 in the Criteria box, and then type
C3:C52 in the Average_range box. Click OK to exit the Function Arguments box.
The average salary for high school teachers hired before 1/1/2005 is $49,432.63.
Step f: AVERAGEIFS
function results
a. Click cell H8, click More Functions and point to Statistical in the Function Library
group, scroll through the list, and then select COUNTIFS.
b. Type B3:B52 in the Criteria_range1 box, click in the Criteria1 box, and then type
<1/1/2005.
Similar to the COUNTIF function, COUNTIFS has the ability to count data points in a
range that match specified criteria. In this step the first criterion is <1/1/2005.
c. Click in the Criteria_range2 box and type D3:D52. Type Acorn in the Criteria 2 box and
click OK.
The function returns 6, the total number of high school teachers in Acorn Township
hired before 1/1/2005, by using the criteria <1/1/2005 and Acorn to filter the data
ranges B3:B52 and D3:D52.
d. Click cell H9, click Math & Trig in the Function Library group, and then select SUMIFS.
e. Type C3:C52 in the Sum_range box, type B3:B52 in the Criteria_range1 box, type
<1/1/2005 in the Criteria1 box, type D3:D52 in the Criteria_range2 box, type Acorn
in the Criteria2 box, and then click OK.
The total payroll for high school teachers in Acorn Township hired before 1/1/2005 is
$289,587.00.
TROUBLESHOOTING: If you misspell criterion text, such as the township name, the results will
display 0. Always check the criterion text to make sure it matches text in the respective column.