Excel 2010 Bible

(National Geographic (Little) Kids) #1

Chapter 13: Creating Formulas That Count and Sum


303


Cross-Reference
See Chapter 16 for more information about using array constants. n


Conditional Sums Using a Single Criterion .......................................................................


Often, you need to calculate a conditional sum. With a conditional sum, values in a range that meet
one or more conditions are included in the sum. This section presents examples of conditional
summing by using a single criterion.

The SUMIF function is very useful for single-criterion sum formulas. The SUMIF function takes
three arguments:

l range: The range containing the values that determine whether to include a particular cell
in the sum.
l criteria: An expression that determines whether to include a particular cell in the sum.

l (^) sum_range: Optional. The range that contains the cells you want to sum. If you omit this
argument, the function uses the range specified in the first argument.
The examples that follow demonstrate the use of the SUMIF function. These formulas are based on
the worksheet shown in Figure 13.14, set up to track invoices. Column F contains a formula that
subtracts the date in column E from the date in column D. A negative number in column F indicates
a past-due payment. The worksheet uses named ranges that correspond to the labels in row 1.
On the CD
All the examples in this section also appear on the companion CD-ROM. The file is named conditional
sum.xlsx.
FIGURE 13.14
A negative value in Column F indicates a past-due payment.

Free download pdf