Hi Wayne
the COUNTA function will count the number of non blank cells in a range
=COUNTA(A1:A8)
will return 6 with your example data
to count the number of blanks use
=COUNTBLANK(A1:A8)
will return 2 with your example data
If, however, you really want to use a COUNTIF function then this will work:
=COUNTIF(A1:A8,"<"&"")
to count non-blanks
Hope this helps
Cheers
JulieD
"Wayne" wrote in message
...
How can I get the CountIf function to count the number of
cells in a range where the cells are not empty?
Typ cell contents...
1a
1b
2.1
2.2
(empty)
(empty)
3.2.2
3.2.2
-----
total cell count of non empty cells = 6
total number of cells in range = 8
regards
Wayne
|