18.11.2014 Views

Microsoft Office

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

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

Creating Formulas That<br />

Count and Sum<br />

Many of the most common spreadsheet questions involve counting and<br />

summing values and other worksheet elements. It seems that people<br />

are always looking for formulas to count or to sum various items in a<br />

worksheet. If I’ve done my job, this chapter answers the vast majority of such<br />

questions. It contains many examples that you can easily adapt to your own<br />

situation.<br />

Counting and Summing Worksheet<br />

Cells<br />

Generally, a counting formula returns the number of cells in a specified range that<br />

meet certain criteria. A summing formula returns the sum of the values of the cells<br />

in a range that meet certain criteria. The range you want counted or summed<br />

may or may not consist of a worksheet database.<br />

Table 14.1 lists the Excel worksheet functions that come into play when creating<br />

counting and summing formulas. Not all these functions are covered in this<br />

chapter. If none of the functions in Table 14.1 can solve your problem, it’s likely<br />

that an array formula can come to the rescue.<br />

CROSS-REF<br />

See Chapters 17 and 18 for detailed information and examples of<br />

array formulas used for counting and summing.<br />

If your data is in the form of a table, you can use autofiltering to<br />

NOTE<br />

accomplish many counting and summing operations. Just set the<br />

autofitler criteria, and the table displays only the rows that match your criteria<br />

(the nonqualifying rows in the table are hidden). Then you can select formulas to<br />

display counts or sums in the table’s total row. Refer to Chapter 6 for more information<br />

on using tables.<br />

IN THIS CHAPTER<br />

Information on counting and<br />

summing cells<br />

Basic counting formulas<br />

Advanced counting formulas<br />

Formulas for performing<br />

common summing tasks<br />

Conditional summing formulas<br />

using a single criterion<br />

Conditional summing formulas<br />

using multiple criteria<br />

249

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

Saved successfully!

Ooh no, something went wrong!