Counting and Summing Worksheet Cells

Generally, a counting formula returns the number of cells in a specified range that meet certain criteria. A summing formula returns the sum of the values of the cells in a range that meet certain criteria. The range you want counted or summed may or may not consist of a worksheet database.

Table 17-1 lists the Excel worksheet functions that come into play when creating counting and summing formulas. Not all these functions are covered in this chapter. If none of the functions in Table 17-1 can solve your problem, it’s likely that an array formula can come to the rescue.

Table 17-1. Excel’s Counting and Summing Functions
FunctionDescription
COUNTReturns the number of cells that contain a numeric value.
COUNTAReturns the number of nonblank cells.
COUNTBLANKReturns the number of blank cells.
COUNTIFReturns the number of cells that meet a specified criterion.
COUNTIFS[*]Returns the number of cells that meet multiple criteria.
DCOUNTCounts the number of records that meet specified criteria; used with a worksheet database.
DCOUNTACounts the number of nonblank records that meet specified criteria; used with a worksheet database.
DEVSQReturns the sum of squares of deviations of data points from the sample mean; used primarily in statistical formulas.
DSUMReturns the sum of a column of values that meet specified criteria; used with a worksheet database
FREQUENCYCalculates how often values occur within a range of values and returns a vertical array of numbers. ...

Get Office 2007 Bible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.