Count all non-empty cells in a range.
The COUNTA function counts every non-empty cell, whether it holds numbers, text, or other values. Its syntax is =COUNTA(range). Unlike COUNT, it also counts cells containing text.
Count the number of non-empty cells in the range A1:A8 and place the result in B1.
Click cell B1, type your formula and press Enter.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| Data | Non-Empty Count | ||||
| 1 |
66
|
||||
| 2 |
99
|
||||
| 3 |
89
|
||||
| 4 |
32
|
||||
| 5 |
14
|
||||
| 6 |
62
|
||||
| 7 | |||||
| 8 | |||||
| 9 |