Counting number and text values
The following sections summarize the specific tasks for
counting number and text values, the best Office Excel feature
for each task, and a link to one or more help topics for
specific examples and information.
Counting
with one or more criteria
| If you want to |
See |
Comments |
| Count cells in a range based on a
single criteria by using the COUNTIF function |
COUNTIF
Count numbers greater than or less than a number |
You can easily count cells based on
a single criteria with the COUNTIF function. |
| Count cells in a column based on
single or multiple criteria by using the DCOUNT
database function |
DCOUNT |
Use the DCOUNT function when you
have a column list and you find it easier to define
your criteria in a separate range of cells, rather
than use a nested function. |
| Count cells in a range based on
multiple criteria by using the COUNT and IF
functions |
Count how often a value occurs |
There's no one function or feature
that can do this task, so your best bet is to nest
the COUNT and IF functions. |
Counting
with blank values
| If you want to |
See |
Comments |
| Count nonblank cells in a range by
using the COUNTA function |
Count nonblank cells
COUNTA |
When counting cells, sometimes you
want to ignore any blank cells because only cells
with values are meaningful to you. For example, you
want to count all salespeople who made at least one
sale in a region. |
| Count nonblank cells in a list by
using the DCOUNTA function |
DCOUNTA |
Count the nonblank cells in a list
column or the entire list.
|
| Count blank cells in a contiguous
range by using the COUNTBLANK function |
COUNTBLANK |
When counting cells, sometimes you
want to include blank cells because they are
meaningful to you. For example, you want to count
all salespeople in a region, whether or not they
made a sale. |
| Count blank cells in a discontiguous
range by using the SUM and IF functions |
XL: When to Use SUM(IF()) instead of CountBlank() |
Agreed, it's not obvious to use the
SUM and IF functions instead of COUNTBLANK, but this
topic explains how. |
|
|
|