11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

206<br />

Part II: Using Functions in Your <strong>Formula</strong>s<br />

See Chapter 14 for more information about array constants.<br />

Conditional Sums Using a Single Criterion<br />

Often, you need to calculate a conditional sum. With a conditional sum, values in a range that<br />

meet one or more conditions are included in the sum. This section presents examples of conditional<br />

summing using a single criterion.<br />

The SUMIF function is very useful for single-criterion sum formulas. The SUMIF function takes<br />

three arguments:<br />

range: The range containing the values that determine whether to include a particular<br />

cell in the sum.<br />

criteria: An expression that determines whether to include a particular cell in the sum.<br />

sum_range: Optional. The range that contains the cells that you want to sum. If you omit<br />

this argument, the function uses the range specified in the first argument.<br />

The examples that follow demonstrate the use of the SUMIF function. These formulas are based<br />

on the worksheet shown in Figure 7-15, set up to track invoices. Column F contains a formula that<br />

subtracts the date in column E from the date in column D. A negative number in column F indicates<br />

a past-due payment. The worksheet uses named ranges that correspond to the labels in<br />

row 1. Various summing formulas begin in row 15.<br />

Figure 7-15: A negative value in column F indicates a past-due payment.<br />

All the examples in this section also appear on the companion CD-ROM in the file<br />

named conditional summing.xlsx.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!